• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
          • Atc-implementation
            • Atc-abstract-syntax
            • Atc-pretty-printer
            • Atc-event-and-code-generation
            • Fty-pseudo-term-utilities
            • Atc-term-recognizers
            • Atc-input-processing
            • Atc-shallow-embedding
              • Defstruct
              • Defobject
                • Defobject-implementation
                  • Defobject-info
                    • Defobject-info-fix
                      • Make-defobject-info
                      • Defobject-info-equiv
                      • Defobject-infop
                      • Defobject-info->recognizer
                      • Defobject-info->name-symbol
                      • Defobject-info->name-ident
                      • Defobject-info->initializer
                      • Change-defobject-info
                      • Defobject-info->init
                      • Defobject-info->call
                      • Defobject-info->type
                    • Defobject-gen-everything
                    • Defobject-process-name
                    • Defobject-info-option
                    • Defobject-term-to-expr
                    • Term-checkers-common
                    • Defobject-process-init
                    • Defobject-process-init-term
                    • Defobject-table-record-event
                    • Defobject-process-type
                    • Defobject-process-inputs
                    • Defobject-table-lookup
                    • Defobject-process-init-terms
                    • Defobject-process-inputs-and-gen-everything
                    • Defobject-fn
                    • Defobject-table-definition
                    • *defobject-table*
                    • Defobject-macro-definition
                • Atc-let-designations
                • Pointer-types
                • Atc-conditional-expressions
              • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defobject-info

    Defobject-info-fix

    Fixing function for defobject-info structures.

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

    Definitions and Theorems

    Function: defobject-info-fix$inline

    (defun defobject-info-fix$inline (x)
     (declare (xargs :guard (defobject-infop x)))
     (let ((__function__ 'defobject-info-fix))
      (declare (ignorable __function__))
      (mbe
        :logic
        (b*
          ((name-ident (ident-fix (cdr (std::da-nth 0 x))))
           (name-symbol (symbol-fix (cdr (std::da-nth 1 x))))
           (type (type-fix (cdr (std::da-nth 2 x))))
           (init (initer-option-fix (cdr (std::da-nth 3 x))))
           (recognizer (symbol-fix (cdr (std::da-nth 4 x))))
           (initializer (symbol-fix (cdr (std::da-nth 5 x))))
           (call (acl2::pseudo-event-form-fix (cdr (std::da-nth 6 x)))))
          (list (cons 'name-ident name-ident)
                (cons 'name-symbol name-symbol)
                (cons 'type type)
                (cons 'init init)
                (cons 'recognizer recognizer)
                (cons 'initializer initializer)
                (cons 'call call)))
        :exec x)))

    Theorem: defobject-infop-of-defobject-info-fix

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

    Theorem: defobject-info-fix-when-defobject-infop

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

    Function: defobject-info-equiv$inline

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

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

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

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

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

    Theorem: defobject-info-fix-under-defobject-info-equiv

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

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

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

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

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

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

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

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

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