SSG/Util.lean

GitHub source file

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
  1. def htmlEscape Escape for HTML text content line 6 source

    Source documentation

    Escape for HTML text content

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: String

    Proof uses: String.foldl, Char, HAppend.hAppend, htmlEscape.match_1, Unit, Char.toString

    2 instances, coercions and auxiliary constants left out.

    def htmlEscape (s : String) : String :=
    …
  2. def htmlEscapeAttr Escape for HTML attribute values (superset of text escaping) line 16 source

    Source documentation

    Escape for HTML attribute values (superset of text escaping)

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: String

    Proof uses: htmlEscape

    def htmlEscapeAttr (s : String) : String :=
    …
  3. def uriEncodeComponent Percent-encode a URI component (RFC 3986 unreserved chars preserved) line 20 source

    Source documentation

    Percent-encode a URI component (RFC 3986 unreserved chars preserved)

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: String

    Proof 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.toUTF8 and 5 more

    13 instances, coercions and auxiliary constants left out.

    def uriEncodeComponent (s : String) : String :=
    …
  4. def uriEncodePath Encode a full URI path (preserves / and other structure chars) line 31 source

    Source documentation

    Encode a full URI path (preserves / and other structure chars)

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: String

    Proof uses: String.intercalate, List.map, uriEncodeComponent, String.splitOn

    def uriEncodePath (s : String) : String :=
    …