• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
        • Defenum
        • Add-io-pairs
        • Defalist
        • Defmapappend
        • Returns-specifiers
        • Defarbrec
        • Defines
        • Define-sk
        • Error-value-tuples
        • Defmax-nat
        • Defmin-int
        • Deftutorial
          • Deftutorial-implementation
            • Deftutorial-gen-deftopics
            • Deftutorial-gen-defpage
            • Deftutorial-gen-deftop
            • Deftutorial-gen-section
            • Deftutorial-fn
              • Deftutorial-definition
          • Extended-formals
          • Defrule
          • Defval
          • Defsurj
          • Defiso
          • Defconstrained-recognizer
          • Deffixer
          • Defmvtypes
          • Defconsts
          • Defthm-unsigned-byte-p
          • Support
          • Defthm-signed-byte-p
          • Defthm-natp
          • Defund-sk
          • Defmacro+
          • Defsum
          • Defthm-commutative
          • Definj
          • Defirrelevant
          • Defredundant
        • Std/strings
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Deftutorial-implementation

    Deftutorial-fn

    Generate all the macros to build the tutorial.

    Signature
    (deftutorial-fn tut-name tut-title) → event
    Arguments
    tut-name — Guard (symbolp tut-name).
    tut-title — Guard (stringp tut-title).
    Returns
    event — Type (pseudo-event-formp event).

    Definitions and Theorems

    Function: deftutorial-fn

    (defun deftutorial-fn (tut-name tut-title)
     (declare (xargs :guard (and (symbolp tut-name)
                                 (stringp tut-title))))
     (let ((__function__ 'deftutorial-fn))
      (declare (ignorable __function__))
      (cons
       'progn
       (append
          (deftutorial-gen-deftop tut-name)
          (append (deftutorial-gen-defpage tut-name)
                  (append (deftutorial-gen-deftopics tut-name tut-title)
                          (cons (deftutorial-gen-section tut-name)
                                'nil)))))))

    Theorem: pseudo-event-formp-of-deftutorial-fn

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