• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
          • Defdefparse-implementation
            • Defdefparse-event-generation
              • Defdefparse-gen-function-for-rulename
              • Defdefparse-gen-code-for-alternation
              • Defdefparse-gen-code-for-repetition
              • Defdefparse-gen-function-for-group
              • Defdefparse-function-spec
                • Defdefparse-function-spec-fix
                • Defdefparse-function-spec-case
                • Defdefparse-function-spec-equiv
                • Defdefparse-function-spec-p
                • Defdefparse-function-spec-rulename
                • Defdefparse-function-spec-option
                • Defdefparse-function-spec-group
                • Defdefparse-function-spec-repetition
                • Defdefparse-function-spec-kind
                • Defdefparse-gen-code-for-element
                • Defdefparse-gen-*-group-macro
                • Defdefparse-gen-function-for-option
                • Defdefparse-gen-option-macro
                • Defdefparse-gen-group-macro
                • Defdefparse-gen-function-for-repetition
                • Defdefparse-gen-code-for-concatenation
                • Defdefparse-gen-*-rulename-macro
                • Defdefparse-gen-rulename-macro
                • Defdefparse-gen-repetition-alist
                • Defdefparse-gen-option-alist
                • Defdefparse-gen-group-alist
                • Defdefparse-gen-everything
                • Defdefparse-gen-repetition-table-macro
                • Defdefparse-gen-option-table-macro
                • Defdefparse-gen-group-table-macro
                • Defdefparse-gen-function-for-spec
                • Defdefparse-gen-repetition-table
                • Defdefparse-gen-option-table
                • Defdefparse-gen-group-table
                • Defdefparse-reorder-alternation
                • Defdefparse-order-permutationp
                • Defdefparse-gen-repetition-table-name
                • Defdefparse-gen-option-table-name
                • Defdefparse-gen-group-table-name
                • Defdefparse-alt-symbol-alist
                • Defdefparse-rep-symbol-alist
              • Defdefparse-fn
              • Defdefparse-input-processing
              • Defdefparse-table
              • Defdefparse-macro-definition
          • Defgrammar
          • Tree-utilities
          • Notation
          • Grammar-parser
          • Meta-circular-validation
          • 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
    • Defdefparse-function-spec

    Defdefparse-function-spec-kind

    Get the kind (tag) of a defdefparse-function-spec structure.

    Signature
    (defdefparse-function-spec-kind x) → kind
    Arguments
    x — Guard (defdefparse-function-spec-p x).

    Definitions and Theorems

    Function: defdefparse-function-spec-kind$inline

    (defun defdefparse-function-spec-kind$inline (x)
      (declare (xargs :guard (defdefparse-function-spec-p x)))
      (let ((__function__ 'defdefparse-function-spec-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :rulename))
                           :rulename)
                          ((eq (car x) :group) :group)
                          ((eq (car x) :option) :option)
                          (t :repetition))
             :exec (car x))))

    Theorem: defdefparse-function-spec-kind-possibilities

    (defthm defdefparse-function-spec-kind-possibilities
      (or (equal (defdefparse-function-spec-kind x)
                 :rulename)
          (equal (defdefparse-function-spec-kind x)
                 :group)
          (equal (defdefparse-function-spec-kind x)
                 :option)
          (equal (defdefparse-function-spec-kind x)
                 :repetition))
      :rule-classes
      ((:forward-chaining
            :trigger-terms ((defdefparse-function-spec-kind x)))))