• 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
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • 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

    Assertion->asg

    Get the asg field from a assertion.

    Signature
    (assertion->asg x) → asg
    Arguments
    x — Guard (assertionp x).
    Returns
    asg — Type (assignmentp asg).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: assertion->asg$inline

    (defun assertion->asg$inline (x)
      (declare (xargs :guard (assertionp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'assertion->asg))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (assignment-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: assignmentp-of-assertion->asg

    (defthm assignmentp-of-assertion->asg
      (b* ((asg (assertion->asg$inline x)))
        (assignmentp asg))
      :rule-classes :rewrite)

    Theorem: assertion->asg$inline-of-assertion-fix-x

    (defthm assertion->asg$inline-of-assertion-fix-x
      (equal (assertion->asg$inline (assertion-fix x))
             (assertion->asg$inline x)))

    Theorem: assertion->asg$inline-assertion-equiv-congruence-on-x

    (defthm assertion->asg$inline-assertion-equiv-congruence-on-x
      (implies (assertion-equiv x x-equiv)
               (equal (assertion->asg$inline x)
                      (assertion->asg$inline x-equiv)))
      :rule-classes :congruence)