test(tests/lean/run/simp_rfl_proof_issue): add simp refl proof test
This commit is contained in:
parent
ea8ecfd390
commit
f2ee88aecf
1 changed files with 16 additions and 0 deletions
16
tests/lean/run/simp_rfl_proof_issue.lean
Normal file
16
tests/lean/run/simp_rfl_proof_issue.lean
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
@[irreducible] def f : nat → nat
|
||||
| 0 := 1
|
||||
| (n+1) := 2 * f n
|
||||
|
||||
lemma ex1 (n : nat) : f (n+1) = 2 * f n :=
|
||||
begin
|
||||
fail_if_success {refl},
|
||||
simp only [f]
|
||||
end
|
||||
|
||||
lemma ex2 (n : nat) (h : f (n+1) = 0) : 2 * f n = 0 :=
|
||||
begin
|
||||
fail_if_success {exact h},
|
||||
simp only [f] at h,
|
||||
exact h
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue