• 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
            • Ascii-identifiers
            • Unambiguity
            • Preprocessing
            • Abstraction-mapping
            • Standard
            • Purity
              • Abstract-syntax-purep
                • Exprs/decls/stmts-purep
                • Binop-purep
                • Unop-purep
                  • Typequal/attribspec-list-list-purep
                  • Typequal/attribspec-list-purep
                  • Structdeclor-list-purep
                  • Param-declon-list-purep
                  • Structdecl-list-purep
                  • Spec/qual-list-purep
                  • Initdeclor-list-purep
                  • Genassoc-list-purep
                  • Enumer-list-purep
                  • Desiniter-list-purep
                  • Designor-list-purep
                  • Decl-spec-list-purep
                  • Block-item-list-purep
                  • Attrib-spec-list-purep
                  • Attrib-list-purep
                  • Asm-output-list-purep
                  • Asm-input-list-purep
                  • Expr-list-purep
                  • Decl-list-purep
                  • Typequal/attribspec-purep
                  • Struni-spec-purep
                  • Structdeclor-purep
                  • Structdecl-purep
                  • Statassert-purep
                  • Spec/qual-purep
                  • Param-declor-purep
                  • Param-declon-purep
                  • Member-designor-purep
                  • Initer-option-purep
                  • Initdeclor-purep
                  • Expr-option-purep
                  • Dirabsdeclor-purep
                  • Dirabsdeclor-option-purep
                  • Declor-option-purep
                  • Const-expr-purep
                  • Const-expr-option-purep
                  • Block-item-purep
                  • Attrib-spec-purep
                  • Asm-output-purep
                  • Amb-expr/tyname-purep
                  • Amb-decl/stmt-purep
                  • Amb-declor/absdeclor-purep
                  • Align-spec-purep
                  • Absdeclor-option-purep
                  • Type-spec-purep
                  • Tyname-purep
                  • Stmt-purep
                  • Label-purep
                  • Initer-purep
                  • Genassoc-purep
                  • Expr-purep
                  • Enumspec-purep
                  • Enumer-purep
                  • Dirdeclor-purep
                  • Desiniter-purep
                  • Designor-purep
                  • Declor-purep
                  • Decl-spec-purep
                  • Decl-purep
                  • Attrib-purep
                  • Asm-stmt-purep
                  • Asm-input-purep
                  • Absdeclor-purep
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Abstract-syntax-purep

    Unop-purep

    Signature
    (unop-purep unop) → fty::result
    Arguments
    unop — Guard (unopp unop).
    Returns
    fty::result — Type (booleanp fty::result).

    Definitions and Theorems

    Function: unop-purep

    (defun unop-purep (unop)
      (declare (xargs :guard (unopp unop)))
      (declare (ignorable unop))
      (let ((__function__ 'unop-purep))
        (declare (ignorable __function__))
        (unop-case unop
                   :address t
                   :indir t
                   :plus t
                   :minus t
                   :bitnot t
                   :lognot t
                   :preinc nil
                   :predec nil
                   :postinc nil
                   :postdec nil
                   :sizeof t)))

    Theorem: booleanp-of-unop-purep

    (defthm booleanp-of-unop-purep
      (b* ((fty::result (unop-purep unop)))
        (booleanp fty::result))
      :rule-classes :rewrite)

    Theorem: unop-purep-of-unop-fix-unop

    (defthm unop-purep-of-unop-fix-unop
      (equal (unop-purep (unop-fix unop))
             (unop-purep unop)))

    Theorem: unop-purep-unop-equiv-congruence-on-unop

    (defthm unop-purep-unop-equiv-congruence-on-unop
      (implies (unop-equiv unop unop-equiv)
               (equal (unop-purep unop)
                      (unop-purep unop-equiv)))
      :rule-classes :congruence)