Documentation

Provenance.Util.ValueTypeString

@[implicit_reducible]
Equations
@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
@[implicit_reducible]
Equations

Bridging String.foldl / String.Slice.foldl to List.foldl #

In Lean 4.29 String.foldl is defined through String.Slice.foldl, which itself is Std.Iter.fold over the iterator of characters. We restate it as a List.foldl on toList to reuse standard list-induction arguments.

Nat.repr n has no underscores: parsing reduces to digit folds #

Tracking the four-tuple state of String.Slice.isNat #

@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.