We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
try?
1 parent caa4188 commit f6fad9dCopy full SHA for f6fad9d
LeanByExample/Tactic/TryQuestion.lean
@@ -17,7 +17,15 @@ example (as : List α) : (reverse as).head? = as.last? := by
17
-- grind 単体では証明ができない
18
fail_if_success grind
19
20
+ -- 帰納法を適当に使ってみてもダメ
21
+ fail_if_success induction as with grind
22
+ fail_if_success fun_induction last? <;> grind
23
+
24
-- try? なら証明を見つけることができる
25
26
27
+example (as : List α) : (reverse as).head? = as.last? := by
28
+ -- 証明の一例
29
+ fun_induction last? <;> grind [= last?.eq_def]
30
31
end List
0 commit comments