• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • 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
        • Atj
        • Aij
        • Language
          • Syntax
            • Grammar
            • Unicode-escapes
            • Unicode-input-char
            • Escape-sequence
            • Identifiers
            • Primitive-types
            • Reference-types
            • Unicode-characters
            • Keywords
              • Keywords-grammar-validation
                • Reserved-keywordp-when-grammar-reserved-keywordp
                • Contextual-keywordp-when-grammar-contextual-keywordp
                • Reserved-keyword-tree
                • Contextual-keyword-tree
                • Grammar-reserved-keywordp
                  • Grammar-contextual-keywordp
                  • Grammar-contextual-keywordp-when-contextual-keywordp
                  • Grammar-reserved-keywordp-when-reserved-keywordp
                  • Reserved-keywordp-is-grammar-reserved-keywordp
                  • Contextual-keywordp-is-grammar-contextual-keywordp
                • Reserved-keywordp
                • Contextual-keywordp
                • *reserved-keywords*
                • *contextual-keywords*
              • Integer-literals
              • String-literals
              • Octal-digits
              • Hexadecimal-digits
              • Decimal-digits
              • Binary-digits
              • Character-literals
              • Null-literal
              • Floating-point-literals
              • Boolean-literals
              • Package-names
              • Literals
            • Semantics
        • 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
    • Keywords-grammar-validation

    Grammar-reserved-keywordp

    Definition of reserved keywords based on the grammar.

    This defines a reserved keyword as a string at the leaves of a terminated tree rooted at the reserved-keyword nonterminal.

    Definitions and Theorems

    Theorem: grammar-reserved-keywordp-suff

    (defthm grammar-reserved-keywordp-suff
      (implies (and (abnf-tree-with-root-p tree "reserved-keyword")
                    (equal (abnf::tree->string tree) x))
               (grammar-reserved-keywordp x)))

    Theorem: booleanp-of-grammar-reserved-keywordp

    (defthm booleanp-of-grammar-reserved-keywordp
      (b* ((yes/no (grammar-reserved-keywordp x)))
        (booleanp yes/no))
      :rule-classes :rewrite)