• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
        • Simplify-defun
        • Isodata
        • Tailrec
        • Schemalg
          • Schemalg-implementation
            • Schemalg-event-generation
              • Schemalg-gen-everything
              • Schemalg-gen-x-z1...zm
              • Schemalg-gen-old-if-new
              • Schemalg-gen-equal-algo
              • Schemalg-gen-algo-divconq-list-0-1-2
              • Schemalg-gen-algo-correct-divconq-list-0-1-2
              • Schemalg-gen-algo-correct-divconq-list-0-1
              • Schemalg-gen-spec-2
              • Schemalg-gen-algo-correct-divconq-oset-0-1
              • Schemalg-gen-algo-correct
              • Schemalg-gen-algo-divconq-oset-0-1
              • Schemalg-gen-spec-1-divconq-oset-0-1
              • Schemalg-gen-spec-1-divconq-list-0-1
              • Schemalg-gen-algo-divconq-list-0-1
              • Schemalg-gen-algo
              • Schemalg-gen-spec-1
              • Schemalg-gen-spec-1-divconq-list-0-1-2
              • Schemalg-gen-spec-0
              • Schemalg-gen-spec-0-divconq-oset-0-1
              • Schemalg-gen-spec-0-divconq-list-0-1-2
              • Schemalg-gen-spec-0-divconq-list-0-1
              • Schemalg-gen-new
                • Schemalg-gen-?f1...?fp
                • Schemalg-gen-x-z1...zm-aux
              • Schemalg-fn
              • Schemalg-macro-definition
              • Schemalg-input-processing
            • Schemalg-divconq-oset-0-1
            • Schemalg-divconq-list-0-1
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Schemalg-event-generation

    Schemalg-gen-new

    Generate the function new.

    Signature
    (schemalg-gen-new new new-enable 
                      spec1...specq equal-algo verify-guards) 
     
      → 
    (mv local-event exported-event)
    Arguments
    new — Guard (symbolp new).
    new-enable — Guard (booleanp new-enable).
    spec1...specq — Guard (symbol-listp spec1...specq).
    equal-algo — Guard (symbolp equal-algo).
    verify-guards — Guard (booleanp verify-guards).
    Returns
    local-event — Type (pseudo-event-formp local-event).
    exported-event — Type (pseudo-event-formp exported-event).

    Definitions and Theorems

    Function: schemalg-gen-new

    (defun schemalg-gen-new (new new-enable
                                 spec1...specq equal-algo verify-guards)
      (declare (xargs :guard (and (symbolp new)
                                  (booleanp new-enable)
                                  (symbol-listp spec1...specq)
                                  (symbolp equal-algo)
                                  (booleanp verify-guards))))
      (let ((__function__ 'schemalg-gen-new))
        (declare (ignorable __function__))
        (b* ((spec1...specq-calls
                  (loop$ for spec
                         in spec1...specq collect (list spec))))
          (evmac-generate-soft-defun2
               new
               :formals nil
               :guard t
               :body (cons 'and
                           (cons (cons equal-algo 'nil)
                                 spec1...specq-calls))
               :verify-guards verify-guards
               :enable new-enable
               :guard-hints '(("Goal" :in-theory nil))))))

    Theorem: pseudo-event-formp-of-schemalg-gen-new.local-event

    (defthm pseudo-event-formp-of-schemalg-gen-new.local-event
      (b* (((mv ?local-event ?exported-event)
            (schemalg-gen-new new new-enable spec1...specq
                              equal-algo verify-guards)))
        (pseudo-event-formp local-event))
      :rule-classes :rewrite)

    Theorem: pseudo-event-formp-of-schemalg-gen-new.exported-event

    (defthm pseudo-event-formp-of-schemalg-gen-new.exported-event
      (b* (((mv ?local-event ?exported-event)
            (schemalg-gen-new new new-enable spec1...specq
                              equal-algo verify-guards)))
        (pseudo-event-formp exported-event))
      :rule-classes :rewrite)