• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
              • Primitive-types
              • Reference-types
              • Unicode-characters
              • Keywords
              • Integer-literals
              • String-literals
              • Octal-digits
              • Hexadecimal-digits
              • Decimal-digits
              • Binary-digits
              • Character-literals
              • Null-literal
              • Floating-point-literals
              • Boolean-literals
                • Boolean-literalp
                • Boolean-literals-grammar-validation
                  • Boolean-literalp-when-grammar-boolean-literalp
                  • Boolean-literal-tree
                  • Grammar-boolean-literalp
                  • Grammar-boolean-literalp-when-boolean-literalp
                  • Boolean-literalp-is-grammar-boolean-literalp
                • *boolean-literals*
              • Package-names
              • Literals
            • Semantics
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Boolean-literals

Boolean-literals-grammar-validation

Validation of the definition of boolean-literalp with respect to the ABNF grammar of Java.

The predicate boolean-literalp defines boolean literals `directly', i.e. without reference to the grammar. Here we introduce an alternative predicate based on the grammar, and we show it equivalent to boolean-literalp.

Subtopics

Boolean-literalp-when-grammar-boolean-literalp
Proof of boolean-literalp from grammar-boolean-literalp.
Boolean-literal-tree
Tree for a boolean literal.
Grammar-boolean-literalp
Definition of boolean literals based on the grammar.
Grammar-boolean-literalp-when-boolean-literalp
Proof of grammar-boolean-literalp from boolean-literalp.
Boolean-literalp-is-grammar-boolean-literalp
Equivalence of boolean-literalp and grammar-boolean-literalp.