Whether a name is a valid filename
Equations
- One or more equations did not get rendered due to their size.
Instances For
Unique string representation of names, where it is ensured that \n
does not occur
A .
is appended to the end of the name
We use "\d" to represent ".", "\n" to represent "\n", "\\" to represent "\"
To distinguish mkStr
and mkNum
, we prepend \
to all mkNum
fields
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parsing unique representation of names, see Name.uniqRepr
Equations
- One or more equations did not get rendered due to their size.
Instances For
Each name in the array is represented using Name.uniqRepr
Names are separated using \n
. A \n
is further appended to the end of the last name.
Equations
- EvalAuto.NameArray.repr ns = String.join (Array.map (fun (n : Lean.Name) => EvalAuto.Name.uniqRepr n ++ "\n") ns).toList
Instances For
Equations
- EvalAuto.NameArray.parse repr = { toList := (List.map EvalAuto.Name.parseUniqRepr (repr.splitOn "\n")).dropLast }
Instances For
Equations
- EvalAuto.NameArray.save ns fname = do let fd ← IO.FS.Handle.mk { toString := fname } IO.FS.Mode.write fd.putStr (EvalAuto.NameArray.repr ns)
Instances For
Equations
- EvalAuto.NameArray.load fname = do let fd ← IO.FS.Handle.mk { toString := fname } IO.FS.Mode.read let __do_lift ← fd.readToEnd pure (EvalAuto.NameArray.parse __do_lift)