• 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

    Constraint-relation-nofreevars-satp

    Satisfaction of a relation constraint without free variables, expressed without proof trees.

    Signature
    (constraint-relation-nofreevars-satp name args defs asg p) 
      → 
    yes/no
    Arguments
    name — Guard (namep name).
    args — Guard (expression-listp args).
    defs — Guard (definition-listp defs).
    asg — Guard (assignmentp asg).
    p — Guard (primep p).
    Returns
    yes/no — Type (booleanp yes/no).

    This is a specialized version of constraint-relation-satp, applicable when the definition of the relation has no free variables. In this case, we can avoid the existential quantification.

    Definitions and Theorems

    Function: constraint-relation-nofreevars-satp

    (defun constraint-relation-nofreevars-satp (name args defs asg p)
     (declare (xargs :guard (and (namep name)
                                 (expression-listp args)
                                 (definition-listp defs)
                                 (assignmentp asg)
                                 (primep p))))
     (declare (xargs :guard (assignment-wfp asg p)))
     (let ((__function__ 'constraint-relation-nofreevars-satp))
      (declare (ignorable __function__))
      (b* ((def (lookup-definition name defs)))
       (and
        def (emptyp (definition-free-vars def))
        (b* (((definition def) def))
         (and
           (equal (len args) (len def.para))
           (b* ((vals (eval-expr-list args asg p)))
             (and (nat-listp vals)
                  (b* ((asg-para-vals (omap::from-lists def.para vals)))
                    (constraint-list-satp
                         def.body defs asg-para-vals p))))))))))

    Theorem: booleanp-of-constraint-relation-nofreevars-satp

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