• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
        • R1cs-subset
        • Semantics
          • Semantics-deeply-embedded
          • Lifting
            • Lift-thm
            • Lift-thm-constr-satp-specialized-lemma
            • Lift-thm-definition-satp-specialized-lemma
            • Lift-thm-constr-to-def-satp-specialized-lemmas
            • Lift-info
              • Lift-info-fix
                • Lift-info-equiv
                • Make-lift-info
                • Change-lift-info
                • Lift-info->hyps
                • Lift-info->def
                • Lift-infop
              • Lift-thm-def-hyps
              • Lift-thm-asgfree-pairs
              • Lift-thm-free-inst
              • Lift-thm-type-prescriptions-for-called-preds
              • Lift-fn
              • Lift-thm-omap-keys-lemma-instances
              • Lift-rules
              • Lift-table-add
              • Lift
              • Lift-thm-asgfree-pairs-aux
              • Lift-thm-called-lift-thms
              • Lift-table
            • Semantics-shallowly-embedded
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Lift-info

    Lift-info-fix

    Fixing function for lift-info structures.

    Signature
    (lift-info-fix x) → new-x
    Arguments
    x — Guard (lift-infop x).
    Returns
    new-x — Type (lift-infop new-x).

    Definitions and Theorems

    Function: lift-info-fix$inline

    (defun lift-info-fix$inline (x)
      (declare (xargs :guard (lift-infop x)))
      (let ((__function__ 'lift-info-fix))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((def (definition-fix (cdr (std::da-nth 0 x))))
                  (hyps (list-fix (cdr (std::da-nth 1 x)))))
               (list (cons 'def def)
                     (cons 'hyps hyps)))
             :exec x)))

    Theorem: lift-infop-of-lift-info-fix

    (defthm lift-infop-of-lift-info-fix
      (b* ((new-x (lift-info-fix$inline x)))
        (lift-infop new-x))
      :rule-classes :rewrite)

    Theorem: lift-info-fix-when-lift-infop

    (defthm lift-info-fix-when-lift-infop
      (implies (lift-infop x)
               (equal (lift-info-fix x) x)))

    Function: lift-info-equiv$inline

    (defun lift-info-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (lift-infop acl2::x)
                                  (lift-infop acl2::y))))
      (equal (lift-info-fix acl2::x)
             (lift-info-fix acl2::y)))

    Theorem: lift-info-equiv-is-an-equivalence

    (defthm lift-info-equiv-is-an-equivalence
      (and (booleanp (lift-info-equiv x y))
           (lift-info-equiv x x)
           (implies (lift-info-equiv x y)
                    (lift-info-equiv y x))
           (implies (and (lift-info-equiv x y)
                         (lift-info-equiv y z))
                    (lift-info-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: lift-info-equiv-implies-equal-lift-info-fix-1

    (defthm lift-info-equiv-implies-equal-lift-info-fix-1
      (implies (lift-info-equiv acl2::x x-equiv)
               (equal (lift-info-fix acl2::x)
                      (lift-info-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: lift-info-fix-under-lift-info-equiv

    (defthm lift-info-fix-under-lift-info-equiv
      (lift-info-equiv (lift-info-fix acl2::x)
                       acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-lift-info-fix-1-forward-to-lift-info-equiv

    (defthm equal-of-lift-info-fix-1-forward-to-lift-info-equiv
      (implies (equal (lift-info-fix acl2::x) acl2::y)
               (lift-info-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-lift-info-fix-2-forward-to-lift-info-equiv

    (defthm equal-of-lift-info-fix-2-forward-to-lift-info-equiv
      (implies (equal acl2::x (lift-info-fix acl2::y))
               (lift-info-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: lift-info-equiv-of-lift-info-fix-1-forward

    (defthm lift-info-equiv-of-lift-info-fix-1-forward
      (implies (lift-info-equiv (lift-info-fix acl2::x)
                                acl2::y)
               (lift-info-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: lift-info-equiv-of-lift-info-fix-2-forward

    (defthm lift-info-equiv-of-lift-info-fix-2-forward
      (implies (lift-info-equiv acl2::x (lift-info-fix acl2::y))
               (lift-info-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)