• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
        • Grammar-parser
        • Meta-circular-validation
        • Parsing-primitives-defresult
        • Parsing-primitives-seq
        • Operations
          • In-terminal-set
          • Closure
          • Well-formedness
            • Rulelist-incremental-ok-p
            • Num-val-wfp
            • Char-val-wfp
            • Prose-val-wfp
            • Rulename-wfp
            • Rulelist-wfp
            • Repeat-range-wfp
            • Rule-list-wfp
              • Rule-list-wfp-basics
            • Concatenation-wfp
            • Alternation-wfp
            • Rule-wfp
            • Concatenation-list-wfp
            • Repetition-list-wfp
            • Repetition-wfp
            • Element-wfp
          • Plugging
          • Ambiguity
          • Renaming
          • Numeric-range-retrieval
          • Rule-utilities
          • Removal
          • Character-value-retrieval
        • Examples
        • Differences-with-paper
        • Constructor-utilities
        • Grammar-printer
        • Parsing-tools
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Riscv
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • 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
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Well-formedness

Rule-list-wfp

Check if all the rules in a list of rules are well-formed.

Signature
(rule-list-wfp x) → std::bool

This is an ordinary std::deflist. It is "loose" in that it does not care whether x is nil-terminated.

Definitions and Theorems

Function: rule-list-wfp

(defun rule-list-wfp (x)
  (declare (xargs :guard (rulelistp x)))
  (let ((__function__ 'rule-list-wfp))
    (declare (ignorable __function__))
    (if (consp x)
        (and (rule-wfp (car x))
             (rule-list-wfp (cdr x)))
      t)))

Subtopics

Rule-list-wfp-basics
Basic theorems about rule-list-wfp, generated by std::deflist.