• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Pfcs
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • C
        • Syntheto
        • File-io-light
        • Number-theory
        • Cryptography
        • Lists-light
        • Json
        • Axe
        • Builtins
        • Solidity
        • Std-extensions
          • Std/util-extensions
            • Defmapping
            • Defarbrec
            • Defmax-nat
            • Error-value-tuples
            • Defmin-int
            • Deftutorial
            • Defsurj
            • Defiso
              • Defiso-implementation
                • Defiso-lookup
                • Defiso-macro-definition
              • Defconstrained-recognizer
              • Deffixer
              • Defund-sk
              • Defmacro+
              • Defthm-commutative
              • Definj
              • Defirrelevant
            • Std/basic-extensions
            • Std/strings-extensions
            • Std/system-extensions
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Defiso-implementation

    Defiso-macro-definition

    Definition of the defiso macro.

    We call defmapping-fn, passing t as both :beta-of-alpha-thm and :alpha-of-beta-thm. Furthermore, we set the context to reference defiso.

    Macro: defiso

    (defmacro defiso (&whole call name doma domb
                             alpha beta &key (unconditional 'nil)
                             (guard-thms 't)
                             (thm-names 'nil)
                             (thm-enable 'nil)
                             (hints 'nil)
                             (print ':result)
                             (show-only 'nil))
     (cons
      'make-event-terse
      (cons
       (cons
        'defmapping-fn
        (cons
         (cons 'quote (cons name 'nil))
         (cons
          (cons 'quote (cons doma 'nil))
          (cons
           (cons 'quote (cons domb 'nil))
           (cons
            (cons 'quote (cons alpha 'nil))
            (cons
             (cons 'quote (cons beta 'nil))
             (cons
              't
              (cons
               't
               (cons
                (cons 'quote (cons guard-thms 'nil))
                (cons
                 (cons 'quote (cons unconditional 'nil))
                 (cons
                  (cons 'quote (cons thm-names 'nil))
                  (cons
                   (cons 'quote (cons thm-enable 'nil))
                   (cons
                    (cons 'quote (cons hints 'nil))
                    (cons
                     (cons 'quote (cons print 'nil))
                     (cons
                      (cons 'quote (cons show-only 'nil))
                      (cons
                       (cons 'quote (cons call 'nil))
                       (cons
                        (cons 'cons
                              (cons ''defiso
                                    (cons (cons 'quote (cons name 'nil))
                                          'nil)))
                        '(state))))))))))))))))))
       (cons ':suppress-errors
             (cons (not print) 'nil)))))