• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
          • Implementation
          • Setp
          • Right
          • Left
          • Head
          • Double-containment
          • Subset
          • Intersect
          • Insert
          • In
          • Delete
          • Union
          • Diff
          • From-list
          • To-list
          • Set-equiv
          • Sfix
            • Pick-a-point
            • Cardinality
            • Set-induct
            • Set-bi-induct
            • Emptyp
          • Soft
          • C
          • 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
    • Set

    Sfix

    Fixer for sets.

    Signature
    (sfix set) → set$
    Arguments
    set — Guard (setp set).
    Returns
    set$ — Type (setp set$).

    Definitions and Theorems

    Function: sfix

    (defun sfix (set)
      (declare (xargs :guard (setp set)))
      (let ((__function__ 'sfix))
        (declare (ignorable __function__))
        (mbe :logic (if (setp set) set nil)
             :exec (the (or cons null) set))))

    Theorem: setp-of-sfix

    (defthm setp-of-sfix
      (b* ((set$ (sfix set))) (setp set$))
      :rule-classes :rewrite)