• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
        • Proof-support
        • Semantics
          • Exec-proof-tree
          • Assertion-list->constr-list
          • Assertion-list->asg-list
          • Eval-expr
          • Eval-expr-list
          • Assignment-wfp
          • Assertion
            • Assertion-fix
            • Assertion-equiv
            • Make-assertion
              • Assertion->constr
              • Change-assertion
              • Assertion->asg
              • Assertionp
            • 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
          • R1cs-subset
          • Indexed-names
          • Well-formedness
          • Abstract-syntax
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Wp-gen
        • Dimacs-reader
        • 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
      • 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)))))