• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
      • Debugging
      • Miscellaneous
        • Term
        • Ld
        • Hints
        • Type-set
        • Ordinals
        • Clause
        • ACL2-customization
        • With-prover-step-limit
        • Set-prover-step-limit
        • With-prover-time-limit
        • Local-incompatibility
        • Set-case-split-limitations
        • Subversive-recursions
        • Specious-simplification
        • Defsum
        • Gcl
        • Oracle-timelimit
        • Thm
          • Otf-flg
          • Rule
        • Defopener
        • 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
    • Math
    • Testing-utilities
  • 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
     :instructions instructions
     :hints        hints
     :otf-flg      otf-flg)

where term is a term alleged to be a theorem, and instructions, hints, and otf-flg are as described in the corresponding documentation topics. The keyword arguments are optional.

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.