@[inline, reducible]
Equations
- reprStr a = Lean.Format.pretty (reprPrec a 0) Std.Format.defWidth 0
Instances For
Equations
- instReprIdType = inferInstanceAs (Repr α)
Equations
- instReprId = inferInstanceAs (Repr α)
Equations
- One or more equations did not get rendered due to their size.
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 : PUnit) (x : Nat) => Std.Format.text "PUnit.unit" }
Equations
- instReprULift = { reprPrec := fun (v : ULift α) (prec : Nat) => Repr.addAppParen (Std.Format.text "ULift.up " ++ reprArg v.down) prec }
Equations
- instReprUnit = { reprPrec := fun (x : Unit) (x : Nat) => 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
- instReprTuple = { reprTuple := fun (a : α) (xs : List Lean.Format) => repr a :: xs }
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 : Nat) => Std.Format.text (Nat.repr n) }
Equations
- instReprInt = { reprPrec := fun (i : Int) (x : Nat) => 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 : Char) (x : Nat) => Std.Format.text (Char.quote c) }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- instReprString = { reprPrec := fun (s : String) (x : Nat) => Std.Format.text (String.quote s) }
Equations
- instReprPos = { reprPrec := fun (p : String.Pos) (x : Nat) => Std.Format.text "{ byteIdx := " ++ repr p.byteIdx ++ Std.Format.text " }" }
Equations
- instReprSubstring = { reprPrec := fun (s : Substring) (x : Nat) => 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 : Fin n) (x : Nat) => repr ↑f }
Equations
- instReprUInt8 = { reprPrec := fun (n : UInt8) (x : Nat) => repr (UInt8.toNat n) }
Equations
- instReprUInt16 = { reprPrec := fun (n : UInt16) (x : Nat) => repr (UInt16.toNat n) }
Equations
- instReprUInt32 = { reprPrec := fun (n : UInt32) (x : Nat) => repr (UInt32.toNat n) }
Equations
- instReprUInt64 = { reprPrec := fun (n : UInt64) (x : Nat) => repr (UInt64.toNat n) }
Equations
- instReprUSize = { reprPrec := fun (n : USize) (x : Nat) => repr (USize.toNat n) }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- instReprSourceInfo = { reprPrec := reprSourceInfo✝ }