• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • 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
        • Atj
        • Aij
        • Language
          • Syntax
            • Grammar
            • Unicode-escapes
            • Unicode-input-char
            • Escape-sequence
            • Identifiers
            • Primitive-types
            • Reference-types
            • Keywords
              • Keywords-grammar-validation
                • Jkeywordp-when-grammar-jkeywordp
                • Jkeyword-tree
                • Grammar-jkeywordp
                  • Grammar-jkeywordp-when-jkeywordp
                  • Jkeywordp-is-grammar-jkeywordp
                • Jkeywordp
                • Restricted-jkeywordp
                • *jkeywords*
                • *restricted-jkeywords*
              • Unicode-characters
              • 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
        • Taspi
        • Riscv
        • 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
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Keywords-grammar-validation

    Grammar-jkeywordp

    Definition of (non-restricted) keywords based on the grammar.

    This defines a (non-restricted) keyword as a string at the leaves of a terminated tree rooted at the keyword nonterminal.

    Definitions and Theorems

    Theorem: grammar-jkeywordp-suff

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

    Theorem: booleanp-of-grammar-jkeywordp

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