• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
        • Grammar-parser
        • Meta-circular-validation
          • *concrete-syntax-rules-parsed-and-abstracted*
            • *core-rules-parsed-and-abstracted*
            • *concrete-syntax-rules-parsed*
            • *core-rules-parsed*
          • 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
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • 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
    • Meta-circular-validation

    *concrete-syntax-rules-parsed-and-abstracted*

    Rule list that *concrete-syntax-rules-parsed* abstracts to.

    Applying the grammar abstractor to the parse tree obtained by applying the grammar parser to the file concrete-syntax-rules.abnf, yields a list of rules. This shows that the abstractor abstracts the parsed definition of the concrete syntax of ABNF without errors.

    Furthermore, the rule list thus obtained is identical to *concrete-syntax-rules*, which is the definition of the concrete syntax of ABNF written manually using the abstract syntax of ABNF.

    We use add-const-to-untranslate-preprocess to keep this constant unexpanded in output.

    Definition: *concrete-syntax-rules-parsed-and-abstracted*

    (defconst *concrete-syntax-rules-parsed-and-abstracted*
      (abstract-rulelist *concrete-syntax-rules-parsed*))

    Definitions and Theorems

    Function: untranslate-preprocess-*concrete-syntax-rules-parsed-and-abstracted*

    (defun
     untranslate-preprocess-*concrete-syntax-rules-parsed-and-abstracted*
     (acl2::term acl2::wrld)
     (if (equal acl2::term
                (list 'quote
                      *concrete-syntax-rules-parsed-and-abstracted*))
         '*concrete-syntax-rules-parsed-and-abstracted*
       (untranslate-preprocess-*core-rules-parsed-and-abstracted*
            acl2::term acl2::wrld)))

    Theorem: *concrete-syntax-rules-parsed-and-abstracted*-correct

    (defthm *concrete-syntax-rules-parsed-and-abstracted*-correct
      (equal *concrete-syntax-rules-parsed-and-abstracted*
             *concrete-syntax-rules*)
      :rule-classes nil)