• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
      • Operational-semantics
      • Real
      • Start-here
      • Miscellaneous
      • Output-controls
      • Bdd
      • Macros
        • Make-event
        • Defmacro
        • Untranslate-patterns
          • Add-untranslate-pattern
            • Optimize-untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • Trans
          • User-defined-functions-table
            • Untranslate-patterns
              • Add-untranslate-pattern
                • Optimize-untranslate-patterns
              • Add-const-to-untranslate-preprocess
            • Untranslate-for-execution
            • Macro-libraries
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Untranslate-patterns

      Add-untranslate-pattern

      Add a new pattern to the untranslate patterns table.

      General Form:

      (add-untranslate-pattern target replacement)

      Examples:

      (add-untranslate-pattern '(1 2 3) *myconst*)
      (add-untranslate-pattern (f$ ?a ?b mystobj) (f ?a ?b))

      We add a new pattern to the untranslate patterns table. The target should be either a quoted constant (which must be fully expanded, it does not get evaluated), or an unquoted function call.

      The first example above changes proof output so that the constant '(1 2 3) is instead printed as *myconst*. The second example changes proof output so that for all x,y, (f$ x y mystobj) is printed as (f x y). Note that the printing of (f$ x y yourstobj) will not be altered.