• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • 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
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • 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)