lean2/tests/lean/substvars2.hlean
2015-05-25 16:36:44 -07:00

14 lines
369 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

inductive list (A : Type) :=
| nil : list A
| cons : A → list A → list A
open nat prod
example (A B : Type) (d c : nat) (h₀ : c = 0) (a : A) (b : list B) (h₁ : A = list B) (h₂ : eq.rec_on h₁ a = @list.nil B) (h₃ : d = c) (h₄ : d + 1 = d + 2)
: b = eq.rec_on h₁ a × c = 1:=
begin
substvars,
state,
injection h₄,
contradiction
end