• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
          • Proof-support
          • R1cs-subset
          • Semantics
            • Semantics-deeply-embedded
              • Exec-proof-tree
              • Assertion-list->constr-list
              • Assertion-list->asg-list
              • Eval-expr
              • Assignment-wfp
              • Assertion
              • Assertion-list-from
              • Proof-outcome
              • Proof-list-outcome
              • Eval-expr-list
              • Definition-satp
              • Constraint-satp
                • Assignment
                • System-satp
                • Constraint-list-satp
                • Assertion-list
                • Assignment-list
                • Proof-trees
              • Semantics-shallowly-embedded
            • Abstract-syntax
            • Well-formedness
            • Abstract-syntax-operations
            • R1cs-bridge
            • Concrete-syntax
            • Prime-field-library-extensions
            • R1cs-library-extensions
          • Soft
          • Bv
          • Imp-language
          • Event-macros
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Java
          • C
          • Syntheto
          • Number-theory
          • Cryptography
          • Lists-light
          • File-io-light
          • Json
          • Built-ins
          • Solidity
          • Axe
          • Std-extensions
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Execloader
        • Axe
      • Testing-utilities
      • Math
    • Semantics-deeply-embedded

    Constraint-satp

    Semantic function checking if a constaint is satisfied, given a list of definitions, an assignment, and a prime field.

    Given the proof system formalized above, defining the semantic function discussed in semantics-deeply-embedded is easily done, by existentially quantifying over proof trees. That is, there must exist a proof tree that successfully proves the assertion corresponding to the assignment and constraint.

    Definitions and Theorems

    Theorem: constraint-satp-suff

    (defthm
     constraint-satp-suff
     (implies
      (and
        (proof-treep ptree)
        (equal
             (exec-proof-tree ptree defs p)
             (proof-outcome-assertion (make-assertion :asg asg
                                                      :constr constr))))
      (constraint-satp constr defs asg p)))

    Theorem: booleanp-of-constraint-satp

    (defthm booleanp-of-constraint-satp
            (b* ((yes/no (constraint-satp constr defs asg p)))
                (booleanp yes/no))
            :rule-classes :rewrite)