Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
Instances For
Equations
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lapis.VFS.FingerTree.Measure.empty = { bytes := 0, utf16Units := 0, lines := 0 }
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.toList (Lapis.VFS.FingerTree.Digit.one✝ a) = [a]
- Lapis.VFS.FingerTree.Digit.toList (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = [a, a_1]
- Lapis.VFS.FingerTree.Digit.toList (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = [a, a_1, a_2]
- Lapis.VFS.FingerTree.Digit.toList (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = [a, a_1, a_2, a_3]
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.toArray (Lapis.VFS.FingerTree.Digit.one✝ a) = #[a]
- Lapis.VFS.FingerTree.Digit.toArray (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = #[a, a_1]
- Lapis.VFS.FingerTree.Digit.toArray (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = #[a, a_1, a_2]
- Lapis.VFS.FingerTree.Digit.toArray (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = #[a, a_1, a_2, a_3]
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.head (Lapis.VFS.FingerTree.Digit.one✝ a) = a
- Lapis.VFS.FingerTree.Digit.head (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = a
- Lapis.VFS.FingerTree.Digit.head (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = a
- Lapis.VFS.FingerTree.Digit.head (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = a
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.last (Lapis.VFS.FingerTree.Digit.one✝ a) = a
- Lapis.VFS.FingerTree.Digit.last (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = a_1
- Lapis.VFS.FingerTree.Digit.last (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = a_2
- Lapis.VFS.FingerTree.Digit.last (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = a_3
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.tail? (Lapis.VFS.FingerTree.Digit.one✝ a) = none
- Lapis.VFS.FingerTree.Digit.tail? (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = some (Lapis.VFS.FingerTree.Digit.one✝ a_1)
- Lapis.VFS.FingerTree.Digit.tail? (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = some (Lapis.VFS.FingerTree.Digit.two✝ a_1 a_2)
- Lapis.VFS.FingerTree.Digit.tail? (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = some (Lapis.VFS.FingerTree.Digit.three✝ a_1 a_2 a_3)
Instances For
Equations
- Lapis.VFS.FingerTree.Digit.init? (Lapis.VFS.FingerTree.Digit.one✝ a) = none
- Lapis.VFS.FingerTree.Digit.init? (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = some (Lapis.VFS.FingerTree.Digit.one✝ a)
- Lapis.VFS.FingerTree.Digit.init? (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2) = some (Lapis.VFS.FingerTree.Digit.two✝ a a_1)
- Lapis.VFS.FingerTree.Digit.init? (Lapis.VFS.FingerTree.Digit.four✝ a a_1 a_2 a_3) = some (Lapis.VFS.FingerTree.Digit.three✝ a a_1 a_2)
Instances For
def
Lapis.VFS.FingerTree.Digit.fromList?
{α : Type}
:
List α → Option (Lapis.VFS.FingerTree.Digit✝ α)
Equations
- Lapis.VFS.FingerTree.Digit.fromList? [a] = some (Lapis.VFS.FingerTree.Digit.one✝ a)
- Lapis.VFS.FingerTree.Digit.fromList? [a, b] = some (Lapis.VFS.FingerTree.Digit.two✝ a b)
- Lapis.VFS.FingerTree.Digit.fromList? [a, b, c] = some (Lapis.VFS.FingerTree.Digit.three✝ a b c)
- Lapis.VFS.FingerTree.Digit.fromList? [a, b, c, d] = some (Lapis.VFS.FingerTree.Digit.four✝ a b c d)
- Lapis.VFS.FingerTree.Digit.fromList? x✝ = none
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.Digit.measure (Lapis.VFS.FingerTree.Digit.one✝ a) = Lapis.VFS.FingerTree.Measurable.measure a
- Lapis.VFS.FingerTree.Digit.measure (Lapis.VFS.FingerTree.Digit.two✝ a a_1) = Lapis.VFS.FingerTree.Measurable.measure a + Lapis.VFS.FingerTree.Measurable.measure a_1
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Equations
- Lapis.VFS.FingerTree.Node.measure (Lapis.VFS.FingerTree.Node.node2✝ a a_1 a_2) = a
- Lapis.VFS.FingerTree.Node.measure (Lapis.VFS.FingerTree.Node.node3✝ a a_1 a_2 a_3) = a
Instances For
Equations
- Lapis.VFS.FingerTree.Node.toDigit (Lapis.VFS.FingerTree.Node.node2✝ a a_1 a_2) = Lapis.VFS.FingerTree.Digit.two✝ a_1 a_2
- Lapis.VFS.FingerTree.Node.toDigit (Lapis.VFS.FingerTree.Node.node3✝ a a_1 a_2 a_3) = Lapis.VFS.FingerTree.Digit.three✝ a_1 a_2 a_3
Instances For
Equations
- Lapis.VFS.FingerTree.Node.toList (Lapis.VFS.FingerTree.Node.node2✝ a a_1 a_2) = [a_1, a_2]
- Lapis.VFS.FingerTree.Node.toList (Lapis.VFS.FingerTree.Node.node3✝ a a_1 a_2 a_3) = [a_1, a_2, a_3]
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Nodes are themselves measurable via their cached measure
Equations
Equations
Equations
Instances For
Equations
- Lapis.VFS.FingerTree.Spine.empty = { nodes := #[], cachedMeasure := Lapis.VFS.FingerTree.Measure.empty }
Instances For
Equations
Instances For
Instances For
Equations
- Lapis.VFS.FingerTree.Spine.single n = { nodes := #[n], cachedMeasure := Lapis.VFS.FingerTree.Node.measure n }
Instances For
def
Lapis.VFS.FingerTree.Spine.cons
{α : Type}
(n : Lapis.VFS.FingerTree.Node✝ α)
(sp : Lapis.VFS.FingerTree.Spine✝ α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.VFS.FingerTree.Spine.snoc
{α : Type}
(sp : Lapis.VFS.FingerTree.Spine✝ α)
(n : Lapis.VFS.FingerTree.Node✝ α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
A finger tree is either empty, a single element, or a deep tree
- empty {α : Type} : FingerTree α
- single {α : Type} : α → FingerTree α
- deep {α : Type} : Measure → Lapis.VFS.FingerTree.Digit✝ α → Lapis.VFS.FingerTree.Spine✝ α → Lapis.VFS.FingerTree.Digit✝¹ α → FingerTree α
Instances For
Equations
Instances For
Equations
Instances For
Instances For
def
Lapis.VFS.FingerTree.FingerTree.mkDeep
{α : Type}
[Measurable α]
(pr : Lapis.VFS.FingerTree.Digit✝ α)
(sp : Lapis.VFS.FingerTree.Spine✝ α)
(sf : Lapis.VFS.FingerTree.Digit✝¹ α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.cons a Lapis.VFS.FingerTree.FingerTree.empty = Lapis.VFS.FingerTree.FingerTree.single a
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.empty.snoc a = Lapis.VFS.FingerTree.FingerTree.single a
Instances For
- nil {α : Type} : ViewL α
- cons {α : Type} : α → FingerTree α → ViewL α
Instances For
- nil {α : Type} : ViewR α
- snoc {α : Type} : FingerTree α → α → ViewR α
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.digitToTree (Lapis.VFS.FingerTree.Digit.one✝ a) = Lapis.VFS.FingerTree.FingerTree.single a
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.empty.viewL = Lapis.VFS.FingerTree.FingerTree.ViewL.nil
- (Lapis.VFS.FingerTree.FingerTree.single a).viewL = Lapis.VFS.FingerTree.FingerTree.ViewL.cons a Lapis.VFS.FingerTree.FingerTree.empty
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.empty.viewR = Lapis.VFS.FingerTree.FingerTree.ViewR.nil
- (Lapis.VFS.FingerTree.FingerTree.single a).viewR = Lapis.VFS.FingerTree.FingerTree.ViewR.snoc Lapis.VFS.FingerTree.FingerTree.empty a
Instances For
Equations
- t.head? = match t.viewL with | Lapis.VFS.FingerTree.FingerTree.ViewL.nil => none | Lapis.VFS.FingerTree.FingerTree.ViewL.cons a a_1 => some a
Instances For
def
Lapis.VFS.FingerTree.FingerTree.tail?
{α : Type}
[Measurable α]
(t : FingerTree α)
:
Option (FingerTree α)
Equations
- t.tail? = match t.viewL with | Lapis.VFS.FingerTree.FingerTree.ViewL.nil => none | Lapis.VFS.FingerTree.FingerTree.ViewL.cons a rest => some rest
Instances For
Equations
- t.last? = match t.viewR with | Lapis.VFS.FingerTree.FingerTree.ViewR.nil => none | Lapis.VFS.FingerTree.FingerTree.ViewR.snoc a a_1 => some a_1
Instances For
def
Lapis.VFS.FingerTree.FingerTree.init?
{α : Type}
[Measurable α]
(t : FingerTree α)
:
Option (FingerTree α)
Equations
- t.init? = match t.viewR with | Lapis.VFS.FingerTree.FingerTree.ViewR.nil => none | Lapis.VFS.FingerTree.FingerTree.ViewR.snoc rest a => some rest
Instances For
def
Lapis.VFS.FingerTree.FingerTree.append3
{α : Type}
[Measurable α]
(t1 : FingerTree α)
(mid : List α)
(t2 : FingerTree α)
:
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.empty.append3 mid t2 = Lapis.VFS.FingerTree.FingerTree.prependList✝ mid t2
- t1.append3 mid Lapis.VFS.FingerTree.FingerTree.empty = Lapis.VFS.FingerTree.FingerTree.appendList✝ t1 mid
- (Lapis.VFS.FingerTree.FingerTree.single a).append3 mid t2 = Lapis.VFS.FingerTree.FingerTree.cons a (Lapis.VFS.FingerTree.FingerTree.prependList✝ mid t2)
- t1.append3 mid (Lapis.VFS.FingerTree.FingerTree.single a) = (Lapis.VFS.FingerTree.FingerTree.appendList✝ t1 mid).snoc a
Instances For
Instances For
instance
Lapis.VFS.FingerTree.FingerTree.instAppendOfMeasurable
{α : Type}
[Measurable α]
:
Append (FingerTree α)
- left : FingerTree α
- pivot : α
- right : FingerTree α
Instances For
Equations
Instances For
Equations
Instances For
def
Lapis.VFS.FingerTree.FingerTree.split
{α : Type}
[Measurable α]
[Inhabited α]
(p : Measure → Bool)
(t : FingerTree α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.VFS.FingerTree.FingerTree.splitAtBytes
{α : Type}
[Measurable α]
[Inhabited α]
(n : Nat)
(t : FingerTree α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.VFS.FingerTree.FingerTree.splitAtLine
{α : Type}
[Measurable α]
[Inhabited α]
(n : Nat)
(t : FingerTree α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
Lapis.VFS.FingerTree.FingerTree.toList
{α : Type}
[Measurable α]
(t : FingerTree α)
:
List α
Equations
Instances For
partial def
Lapis.VFS.FingerTree.FingerTree.toArray.toArrayAux
{α : Type}
[Measurable α]
(t : FingerTree α)
(acc : Array α)
:
Array α
def
Lapis.VFS.FingerTree.FingerTree.foldl
{α : Type}
{β : Type u_1}
[Measurable α]
(f : β → α → β)
(init : β)
(t : FingerTree α)
:
β
Equations
- Lapis.VFS.FingerTree.FingerTree.foldl f init t = List.foldl f init t.toList
Instances For
def
Lapis.VFS.FingerTree.FingerTree.foldr
{α : Type}
{β : Type u_1}
[Measurable α]
(f : α → β → β)
(init : β)
(t : FingerTree α)
:
β
Equations
- Lapis.VFS.FingerTree.FingerTree.foldr f init t = List.foldr f init t.toList
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lapis.VFS.FingerTree.FingerTree.empty.size = 0
- (Lapis.VFS.FingerTree.FingerTree.single a).size = 1