• 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
            • 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
    • Semantics-deeply-embedded

    System-satp

    Check if an assignment satisfies a system.

    Signature
    (system-satp sys asg p) → yes/no
    Arguments
    sys — Guard (systemp sys).
    asg — Guard (assignmentp asg).
    p — Guard (primep p).
    Returns
    yes/no — Type (booleanp yes/no).

    All the constraints in the system must be satisfied, in the context of the definitions in the system.

    Definitions and Theorems

    Function: system-satp

    (defun system-satp (sys asg p)
      (declare (xargs :guard (and (systemp sys)
                                  (assignmentp asg)
                                  (primep p))))
      (declare (xargs :guard (assignment-wfp asg p)))
      (let ((__function__ 'system-satp))
        (declare (ignorable __function__))
        (constraint-list-satp (system->constraints sys)
                              (system->definitions sys)
                              asg p)))

    Theorem: booleanp-of-system-satp

    (defthm booleanp-of-system-satp
      (b* ((yes/no (system-satp sys asg p)))
        (booleanp yes/no))
      :rule-classes :rewrite)