lean4-htt/tests/lean/run/smt_tests2.lean
2017-01-13 13:36:19 -08:00

53 lines
1.3 KiB
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.

lemma ex1 (a b c : nat) (f : nat → nat → nat) : f 0 1 = 1 → (λ x y : nat, x) = f → false :=
begin [smt]
intros
end
lemma ex2 (a b c : nat) (f : nat → nat → nat) : f 0 1 = 1 → f = (λ x y, x) → false :=
begin [smt]
intros
end
lemma ex3 (a b c : nat) (f : nat → nat) : f = (λ x, x) → f 0 = 1 → false :=
begin [smt]
intros
end
lemma ex4 (a b c : nat) (f : nat → nat) : (λ x : nat, x) = f → f 0 = 1 → false :=
begin [smt]
intros
end
open list
universe variables u
lemma ex5 {α : Type u} (l : list α) (a : α) (f : αα × α) :
f = (λ x, (x, x)) → map f (a::l) = (a, a) :: map f l :=
begin [smt]
intros,
add_eqn_lemmas map,
ematch
end
lemma ex6 {α : Type u} (l : list α) (a : α) (f : αα × α) :
map f (a::l) ≠ (a, a) :: map f l → f = (λ x, (x, x)) → false :=
begin [smt]
intros,
add_eqn_lemmas map,
ematch
end
lemma ex7 (a b c : nat) (f : nat → nat → nat) : f 0 1 = 1 → (λ (x : nat) (y : char), x) == f → f = (λ (x : nat) (y : nat), 2) → false :=
begin [smt]
intros
end
/-
The following kind of propagation is not supported yet.
We can add it if it is needed in practice.
example (a b c : nat) (f : nat → nat → nat) : (λ x : nat, x) = f b → f b 0 = 1 → false :=
begin [smt]
close
end
-/