• 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
          • Sr1cs-constraintp
          • R1cs-polynomialp
          • R1cs-constraintp
          • R1cs-monomialp
          • Sr1cs-definitionp
          • R1cs-systemp
          • Sr1cs-systemp
            • Sr1cs-definition-listp
            • Sr1cs-constraint-listp
            • R1cs-constraint-listp
          • Semantics
          • 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
    • R1cs-subset

    Sr1cs-systemp

    Check if a PFCS system consits of structured R1CS constraints.

    Signature
    (sr1cs-systemp sys) → yes/no
    Arguments
    sys — Guard (systemp sys).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: sr1cs-systemp

    (defun sr1cs-systemp (sys)
      (declare (xargs :guard (systemp sys)))
      (let ((__function__ 'sr1cs-systemp))
        (declare (ignorable __function__))
        (b* (((system sys) sys))
          (and (sr1cs-definition-listp sys.definitions)
               (sr1cs-constraint-listp sys.constraints)))))

    Theorem: booleanp-of-sr1cs-systemp

    (defthm booleanp-of-sr1cs-systemp
      (b* ((yes/no (sr1cs-systemp sys)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: sr1cs-systemp-of-system-fix-sys

    (defthm sr1cs-systemp-of-system-fix-sys
      (equal (sr1cs-systemp (system-fix sys))
             (sr1cs-systemp sys)))

    Theorem: sr1cs-systemp-system-equiv-congruence-on-sys

    (defthm sr1cs-systemp-system-equiv-congruence-on-sys
      (implies (system-equiv sys sys-equiv)
               (equal (sr1cs-systemp sys)
                      (sr1cs-systemp sys-equiv)))
      :rule-classes :congruence)