Motivation: avoid overload when we use `open nat`. Unfortunately, we currently do not allow users to mark inductive datatype declarations as protected.
10 lines
693 B
Text
10 lines
693 B
Text
protected_test.lean:2:8: error: unknown identifier 'induction_on'
|
||
protected_test.lean:3:8: error: unknown identifier 'rec_on'
|
||
nat.induction_on : ∀ (n : ℕ), ?M_1 0 → (∀ (a : ℕ), ?M_1 a → ?M_1 (succ a)) → ?M_1 n
|
||
less_than.rec_on :
|
||
less_than ?M_1 ?M_3 → ?M_2 ?M_1 → (∀ {b : ℕ}, less_than ?M_1 b → ?M_2 b → ?M_2 (succ b)) → ?M_2 ?M_3
|
||
less_than.rec_on :
|
||
less_than ?M_1 ?M_3 → ?M_2 ?M_1 → (∀ {b : ℕ}, less_than ?M_1 b → ?M_2 b → ?M_2 (succ b)) → ?M_2 ?M_3
|
||
protected_test.lean:8:10: error: unknown identifier 'rec_on'
|
||
less_than.rec_on :
|
||
less_than ?M_1 ?M_3 → ?M_2 ?M_1 → (∀ {b : ℕ}, less_than ?M_1 b → ?M_2 b → ?M_2 (succ b)) → ?M_2 ?M_3
|