• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                  • Type-option
                  • Name+type
                  • Type-option-set-result
                  • Type-option-result
                  • Type-map-result
                  • Type-list-result
                  • Name+type-result
                  • Type-result
                  • Type-identifiers
                  • Type-primitivep
                  • Type-arithmeticp
                  • Type-namedp
                    • Type-integerp
                    • Type-map
                    • Type-option-set
                    • Type/typelist
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Types

    Type-namedp

    Check if a type is a named type.

    Signature
    (type-namedp type) → yes/no
    Arguments
    type — Guard (typep type).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: type-namedp

    (defun type-namedp (type)
      (declare (xargs :guard (typep type)))
      (let ((__function__ 'type-namedp))
        (declare (ignorable __function__))
        (or (type-primitivep type)
            (type-case type :internal-named)
            (type-case type :external-named))))

    Theorem: booleanp-of-type-namedp

    (defthm booleanp-of-type-namedp
      (b* ((yes/no (type-namedp type)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: type-namedp-of-type-fix-type

    (defthm type-namedp-of-type-fix-type
      (equal (type-namedp (type-fix type))
             (type-namedp type)))

    Theorem: type-namedp-type-equiv-congruence-on-type

    (defthm type-namedp-type-equiv-congruence-on-type
      (implies (type-equiv type type-equiv)
               (equal (type-namedp type)
                      (type-namedp type-equiv)))
      :rule-classes :congruence)