lean2/tests/lean/induct.lean
Leonardo de Moura e4579b93e4 fix(library/elaborator): try first projection before imitation in the higher-order unifier
Projections build more general solutions. This commit also adds a test that demonstrates the issue. Before this commit, the elaborator would produce the "constant" predicate (fun x, a + b = b + a).

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-06 13:35:05 -08:00

6 lines
115 B
Text

import macros
import tactic
using Nat
theorem add_comm2 (a b : Nat) : a + b = b + a
:= induction_on b (by skip) _