See issue #1175 BTW, we may have to revise this decision in the future when we decide to populate the string library with lemmas. It is inconvenient to prove the lemmas at string/basic.lean since the tactic framework has not been defined yet. Anyway, I think it is worth to keep the private for now, and make sure nobody relies on its implementation.
8 lines
289 B
Text
8 lines
289 B
Text
def f : string → list char
|
|
| ⟨d⟩ := d -- ERROR string implementation is sealed
|
|
|
|
def g : string → list char
|
|
| (string_imp.mk d) := d -- ERROR string implementation is sealed
|
|
|
|
def h (s : string) : list char :=
|
|
string_imp.cases_on s (λ d, d) -- ERROR string implementation is sealed
|