• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
        • Acre-internals
          • Regex
            • Regex-case
            • Regex-p
            • Regex-equiv
            • Regex-zerolength
            • Regex-repeat
            • Regex-group
            • Regex-charset
            • Regex-case-sens
            • Regex-kind
            • Regex-reverse-pref
            • Regex-no-backtrack
            • Regex-exact
            • Regex-disjunct
            • Regex-concat
            • Regex-backref
            • Regex-start
            • Regex-end
            • Regexlist
              • Regexlist-equiv
              • Regexlist-p
                • Regexlist-p-basics
                • Regexlist-fix
              • Regex-fix
              • Regex-count
            • Match-string-at
            • Matchstatelist-measure
            • Parse-primitive
            • Matches-remove-zero-length
            • Parse-repeatop
            • Parse-repeatbase
            • Matchstatelist-in-bounds
            • Parse-range
            • Parse-charset-set
            • Parse-charset-atom
            • Match-regex-locs
            • Parse-octal-charcode
            • Parse-k-backref
            • Parse-g-backref
            • Matchstatelist-all-have-backref
            • Parse-repeatmod
            • Parse-charset-elem
            • Parse-charset-aux
            • Parse-hex-charcode
            • Parse-charset
            • Matchstatelist-indices-lte
            • Matchstatelist-indices-gte
            • Match-exact
            • Matches-add-backref
            • Matchresult
            • Preproc-legible-aux
            • Maybe-backref
            • Match-charset
            • Undup-equiv
            • Find-substr
            • Maybe-backref-extract-substr
            • Matchstatelist-min-index
            • Matchstate-in-bounds
            • Match-add-backref
            • Undup
            • Backref-alist-in-bounds
            • Backref
            • Matchstate
            • Matchresult->matched-substr
            • Matchresult->captured-substr!
            • Matchresult->captured-substr
            • Maybe-backref-in-bounds
            • Matchmode
            • Backref-extract-substr
            • Charset-range
            • Matchstate-measure
            • Backref-in-bounds
            • Rev-keys
            • Parse-regex
            • Undup-exec
            • Get-charset
            • Regex-concat2
            • Preproc-legible
            • Matchresult-in-bounds
            • Regex-disjunct2
            • Backref-alist
            • Named-captures-bindings
            • Captures-bindings
            • Matchstatelist
            • Charset-char-regex
            • Repeatmod-p
          • Parse-and-match-regex
          • Match-regex
          • Parse
          • Matchresult->matchedp
          • Match
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • 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
    • Regexlist-p

    Regexlist-p-basics

    Basic theorems about regexlist-p, generated by std::deflist.

    Definitions and Theorems

    Theorem: regexlist-p-of-cons

    (defthm regexlist-p-of-cons
      (equal (regexlist-p (cons acl2::a acl2::x))
             (and (regex-p acl2::a)
                  (regexlist-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: regexlist-p-of-cdr-when-regexlist-p

    (defthm regexlist-p-of-cdr-when-regexlist-p
      (implies (regexlist-p (double-rewrite acl2::x))
               (regexlist-p (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: regexlist-p-when-not-consp

    (defthm regexlist-p-when-not-consp
      (implies (not (consp acl2::x))
               (equal (regexlist-p acl2::x)
                      (not acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: regex-p-of-car-when-regexlist-p

    (defthm regex-p-of-car-when-regexlist-p
      (implies (regexlist-p acl2::x)
               (iff (regex-p (car acl2::x))
                    (or (consp acl2::x) (regex-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-regexlist-p-compound-recognizer

    (defthm true-listp-when-regexlist-p-compound-recognizer
      (implies (regexlist-p acl2::x)
               (true-listp acl2::x))
      :rule-classes :compound-recognizer)