• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
          • Constraint-relation-satp
          • Constraint-relation-nofreevars-satp
          • Constraint-equal-satp
          • Exec-proof-tree-when-constraint-relation
            • Constraint-satp-of-relation
            • Exec-proof-tree-when-constraint-equal
            • Constraint-satp-of-relation-when-nofreevars
            • Constraint-list-satp-of-atom
            • Constraint-list-satp-of-cons
            • Constraint-satp-to-definition-satp
            • Constraint-satp-of-equal
            • Constraint-list-satp-of-append
            • Constraint-list-satp-of-rev
            • Constraint-list-satp-of-nil
          • Semantics
          • Lifting
          • R1cs-subset
          • Well-formedness
          • Abstract-syntax
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Proof-support

    Exec-proof-tree-when-constraint-relation

    Characterization of a proof tree for a relation constraint.

    If running a proof tree is successful and returns an assertion for a relation constraint, then the proof tree must be one for a relation application, and it has to satisfy a number of other requirements, explicated in this theorem.

    This is used to prove constraint-satp-of-relation.

    Definitions and Theorems

    Theorem: exec-proof-tree-when-constraint-relation

    (defthm exec-proof-tree-when-constraint-relation
      (b* ((outcome (exec-proof-tree ptree defs p))
           (asser (proof-outcome-assertion->get outcome))
           (asg (assertion->asg asser))
           (constr (assertion->constr asser))
           (name (constraint-relation->name constr))
           (args (constraint-relation->args constr))
           (def (lookup-definition name defs))
           (para (definition->para def))
           (body (definition->body def))
           (vals (eval-expr-list args asg p))
           (asgfree (proof-tree-relation->asgfree ptree))
           (asgpara (omap::from-lists para vals))
           (outcome-sub
                (exec-proof-tree-list (proof-tree-relation->sub ptree)
                                      defs p))
           (asser-sub (proof-list-outcome-assertions->get outcome-sub))
           (asgsub (omap::update* asgfree asgpara)))
        (implies (and (proof-outcome-case outcome :assertion)
                      (constraint-case constr :relation))
                 (and (proof-tree-case ptree :relation)
                      (equal (proof-tree-relation->asg ptree)
                             asg)
                      (equal (proof-tree-relation->name ptree)
                             name)
                      (equal (proof-tree-relation->args ptree)
                             args)
                      def (nat-listp vals)
                      (equal (len para) (len vals))
                      (assignment-wfp asgfree p)
                      (equal (omap::keys asgfree)
                             (definition-free-vars def))
                      (proof-list-outcome-case outcome-sub :assertions)
                      (equal (assertion-list->asg-list asser-sub)
                             (repeat (len body) asgsub))
                      (equal (assertion-list->constr-list asser-sub)
                             body)))))