• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Pfcs
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • C
        • Syntheto
        • File-io-light
        • Number-theory
        • Cryptography
        • Lists-light
        • Json
        • Axe
        • Builtins
        • Solidity
        • Std-extensions
          • Std/util-extensions
            • Defmapping
            • Defarbrec
            • Defmax-nat
            • Error-value-tuples
            • Defmin-int
            • Deftutorial
              • Deftutorial-implementation
                • Deftutorial-gen-deftopics
                • Deftutorial-gen-defpage
                • Deftutorial-gen-deftop
                • Deftutorial-gen-section
                  • Deftutorial-fn
                  • Deftutorial-definition
              • Defsurj
              • Defiso
              • Defconstrained-recognizer
              • Deffixer
              • Defund-sk
              • Defmacro+
              • Defthm-commutative
              • Definj
              • Defirrelevant
            • Std/basic-extensions
            • Std/strings-extensions
            • Std/system-extensions
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Deftutorial-implementation

    Deftutorial-gen-section

    Generate the macro to define a section in a tutorial page.

    Signature
    (deftutorial-gen-section tut-name) → event
    Arguments
    tut-name — Guard (symbolp tut-name).
    Returns
    event — Type (pseudo-event-formp event).

    We use a level-5 heading to keep it relatively small.

    Definitions and Theorems

    Function: deftutorial-gen-section

    (defun deftutorial-gen-section (tut-name)
      (declare (xargs :guard (symbolp tut-name)))
      (let ((__function__ 'deftutorial-gen-section))
        (declare (ignorable __function__))
        (b* ((tut-section (add-suffix tut-name "-SECTION")))
          (cons 'defmacro
                (cons tut-section
                      '((title)
                        (cons 'xdoc::h5 (cons title 'nil))))))))

    Theorem: pseudo-event-formp-of-deftutorial-gen-section

    (defthm pseudo-event-formp-of-deftutorial-gen-section
      (b* ((event (deftutorial-gen-section tut-name)))
        (pseudo-event-formp event))
      :rule-classes :rewrite)