• 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
                • Atc-symbolic-computation-states
                • Atc-symbolic-execution-rules
                • Atc-gen-ext-declon-lists
                • Atc-function-and-loop-generation
                • Atc-statement-generation
                • Atc-gen-fileset
                • Atc-gen-everything
                • Atc-gen-obj-declon
                • Atc-gen-fileset-event
                • Atc-tag-tables
                  • Atc-tag-info
                  • Atc-type-to-recognizer
                  • Atc-type-to-notflexarrmem-thms
                  • Atc-string-taginfo-alist-to-writer-return-thms
                  • Atc-string-taginfo-alist-to-reader-return-thms
                  • Atc-string-taginfo-alist-to-writers
                  • Atc-string-taginfo-alist-to-readers
                  • Atc-type-to-pointer-type-to-quoted-thms
                  • Atc-type-to-type-to-quoted-thms
                  • Atc-type-to-type-of-value-thm
                  • Atc-type-to-valuep-thm
                  • Atc-type-to-value-kind-thm
                  • Atc-string-taginfo-alist-to-pointer-type-to-quoted-thms
                  • Atc-get-tag-info
                    • Atc-string-taginfo-alist-to-type-to-quoted-thms
                    • Atc-string-taginfo-alist-to-type-of-value-thms
                    • Atc-string-taginfo-alist-to-member-write-thms
                    • Atc-string-taginfo-alist-to-member-read-thms
                    • Atc-string-taginfo-alist-to-value-kind-thms
                    • Atc-string-taginfo-alist-to-recognizers
                    • Atc-string-taginfo-alist-to-flexiblep-thms
                    • Atc-string-taginfo-alist-to-valuep-thms
                    • Atc-string-taginfo-alist-to-not-error-thms
                    • Atc-string-taginfo-alist
                    • Irr-atc-tag-info
                  • Atc-expression-generation
                  • Atc-generation-contexts
                  • Atc-gen-wf-thm
                  • Term-checkers-atc
                  • Atc-variable-tables
                  • Term-checkers-common
                  • Atc-gen-init-fun-env-thm
                  • Atc-gen-appconds
                  • Read-write-variables
                  • Atc-gen-thm-assert-events
                  • Test*
                  • Atc-gen-prog-const
                  • Atc-gen-expr-bool
                  • Atc-theorem-generation
                  • Atc-tag-generation
                  • Atc-gen-expr-pure
                  • Atc-function-tables
                  • Atc-object-tables
                • Fty-pseudo-term-utilities
                • Atc-term-recognizers
                • Atc-input-processing
                • Atc-shallow-embedding
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
              • Pure-expression-execution
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • 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
    • Atc-tag-tables

    Atc-get-tag-info

    Retrieve the information about a tag from a tag table.

    Signature
    (atc-get-tag-info tag prec-tags) → info
    Arguments
    tag — Guard (identp tag).
    prec-tags — Guard (atc-string-taginfo-alistp prec-tags).
    Returns
    info — Type (atc-tag-infop info).

    This is always called on tag that are in the table, so we thrown an internal error if the tag is not in the table.

    Definitions and Theorems

    Function: atc-get-tag-info

    (defun atc-get-tag-info (tag prec-tags)
      (declare
           (xargs :guard (and (identp tag)
                              (atc-string-taginfo-alistp prec-tags))))
      (let ((__function__ 'atc-get-tag-info))
        (declare (ignorable __function__))
        (b* ((info (cdr (assoc-equal (ident->name tag)
                                     prec-tags)))
             ((unless (atc-tag-infop info))
              (raise "Internal error: no information for tag ~x0."
                     tag)
              (irr-atc-tag-info)))
          info)))

    Theorem: atc-tag-infop-of-atc-get-tag-info

    (defthm atc-tag-infop-of-atc-get-tag-info
      (b* ((info (atc-get-tag-info tag prec-tags)))
        (atc-tag-infop info))
      :rule-classes :rewrite)