lean2/tests/lean/hott/488.hlean
Leonardo de Moura 0814e76298 fix(library/tactic/clear_tactic): unexpected failure
This commit also improves the error message produced by the 'clear' tactic.

fixes #488
2015-03-23 12:08:15 -07:00

9 lines
239 B
Text

constants {A B : Type} {P : B → Type} {f : A → B}
(rec_on : Π(b : B) (H : Πa, P (f a)) (H2 : Πa, H a = H a), P b)
example (b : B) (H : Πa, P (f a)) : P b :=
begin
fapply (rec_on b),
{exact H},
{clear b, apply sorry}
end