• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
        • Base-api
        • Aignet-construction
        • Representation
          • Aignet-impl
          • Node
          • Network
          • Combinational-type
            • Ctype
            • Ctype-equiv
            • Ctype-fix
              • Ctypep
            • Typecode
            • Stypep
          • Aignet-copy-init
          • Aignet-simplify-marked-with-tracking
          • Aignet-cnf
          • Aignet-simplify-with-tracking
          • Aignet-complete-copy
          • Aignet-eval
          • Semantics
          • Aignet-transforms
          • Aignet-simplify-marked
          • Aignet-read-aiger
          • Aignet-write-aiger
          • Aignet-abc-interface
          • Utilities
        • Aig
        • Satlink
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Debugging
      • Projects
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Combinational-type

    Ctype-fix

    Fixing function for combinational-type keywords.

    Signature
    (ctype-fix x) → ctype
    Returns
    ctype — Type (ctypep ctype).

    Definitions and Theorems

    Function: ctype-fix

    (defun ctype-fix (x)
      (declare (xargs :guard t))
      (let ((__function__ 'ctype-fix))
        (declare (ignorable __function__))
        (if (ctypep x) x (const-ctype))))

    Theorem: ctypep-of-ctype-fix

    (defthm ctypep-of-ctype-fix
      (b* ((ctype (ctype-fix x)))
        (ctypep ctype))
      :rule-classes :rewrite)

    Theorem: ctype-fix-when-ctypep

    (defthm ctype-fix-when-ctypep
      (implies (ctypep x)
               (equal (ctype-fix x) x)))