• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
      • Start-here
      • Real
      • Debugging
      • Miscellaneous
        • Term
        • Ld
        • Hints
        • Type-set
        • Ordinals
        • ACL2-customization
        • With-prover-step-limit
        • With-prover-time-limit
        • Set-prover-step-limit
        • Local-incompatibility
        • Set-case-split-limitations
        • Subversive-recursions
        • Specious-simplification
        • Defsum
        • Oracle-timelimit
        • Thm
          • Otf-flg
          • Rule
        • Defopener
        • Gcl
        • Case-split-limitations
        • Set-gc-strategy
        • Default-defun-mode
        • Top-level
        • Reader
        • Ttags-seen
        • Adviser
        • Ttree
        • Abort-soft
        • Defsums
        • Gc$
        • With-timeout
        • Coi-debug::fail
        • Expander
        • Gc-strategy
        • Coi-debug::assert
        • Sin-cos
        • Def::doc
        • Syntax
        • Subversive-inductions
      • Output-controls
      • Macros
      • Interfacing-tools
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Miscellaneous

Thm

Prove a theorem

Example:
(thm (equal (app (app a b) c)
            (app a (app b c))))

Also see defthm. Unlike defthm, thm does not store an event; it merely causes the theorem prover to attempt a proof. But like defthm, calls of thm are legal in event contexts (see embedded-event-form).

General Form:
(thm term
     :hints        hints
     :otf-flg      otf-flg)

where term is a term alleged to be a theorem, and hints and otf-flg are as described in the corresponding documentation topics. The keyword arguments above are both optional. Unlike defthm, the :instructions keyword is not legal for thm; use an :instructions hint instead, i.e., :hints (("Goal" :instructions ...)).

For information on how thm is implemented using make-event, see make-event-example-3.

Subtopics

Otf-flg
Allow more than one initial subgoal to be pushed for induction
Rule
A thm-like version of defrule.