Equations
- t.repr x✝ = Std.Format.bracket "[" (Std.Format.joinSep (List.map (fun (i : Fin n) => reprArg (t i)) (List.finRange n)) (Std.Format.text ", ")) "]"
Instances For
Equations
- Tuple.cast heq t = heq ▸ t
Instances For
Equations
- instReprTuple = { reprPrec := Tuple.repr }
instance
instDecidableRelTupleEq
{T : Type}
[ValueType T]
{n : ℕ}
:
DecidableRel fun (t₁ t₂ : Tuple T n) => t₁ = t₂
Equations
- One or more equations did not get rendered due to their size.
Equations
- Relation.cast heq r = heq ▸ r
Instances For
Equations
- instAddRelation = inferInstanceAs (Add (Multiset (Tuple T arity)))
Equations
- instSubRelation = inferInstanceAs (Sub (Multiset (Tuple T arity)))
Equations
- Database.find n s d = Database.find.f n s d
Instances For
def
sortedInsert
{α : Type u_1}
[LinearOrder α]
(x : α)
(l : { l : List α // List.Sorted (fun (x1 x2 : α) => x1 ≤ x2) l })
:
Equations
- sortedInsert x l = ⟨List.orderedInsert (fun (x1 x2 : α) => x1 ≤ x2) x ↑l, ⋯⟩
Instances For
Equations
- instToStringRelation = { toString := fun (r : Relation T n) => "\n".intercalate (List.map toString ↑(Multiset.foldr sortedInsert ⟨[], ⋯⟩ r)) ++ "\n" }