Open Seasawher opened 1 week ago
"index in target's type" は型族についている添字(Nat
に限りません)ことなので、それが変数じゃない、ってことでしょうね。
以下のコードでも同じエラーが出ました。
inductive PNat : Nat → Prop where
| zero : PNat 0
| succ (h : PNat n) : PNat (n + 1)
example (h : PNat 0) : PNat 1 := by
induction h
sorry
induction タクティクを使用したときにたまに起こるエラー。そもそも何を言っているのか?