lean4-htt/tests/lean/run/simp_partial_app.lean

17 lines
396 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.

open tactic
example (a : list nat) : a = [1, 2] → a^.map nat.succ = [2, 3] :=
begin
intros,
guard_target list.map nat.succ a = [2, 3],
subst a,
simp [list.map]
end
constant f {α : Type} [has_zero α] (a b : α) : a ≠ 0 → b ≠ 0 → α
axiom fax {α : Type} [has_zero α] (a : α) : f a = λ b h₁ h₂, a
lemma ex : f 1 2 dec_trivial dec_trivial = 1 :=
begin
simp [fax]
end