• 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

    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)