lean2/tests/lean/simp_loop.lean
Leonardo de Moura ee4344076e feat(library/simplifier): improve error message when simplifier is looping
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-28 19:36:31 -08:00

14 lines
259 B
Text

import tactic
import macros
variable f : Nat → Nat
variable g : Nat → Nat
axiom Ax1 (a : Nat) : f a = g a
axiom Ax2 (a : Nat) : g a = f a
add_rewrite Ax1 Ax2
-- The following call to simp should produce a stack overflow
theorem T : f 0 = 0
:= by simp