• 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
          • Well-formedness
          • Closure
          • Plugging
          • Ambiguity
            • Concatenation-alternation-disjointp
            • Concatenation-unambiguousp
            • Repetition-unambiguousp
            • Alternation-unambiguousp
            • Alternation-unambiguousp-of-cons-when-disjointp
            • Element-unambiguousp
            • Rules-ambiguousp
            • Prose-val-ambiguous
            • Num-val-unambiguous
            • Char-val-unambiguous
              • Element-prose-val-ambiguous
              • Element-num-val-unambiguous
              • Element-char-val-unambiguous
            • Renaming
            • Numeric-range-retrieval
            • Rule-utilities
            • Removal
            • Character-value-retrieval
          • 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
    • Ambiguity

    Char-val-unambiguous

    Character value notations are never ambiguous.

    Any two trees that match a character value notation and that have the same string at the leaves are the same tree.

    Definitions and Theorems

    Theorem: char-val-unambiguous

    (defthm char-val-unambiguous
      (implies (and (tree-match-char-val-p tree1 char-val)
                    (tree-match-char-val-p tree2 char-val))
               (equal (equal (tree->string tree1)
                             (tree->string tree2))
                      (tree-equiv tree1 tree2))))