Equations
- instReprIdType = inferInstanceAs (Repr α)
Equations
- instReprId = inferInstanceAs (Repr α)
Equations
- instReprBool = { reprPrec := fun x x_1 => match x, x_1 with | true, x => Std.Format.text "true" | false, x => Std.Format.text "false" }
Equations
- Repr.addAppParen f prec = if prec ≥ 1024 then Lean.Format.paren f else f
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- instReprPUnit = { reprPrec := fun x x => Std.Format.text "PUnit.unit" }
Equations
- instReprULift = { reprPrec := fun v prec => Repr.addAppParen (Std.Format.text "ULift.up " ++ reprArg v.down) prec }
Equations
- instReprUnit = { reprPrec := fun x x => Std.Format.text "()" }
Equations
- Option.repr x x = match x, x with | none, x => Std.Format.text "none" | some a, prec => Repr.addAppParen (Std.Format.text "some " ++ reprArg a) prec
Instances For
- reprTuple : α → List Lean.Format → List Lean.Format
Instances
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Nat.toDigitsCore base 0 x x = x
- Nat.toDigitsCore base (Nat.succ fuel) x x = let d := Nat.digitChar (x % base); let n' := x / base; if n' = 0 then d :: x else Nat.toDigitsCore base fuel n' (d :: x)
Instances For
Equations
- Nat.toDigits base n = Nat.toDigitsCore base (n + 1) n []
Instances For
Equations
- Nat.repr n = List.asString (Nat.toDigits 10 n)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
- instReprNat = { reprPrec := fun n x => Std.Format.text (Nat.repr n) }
Equations
- instReprInt = { reprPrec := fun i x => Std.Format.text (Int.repr i) }
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Char.quoteCore.smallCharToHex c = let n := Char.toNat c; let d2 := n / 16; let d1 := n % 16; hexDigitRepr d2 ++ hexDigitRepr d1
Instances For
Equations
- Char.quote c = "'" ++ Char.quoteCore c ++ "'"
Instances For
Equations
- instReprChar = { reprPrec := fun c x => Std.Format.text (Char.quote c) }
Equations
- String.quote s = if String.isEmpty s = true then "\"\"" else String.foldl (fun s c => s ++ Char.quoteCore c) "\"" s ++ "\""
Instances For
Equations
- instReprString = { reprPrec := fun s x => Std.Format.text (String.quote s) }
Equations
- instReprPos = { reprPrec := fun p x => Std.Format.text "{ byteIdx := " ++ repr p.byteIdx ++ Std.Format.text " }" }
Equations
- instReprSubstring = { reprPrec := fun s x => Std.Format.text (String.quote (Substring.toString s) ++ ".toSubstring") }
Equations
- One or more equations did not get rendered due to their size.
Equations
- instReprFin n = { reprPrec := fun f x => repr f.val }
Equations
- instReprUInt8 = { reprPrec := fun n x => repr (UInt8.toNat n) }
Equations
- instReprUInt16 = { reprPrec := fun n x => repr (UInt16.toNat n) }
Equations
- instReprUInt32 = { reprPrec := fun n x => repr (UInt32.toNat n) }
Equations
- instReprUInt64 = { reprPrec := fun n x => repr (UInt64.toNat n) }
Equations
- instReprUSize = { reprPrec := fun n x => repr (USize.toNat n) }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- instReprSourceInfo = { reprPrec := reprSourceInfo✝ }