• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
        • R1cs-subset
        • Semantics
          • Semantics-deeply-embedded
            • Exec-proof-tree
            • Assertion-list->constr-list
            • Assertion-list->asg-list
            • Eval-expr
            • Eval-expr-list
            • Assertion
              • Assertion-fix
              • Assertion-equiv
              • Make-assertion
                • Assertion->constr
                • Change-assertion
                • Assertion->asg
                • Assertionp
              • Assignment-wfp
              • Proof-outcome
              • Proof-list-outcome
              • Assertion-list-from
              • Definition-satp
              • Constraint-satp
              • Assignment
              • System-satp
              • Constraint-list-satp
              • Assertion-list
              • Assignment-list
              • Proof-trees
            • Lifting
            • Semantics-shallowly-embedded
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Assertion

    Make-assertion

    Basic constructor macro for assertion structures.

    Syntax
    (make-assertion [:asg <asg>] 
                    [:constr <constr>]) 
    

    This is the usual way to construct assertion structures. It simply conses together a structure with the specified fields.

    This macro generates a new assertion structure from scratch. See also change-assertion, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-assertion

    (defmacro make-assertion (&rest args)
      (std::make-aggregate 'assertion
                           args '((:asg) (:constr))
                           'make-assertion
                           nil))

    Function: assertion

    (defun assertion (asg constr)
      (declare (xargs :guard (and (assignmentp asg)
                                  (constraintp constr))))
      (declare (xargs :guard t))
      (let ((__function__ 'assertion))
        (declare (ignorable __function__))
        (b* ((asg (mbe :logic (assignment-fix asg)
                       :exec asg))
             (constr (mbe :logic (constraint-fix constr)
                          :exec constr)))
          (list (cons 'asg asg)
                (cons 'constr constr)))))