You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/-- 偶数であることを表す帰納的述語 -/inductiveEven : Nat → Prop where
| zero : Even 0
| succ : Even n → Even (n + 2)
example (h : Even 0) : True := by/- index in target's type is not a variable (consider using the `cases` tactic instead) 0 -/
induction h
example (h : Even 0) : True := by
generalize 0 = x at h
induction h
· trivial
· trivial
example (n m : Nat) (h : Even (n + m)) : True := by/- index in target's type is not a variable (consider using the `cases` tactic instead) n + m -/
induction h
case zero =>
trivial
case succ n ih =>
trivial
induction タクティクを使用したときにたまに起こるエラー。そもそも何を言っているのか?
The text was updated successfully, but these errors were encountered: