• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
                • Fty-check-mv-let-call
                • Fty-check-lambda-call
                • Fty-check-if-call
                • Fty-remove-equal-formals-actuals
                • Fty-check-and-call
                • Fty-check-or-call
                • Fty-check-fn-call
                • Fty-check-not-call
                • Fty-check-list-call
                • Fty-fsublis-var-lst
                • Fty-if-to-if*
                  • Fty-if-to-if*-lst
                • Fty-fsublis-var
              • 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
          • Language
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • 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
  • Fty-pseudo-term-utilities

Fty-if-to-if*

Replace each if with if* in a term.

Signature
(fty-if-to-if* term) → term1
Arguments
term — Guard (pseudo-termp term).
Returns
term1 — Type (pseudo-termp term1).

Theorem: return-type-of-fty-if-to-if*.term1

(defthm return-type-of-fty-if-to-if*.term1
  (b* ((?term1 (fty-if-to-if* term)))
    (pseudo-termp term1))
  :rule-classes :rewrite)

Theorem: return-type-of-fty-if-to-if*-lst.terms1

(defthm return-type-of-fty-if-to-if*-lst.terms1
  (b* ((?terms1 (fty-if-to-if*-lst terms)))
    (pseudo-term-listp terms1))
  :rule-classes :rewrite)

Theorem: len-of-fty-if-to-if*-lst

(defthm len-of-fty-if-to-if*-lst
  (b* ((?terms1 (fty-if-to-if*-lst terms)))
    (equal (len terms1) (len terms))))

Subtopics

Fty-if-to-if*-lst