• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
          • Syntax-abstraction
          • Semantics
          • Abstract-syntax
            • Convenience-constructors
              • /_
              • %x-
              • %d-
              • %b-
              • =_
              • =/_
              • Def-rule-const
              • =_-fn
              • =/_-fn
              • Repetition/element/rulename/charstring-p
              • <>
                • %x.
                • %d.
                • %b.
                • Repetition/element/rulename/charstring-listp
                • ?_
                • !_
                • Def-rule-const-fn
                • *_
                • 1*_
                • ?_-fn
                • /_-fn
                • !_-fn
                • Element/rulename-p
                • %x.-fn
                • %d.-fn
                • %b.-fn
              • Num-val
              • Char-val
              • Repeat-range
              • Rulename
              • Rule
              • Rulename-option
              • Num-base
              • Rule-option
              • Prose-val
              • Rulelist
              • Char-val-set
              • Rulename-set
              • Rulename-list
              • Grammar
              • Alt/conc/rep/elem
            • Core-rules
            • Concrete-syntax
          • Grammar-parser
          • Meta-circular-validation
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • 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
    • Convenience-constructors

    <>

    Construct a prose value notation element from a character string.

    Signature
    (<> charstring) → element
    Arguments
    charstring — Guard (common-lisp::stringp charstring).
    Returns
    element — Type (elementp element).

    The name of this function is inspired by the ABNF notation <...>, where the brackets form the name of this function.

    Definitions and Theorems

    Function: <>

    (defun <> (charstring)
      (declare (xargs :guard (common-lisp::stringp charstring)))
      (element-prose-val (prose-val charstring)))

    Theorem: elementp-of-<>

    (defthm elementp-of-<>
      (b* ((element (<> charstring)))
        (elementp element))
      :rule-classes :rewrite)

    Theorem: <>-of-str-fix-charstring

    (defthm <>-of-str-fix-charstring
      (equal (<> (str-fix charstring))
             (<> charstring)))

    Theorem: <>-streqv-congruence-on-charstring

    (defthm <>-streqv-congruence-on-charstring
      (implies (acl2::streqv charstring charstring-equiv)
               (equal (<> charstring)
                      (<> charstring-equiv)))
      :rule-classes :congruence)