• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
          • Syntax-abstraction
          • Semantics
            • Tree-terminatedp
            • Tree->string
            • String-has-finite-parse-trees-p
            • Parse-trees-of-string-p
            • Tree-match-element-p
            • Parse-treep
            • Symbol
              • Symbol-fix
              • Symbol-equiv
              • Symbol-nonterminal
              • Symbol-terminal
                • Symbol-terminal->get
                  • Make-symbol-terminal
                  • Change-symbol-terminal
                • Symbolp
                • Symbol-kind
                • Symbolp-when-rulenamep
                • Symbolp-alt-def
                • Disjoint-nat/rulename
                • Symbolp-when-natp
              • String-unambiguousp
              • Tree-match-num-val-p
              • Nat-match-insensitive-char-p
              • Nats-match-insensitive-chars-p
              • Tree-option
              • String-parsablep
              • Lookup-rulename
              • Nats-match-sensitive-chars-p
              • Numrep-match-repeat-range-p
              • Tree-match-char-val-p
              • Tree-list-match-repetition-p
              • String-ambiguousp
              • Parse
              • Tree-match-prose-val-p
              • Nat-match-sensitive-char-p
              • Theorems-about-terminated-trees-matching-elements
              • Tree-option-result
              • Tree-list-result
              • Tree-list-list-result
              • Tree-result
              • Tree-list-list-match-concatenation-p
              • Languagep
              • Terminal-string-for-rules-p
              • Tree-list-list-match-alternation-p
              • Tree-list-match-element-p
              • Parse!
              • String
              • Tree-set
              • Trees
            • Abstract-syntax
            • Core-rules
            • Concrete-syntax
          • 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
    • Symbol-terminal

    Symbol-terminal->get

    Get the get field from a symbol-terminal.

    Signature
    (symbol-terminal->get x) → get
    Arguments
    x — Guard (symbolp x).
    Returns
    get — Type (natp get).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: symbol-terminal->get$inline

    (defun symbol-terminal->get$inline (x)
      (declare (xargs :guard (symbolp x)))
      (declare (xargs :guard (equal (symbol-kind x) :terminal)))
      (let ((__function__ 'symbol-terminal->get))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (symbol-kind x) :terminal)
                          x)))
               (nfix x))
             :exec x)))

    Theorem: natp-of-symbol-terminal->get

    (defthm natp-of-symbol-terminal->get
      (b* ((get (symbol-terminal->get$inline x)))
        (natp get))
      :rule-classes :rewrite)

    Theorem: symbol-terminal->get$inline-of-symbol-fix-x

    (defthm symbol-terminal->get$inline-of-symbol-fix-x
      (equal (symbol-terminal->get$inline (symbol-fix x))
             (symbol-terminal->get$inline x)))

    Theorem: symbol-terminal->get$inline-symbol-equiv-congruence-on-x

    (defthm symbol-terminal->get$inline-symbol-equiv-congruence-on-x
      (implies (symbol-equiv x x-equiv)
               (equal (symbol-terminal->get$inline x)
                      (symbol-terminal->get$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: symbol-terminal->get-when-wrong-kind

    (defthm symbol-terminal->get-when-wrong-kind
      (implies (not (equal (symbol-kind x) :terminal))
               (equal (symbol-terminal->get x)
                      (nfix nil))))