SSG/Util.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned compfiles documentation, Pinned compfiles corpus index
4 declarations, 0 contain sorry, 0 declared as axioms
Imported by 3 files
- def
htmlEscapeEscape for HTML text content line 6 sourceSource documentation
Escape for HTML text content
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
StringProof uses:
String.foldl,Char,HAppend.hAppend,htmlEscape.match_1,Unit,Char.toString2 instances, coercions and auxiliary constants left out.
def htmlEscape (s : String) : String := …
- def
htmlEscapeAttrEscape for HTML attribute values (superset of text escaping) line 16 sourceSource documentation
Escape for HTML attribute values (superset of text escaping)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
StringProof uses: htmlEscape
def htmlEscapeAttr (s : String) : String := …
- def
uriEncodeComponentPercent-encode a URI component (RFC 3986 unreserved chars preserved) line 20 sourceSource documentation
Percent-encode a URI component (RFC 3986 unreserved chars preserved)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
StringProof uses:
String.foldl,Char,ite,Eq,Bool,Bool.or,Char.isAlphanum,BEq.beq,Char.ofNat,Bool.true,String.push,ByteArray.foldl,UInt8,HAppend.hAppend,ToString.toString,uriEncodeComponent.hexDigit,HDiv.hDiv,OfNat.ofNat,HMod.hMod,String.toUTF8and 5 more13 instances, coercions and auxiliary constants left out.
def uriEncodeComponent (s : String) : String := …
- def
uriEncodePathEncode a full URI path (preserves / and other structure chars) line 31 sourceSource documentation
Encode a full URI path (preserves / and other structure chars)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
StringProof uses:
String.intercalate,List.map, uriEncodeComponent,String.splitOndef uriEncodePath (s : String) : String := …