Loogle!
Result
Found 789 declarations whose name contains "sort". Of these, only the first 200 are shown.
- instInhabitedSort π Init.Prelude
: Inhabited (Sort u) - coeSortNotation π Init.Coe
: Lean.ParserDescr - boolToSort π Init.Coe
: CoeSort Bool Prop - CoeSort π Init.Coe
(Ξ± : Sort u) (Ξ² : outParam (Sort v)) : Sort (max (max 1 u) v) - instCoeOutOfCoeSort π Init.Coe
{Ξ± : Sort u_1} {Ξ² : Sort u_2} [CoeSort Ξ± Ξ²] : CoeOut Ξ± Ξ² - CoeSort.coe π Init.Coe
{Ξ± : Sort u} {Ξ² : outParam (Sort v)} [self : CoeSort Ξ± Ξ²] : Ξ± β Ξ² - CoeSort.mk π Init.Coe
{Ξ± : Sort u} {Ξ² : outParam (Sort v)} (coe : Ξ± β Ξ²) : CoeSort Ξ± Ξ² - Nat.Internal.Linear.Poly.denote_sort π Init.Data.Nat.Internal.Linear
(ctx : Nat.Internal.Linear.Context) (m : Nat.Internal.Linear.Poly) : Nat.Internal.Linear.Poly.denote ctx m.norm = Nat.Internal.Linear.Poly.denote ctx m - Nat.Internal.SOM.Poly.insertSorted π Init.Data.Nat.Internal.SOM
(k : β) (m : Nat.Internal.SOM.Mon) (p : Nat.Internal.SOM.Poly) : Nat.Internal.SOM.Poly - Nat.Internal.SOM.Poly.denote_insertSorted π Init.Data.Nat.Internal.SOM
(ctx : Nat.Internal.Linear.Context) (k : β) (m : Nat.Internal.SOM.Mon) (p : Nat.Internal.SOM.Poly) : Nat.Internal.SOM.Poly.denote ctx (Nat.Internal.SOM.Poly.insertSorted k m p) = Nat.Internal.SOM.Poly.denote ctx p + k * Nat.Internal.SOM.Mon.denote ctx m - Lean.Data.AC.sort π Init.Data.AC
(xs : List β) : List β - Lean.Data.AC.sort.loop π Init.Data.AC
: List β β List β β List β - Lean.Data.AC.Context.sort_loop_nonEmpty π Init.Data.AC
{ys : List β} (xs : List β) (h : xs β []) : Lean.Data.AC.sort.loop xs ys β [] - Lean.Data.AC.Context.evalList_sort π Init.Data.AC
{Ξ± : Sort u_1} (ctx : Lean.Data.AC.Context Ξ±) (h : Lean.Data.AC.ContextInformation.isComm ctx = true) (e : List β) : Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort e) = Lean.Data.AC.evalList Ξ± ctx e - Lean.Data.AC.Context.evalList_sort_cons π Init.Data.AC
{Ξ± : Sort u_1} (ctx : Lean.Data.AC.Context Ξ±) (h : Std.Commutative ctx.op) (x : β) (xs : List β) : Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort (x :: xs)) = Lean.Data.AC.evalList Ξ± ctx (x :: Lean.Data.AC.sort xs) - Lean.Data.AC.Context.evalList_sort_loop_swap π Init.Data.AC
{Ξ± : Sort u_1} {y : β} (ctx : Lean.Data.AC.Context Ξ±) (h : Std.Commutative ctx.op) (xs ys : List β) : Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort.loop xs (y :: ys)) = Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort.loop (y :: xs) ys) - Lean.Data.AC.Context.evalList_sort_congr π Init.Data.AC
{Ξ± : Sort u_1} {a b c : List β} (ctx : Lean.Data.AC.Context Ξ±) (h : Std.Commutative ctx.op) (hβ : Lean.Data.AC.evalList Ξ± ctx a = Lean.Data.AC.evalList Ξ± ctx b) (hβ : a β []) (hβ : b β []) : Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort.loop a c) = Lean.Data.AC.evalList Ξ± ctx (Lean.Data.AC.sort.loop b c) - Lean.Grind.CommRing.Poly.isSorted π Init.Grind.Ring.CommSolver
: Lean.Grind.CommRing.Poly β Bool - Lean.Grind.AC.Seq.sort π Init.Grind.AC
(s : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq - Lean.Grind.AC.Seq.sort_k π Init.Grind.AC
(s : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq - Lean.Grind.AC.Seq.sort' π Init.Grind.AC
(s acc : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq - Lean.Grind.AC.Seq.sort'_k π Init.Grind.AC
(s : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq β Lean.Grind.AC.Seq - Lean.Grind.AC.Seq.sort_k_eq_sort π Init.Grind.AC
(s : Lean.Grind.AC.Seq) : s.sort_k = s.sort - Lean.Grind.AC.Seq.sort'_k_eq_sort' π Init.Grind.AC
(s acc : Lean.Grind.AC.Seq) : s.sort'_k acc = s.sort' acc - Lean.Grind.AC.Seq.denote_sort π Init.Grind.AC
{Ξ± : Sort u_1} (ctx : Lean.Grind.AC.Context Ξ±) {instβ : Std.Associative ctx.op} {instβ : Std.Commutative ctx.op} (s : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq.denote ctx s.sort = Lean.Grind.AC.Seq.denote ctx s - Lean.Grind.AC.Seq.denote_sort' π Init.Grind.AC
{Ξ± : Sort u_1} (ctx : Lean.Grind.AC.Context Ξ±) {instβ : Std.Associative ctx.op} {instβ : Std.Commutative ctx.op} (s acc : Lean.Grind.AC.Seq) : Lean.Grind.AC.Seq.denote ctx (s.sort' acc) = ctx.op (Lean.Grind.AC.Seq.denote ctx s) (Lean.Grind.AC.Seq.denote ctx acc) - List.mergeSort π Init.Data.List.Sort.Basic
{Ξ± : Type u_1} (xs : List Ξ±) (le : Ξ± β Ξ± β Bool := by exact fun a b => a β€ b) : List Ξ± - List.MergeSort.Internal.splitInTwo π Init.Data.List.Sort.Basic
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : { l // l.length = (n + 1) / 2 } Γ { l // l.length = n / 2 } - List.mergeSort_perm π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} (l : List Ξ±) (le : Ξ± β Ξ± β Bool) : (l.mergeSort le).Perm l - List.mergeSort_nil π Init.Data.List.Sort.Lemmas
{Ξ±β : Type u_1} {r : Ξ±β β Ξ±β β Bool} : [].mergeSort r = [] - List.length_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (l : List Ξ±) : (l.mergeSort le).length = l.length - List.mergeSort_singleton π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {r : Ξ± β Ξ± β Bool} (a : Ξ±) : [a].mergeSort r = [a] - List.mergeSort_of_pairwise π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {l : List Ξ±} : List.Pairwise (fun a b => le a b = true) l β l.mergeSort le = l - List.mem_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {a : Ξ±} {l : List Ξ±} : a β l.mergeSort le β a β l - List.mergeSort_zipIdx π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {l : List Ξ±} : List.map (fun x => x.1) (l.zipIdx.mergeSort (List.zipIdxLE le)) = l.mergeSort le - List.mergeSort_pair π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (a b : Ξ±) : [a, b].mergeSort le = if le a b = true then [a, b] else [b, a] - List.pairwise_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) (l : List Ξ±) : List.Pairwise (fun a b => le a b = true) (l.mergeSort le) - List.map_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_2} {Ξ² : Type u_1} {r : Ξ± β Ξ± β Bool} {s : Ξ² β Ξ² β Bool} {f : Ξ± β Ξ²} {l : List Ξ±} (hl : β a β l, β b β l, r a b = s (f a) (f b)) : List.map f (l.mergeSort r) = (List.map f l).mergeSort s - List.sublist_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {xs : List Ξ±} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) {ys : List Ξ±} : List.Pairwise (fun a b => le a b = true) ys β ys.Sublist xs β ys.Sublist (xs.mergeSort le) - List.mergeSort_append π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (lβ lβ : List Ξ±) (hβ : lβ.length β€ lβ.length) (hβ : lβ.length β€ lβ.length + 1) : (lβ ++ lβ).mergeSort le = (lβ.mergeSort le).merge (lβ.mergeSort le) le - List.pair_sublist_mergeSort π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {a b : Ξ±} {l : List Ξ±} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) (hab : le a b = true) (h : [a, b].Sublist l) : [a, b].Sublist (l.mergeSort le) - List.mergeSort_cons π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) (a : Ξ±) (l : List Ξ±) : β lβ lβ, (a :: l).mergeSort le = lβ ++ a :: lβ β§ l.mergeSort le = lβ ++ lβ β§ β b β lβ, (!le a b) = true - List.MergeSort.Internal.splitInTwo_snd_pairwise π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} {le : Ξ± β Ξ± β Prop} (l : { l // l.length = n }) (h : List.Pairwise le βl) : List.Pairwise le β(List.MergeSort.Internal.splitInTwo l).2 - List.MergeSort.Internal.splitInTwo_fst_pairwise π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} {le : Ξ± β Ξ± β Prop} (l : { l // l.length = n }) (h : List.Pairwise le βl) : List.Pairwise le β(List.MergeSort.Internal.splitInTwo l).1 - List.MergeSort.Internal.splitInTwo_snd π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitInTwo l).2 = β¨List.drop ((n + 1) / 2) βl, β―β© - List.MergeSort.Internal.splitInTwo_fst π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitInTwo l).1 = β¨List.take ((n + 1) / 2) βl, β―β© - List.MergeSort.Internal.splitInTwo_fst_append_splitInTwo_snd π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : β(List.MergeSort.Internal.splitInTwo l).1 ++ β(List.MergeSort.Internal.splitInTwo l).2 = βl - List.MergeSort.Internal.splitInTwo_fst_le_splitInTwo_snd π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {n : β} {le : Ξ± β Ξ± β Prop} {l : { l // l.length = n }} (h : List.Pairwise le βl) (a b : Ξ±) : a β β(List.MergeSort.Internal.splitInTwo l).1 β b β β(List.MergeSort.Internal.splitInTwo l).2 β le a b - List.MergeSort.Internal.splitInTwo_cons_cons_zipIdx_fst π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} (i : β) (l : List Ξ±) : β(List.MergeSort.Internal.splitInTwo β¨(a, i) :: (b, i + 1) :: l.zipIdx (i + 2), β―β©).1 = (β(List.MergeSort.Internal.splitInTwo β¨a :: b :: l, β―β©).1).zipIdx i - List.MergeSort.Internal.splitInTwo_cons_cons_zipIdx_snd π Init.Data.List.Sort.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} (i : β) (l : List Ξ±) : β(List.MergeSort.Internal.splitInTwo β¨(a, i) :: (b, i + 1) :: l.zipIdx (i + 2), β―β©).2 = (β(List.MergeSort.Internal.splitInTwo β¨a :: b :: l, β―β©).2).zipIdx (i + (l.length + 3) / 2) - List.MergeSort.Internal.splitRevAt π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} (n : β) (l : List Ξ±) : List Ξ± Γ List Ξ± - List.MergeSort.Internal.mergeSortTR π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} (l : List Ξ±) (le : Ξ± β Ξ± β Bool := by exact fun a b => a β€ b) : List Ξ± - List.MergeSort.Internal.mergeSortTRβ π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} (l : List Ξ±) (le : Ξ± β Ξ± β Bool := by exact fun a b => a β€ b) : List Ξ± - List.MergeSort.Internal.mergeTR π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} (lβ lβ : List Ξ±) (le : Ξ± β Ξ± β Bool) : List Ξ± - List.MergeSort.Internal.mergeSort_eq_mergeSortTR π Init.Data.List.Sort.Impl
: @List.mergeSort = @List.MergeSort.Internal.mergeSortTR - List.MergeSort.Internal.mergeSort_eq_mergeSortTRβ π Init.Data.List.Sort.Impl
: @List.mergeSort = @List.MergeSort.Internal.mergeSortTRβ - List.MergeSort.Internal.merge_eq_mergeTR π Init.Data.List.Sort.Impl
: @List.merge = @List.MergeSort.Internal.mergeTR - List.MergeSort.Internal.splitRevAt_eq π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} (i : β) (l : List Ξ±) : List.MergeSort.Internal.splitRevAt i l = ((List.take i l).reverse, List.drop i l) - List.MergeSort.Internal.splitRevInTwo π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : { l // l.length = (n + 1) / 2 } Γ { l // l.length = n / 2 } - List.MergeSort.Internal.splitRevInTwo' π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : { l // l.length = n / 2 } Γ { l // l.length = (n + 1) / 2 } - List.MergeSort.Internal.splitRevInTwo_snd π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitRevInTwo l).2 = β¨β(List.MergeSort.Internal.splitInTwo l).2, β―β© - List.MergeSort.Internal.splitRevInTwo'_fst π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitRevInTwo' l).1 = β¨β(List.MergeSort.Internal.splitInTwo β¨(βl).reverse, β―β©).2, β―β© - List.MergeSort.Internal.splitRevInTwo_fst π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitRevInTwo l).1 = β¨(β(List.MergeSort.Internal.splitInTwo l).1).reverse, β―β© - List.MergeSort.Internal.splitRevInTwo'_snd π Init.Data.List.Sort.Impl
{Ξ± : Type u_1} {n : β} (l : { l // l.length = n }) : (List.MergeSort.Internal.splitRevInTwo' l).2 = β¨(β(List.MergeSort.Internal.splitInTwo β¨(βl).reverse, β―β©).1).reverse, β―β© - Array.qsortOrd π Init.Data.Array.QSort.Basic
{Ξ± : Type u_1} [ord : Ord Ξ±] (xs : Array Ξ±) : Array Ξ± - Array.qsort π Init.Data.Array.QSort.Basic
{Ξ± : Type u_1} (as : Array Ξ±) (lt : Ξ± β Ξ± β Bool := by exact (Β· < Β·)) (lo : β := 0) (hi : β := as.size - 1) : Array Ξ± - Array.insertionSort π Init.Data.Array.InsertionSort
{Ξ± : Type u_1} (xs : Array Ξ±) (lt : Ξ± β Ξ± β Bool := by exact (Β· < Β·)) : Array Ξ± - Array.mergeSort π Init.Data.Array.Sort.Basic
{Ξ± : Type u_1} (xs : Array Ξ±) (le : Ξ± β Ξ± β Bool := by exact (Β· β€ Β·)) : Array Ξ± - Subarray.mergeSort π Init.Data.Array.Sort.Basic
{Ξ± : Type u_1} (xs : Subarray Ξ±) (le : Ξ± β Ξ± β Bool := by exact (Β· β€ Β·)) : Array Ξ± - Array.mergeSort_perm π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Array Ξ±} {le : Ξ± β Ξ± β Bool} : (xs.mergeSort le).Perm xs - Array.size_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {xs : Array Ξ±} : (xs.mergeSort le).size = xs.size - Array.mergeSort_empty π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {r : Ξ± β Ξ± β Bool} : #[].mergeSort r = #[] - Array.mergeSort_eq_toArray_mergeSort_toList π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Array Ξ±} {le : Ξ± β Ξ± β Bool} : xs.mergeSort le = (xs.toList.mergeSort le).toArray - Array.toList_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Array Ξ±} {le : Ξ± β Ξ± β Bool} : (xs.mergeSort le).toList = xs.toList.mergeSort le - Array.mergeSort_singleton π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {r : Ξ± β Ξ± β Bool} {a : Ξ±} : #[a].mergeSort r = #[a] - Array.mem_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {a : Ξ±} {xs : Array Ξ±} : a β xs.mergeSort le β a β xs - Array.mergeSort_of_pairwise π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {xs : Array Ξ±} : List.Pairwise (fun x1 x2 => le x1 x2 = true) xs.toList β xs.mergeSort le = xs - Subarray.mergeSort_eq_mergeSort_toArray π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Subarray Ξ±} {le : Ξ± β Ξ± β Bool} : xs.mergeSort le = (Std.Slice.toArray xs).mergeSort le - Subarray.mergeSort_toArray π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Subarray Ξ±} {le : Ξ± β Ξ± β Bool} : (Std.Slice.toArray xs).mergeSort le = xs.mergeSort le - Subarray.toList_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Subarray Ξ±} {le : Ξ± β Ξ± β Bool} : (xs.mergeSort le).toList = (Std.Slice.toList xs).mergeSort le - Array.pairwise_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) {xs : Array Ξ±} : List.Pairwise (fun x1 x2 => le x1 x2 = true) (xs.mergeSort le).toList - Array.map_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {r : Ξ± β Ξ± β Bool} {s : Ξ² β Ξ² β Bool} {f : Ξ± β Ξ²} {xs : Array Ξ±} (hxs : β a β xs, β b β xs, r a b = s (f a) (f b)) : Array.map f (xs.mergeSort r) = (Array.map f xs).mergeSort s - Array.mergeSort_zipIdx π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {xs : Array Ξ±} : Array.map (fun x => x.1) ((Array.map (fun x => match x with | (a, i) => (a, i)) xs.zipIdx).mergeSort (List.zipIdxLE le)) = xs.mergeSort le - Array.sublist_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {xs : Array Ξ±} {le : Ξ± β Ξ± β Bool} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) {ys : List Ξ±} : List.Pairwise (fun x1 x2 => le x1 x2 = true) ys β ys.Sublist xs.toList β ys.Sublist (xs.mergeSort le).toList - Array.pair_sublist_mergeSort π Init.Data.Array.Sort.Lemmas
{Ξ± : Type u_1} {le : Ξ± β Ξ± β Bool} {a b : Ξ±} {xs : Array Ξ±} (trans : β (a b c : Ξ±), le a b = true β le b c = true β le a c = true) (total : β (a b : Ξ±), (le a b || le b a) = true) (hab : le a b = true) (h : [a, b].Sublist xs.toList) : [a, b].Sublist (xs.mergeSort le).toList - Lean.mkSort π Lean.Expr
(u : Lean.Level) : Lean.Expr - Lean.mkSortEx π Lean.Expr
: Lean.Level β Lean.Expr - Lean.Expr.isSort π Lean.Expr
: Lean.Expr β Bool - Lean.Expr.sort π Lean.Expr
(u : Lean.Level) : Lean.Expr - Lean.Expr.sortLevel! π Lean.Expr
: Lean.Expr β Lean.Level - Lean.Expr.updateSort! π Lean.Expr
(e : Lean.Expr) (newLevel : Lean.Level) : Lean.Expr - Lean.LocalContext.sortFVarsByContextOrder π Lean.LocalContext
(lctx : Lean.LocalContext) (hyps : Array Lean.FVarId) : Array Lean.FVarId - Lean.getErrorExplanationsSorted π Lean.ErrorExplanation
{m : Type β Type} [Monad m] [Lean.MonadEnv m] : m (Array (Lean.Name Γ Lean.ErrorExplanation)) - Lean.Meta.sortFVarIds π Lean.Meta.Basic
(fvarIds : Array Lean.FVarId) : Lean.MetaM (Array Lean.FVarId) - Lean.Meta.CoeFnType.coeSort π Lean.Meta.CoeAttr
: Lean.Meta.CoeFnType - Lean.Parser.Term.sort π Lean.Parser.Term
: Lean.Parser.Parser - Lean.PrettyPrinter.Delaborator.delabSort π Lean.PrettyPrinter.Delaborator.Builtins
: Lean.PrettyPrinter.Delaborator.Delab - _private.Lean.Meta.Closure.0.Lean.Meta.Closure.TopoSort.doneMark π Lean.Meta.Closure
(self : Lean.Meta.Closure.TopoSortβ) : Lean.FVarIdHashSet - _private.Lean.Meta.Closure.0.Lean.Meta.Closure.TopoSort.tempMark π Lean.Meta.Closure
(self : Lean.Meta.Closure.TopoSortβ) : Lean.FVarIdHashSet - _private.Lean.Meta.Closure.0.Lean.Meta.Closure.TopoSort.newArgs π Lean.Meta.Closure
(self : Lean.Meta.Closure.TopoSortβ) : Array Lean.Expr - _private.Lean.Meta.Closure.0.Lean.Meta.Closure.TopoSort.newDecls π Lean.Meta.Closure
(self : Lean.Meta.Closure.TopoSortβ) : Array Lean.LocalDecl - Lean.sortExprs π Lean.Util.SortExprs
(es : Array Lean.Expr) (lt : Bool := true) : Array Lean.Expr Γ Lean.Perm - Lean.HeadIndex.sort π Lean.HeadIndex
: Lean.HeadIndex - Lean.Meta.coerceToSort? π Lean.Meta.Coe
(expr : Lean.Expr) : Lean.MetaM (Option Lean.Expr) - Lean.Elab.Term.ToDepElimPattern.TopSort.State π Lean.Elab.Match
: Type - Lean.Elab.Term.ToDepElimPattern.TopSortM π Lean.Elab.Match
(Ξ± : Type) : Type - Lean.Elab.Term.ToDepElimPattern.TopSort.State.visitedFVars π Lean.Elab.Match
(self : Lean.Elab.Term.ToDepElimPattern.TopSort.State) : Lean.FVarIdSet - Lean.Elab.Term.ToDepElimPattern.TopSort.State.visitedMVars π Lean.Elab.Match
(self : Lean.Elab.Term.ToDepElimPattern.TopSort.State) : Lean.MVarIdSet - Lean.Elab.Term.ToDepElimPattern.TopSort.State.result π Lean.Elab.Match
(self : Lean.Elab.Term.ToDepElimPattern.TopSort.State) : Array Lean.Expr - Lean.Elab.Term.ToDepElimPattern.TopSort.State.mk π Lean.Elab.Match
(visitedFVars : Lean.FVarIdSet) (visitedMVars : Lean.MVarIdSet) (result : Array Lean.Expr) : Lean.Elab.Term.ToDepElimPattern.TopSort.State - Lean.Elab.Tactic.sortMVarIdArrayByIndex π Lean.Elab.Tactic.ElabTerm
{m : Type β Type} [Lean.MonadMCtx m] [Monad m] (mvarIds : Array Lean.MVarId) : m (Array Lean.MVarId) - Lean.Elab.Tactic.sortMVarIdsByIndex π Lean.Elab.Tactic.ElabTerm
{m : Type β Type} [Lean.MonadMCtx m] [Monad m] (mvarIds : Array Lean.MVarId) : m (Array Lean.MVarId) - Lean.Lsp.CompletionItem.sortText? π Lean.Data.Lsp.LanguageFeatures
(self : Lean.Lsp.CompletionItem) : Option String - Lean.Lsp.ResolvableCompletionItem.sortText? π Lean.Data.Lsp.LanguageFeatures
(self : Lean.Lsp.ResolvableCompletionItem) : Option String - Lean.Elab.Term.elabSort π Lean.Elab.BuiltinTerm
: Lean.Elab.Term.TermElab - Lean.Elab.Term.elabCoeSortNotation π Lean.Elab.BuiltinNotation
: Lean.Elab.Term.TermElab - Array.dedupSorted π Batteries.Data.Array.Merge
{Ξ± : Type u_1} [eq : BEq Ξ±] (xs : Array Ξ±) : Array Ξ± - Array.sortDedup π Batteries.Data.Array.Merge
{Ξ± : Type u_1} [ord : Ord Ξ±] (xs : Array Ξ±) : Array Ξ± - Array.mergeUnsortedDedup π Batteries.Data.Array.Merge
{Ξ± : Type u_1} [eq : BEq Ξ±] (xs ys : Array Ξ±) : Array Ξ± - Array.mergeUnsortedDedup.go π Batteries.Data.Array.Merge
{Ξ± : Type u_1} [eq : BEq Ξ±] (xs ys : Array Ξ±) : Array Ξ± - Array.heapSort π Batteries.Data.BinaryHeap.Basic
{Ξ± : Type u_1} (a : Array Ξ±) (lt : Ξ± β Ξ± β Bool) : Array Ξ± - Batteries.Tactic.Lint.sortResults π Batteries.Tactic.Lint.Frontend
{Ξ± : Type} (results : Std.HashMap Lean.Name Ξ±) : Lean.CoreM (Array (Lean.Name Γ Ξ±)) - RBTree.RBSet.toList_sorted π Batteries.Recycling.RBTree.Lemmas
{Ξ± : Type u_1} {cmp : Ξ± β Ξ± β Ordering} {t : RBTree.RBSet Ξ± cmp} : List.Pairwise (RBTree.RBNode.cmpLT cmp) t.toList - RBTree.RBNode.Ordered.toList_sorted π Batteries.Recycling.RBTree.Lemmas
{Ξ± : Type u_1} {cmp : Ξ± β Ξ± β Ordering} {t : RBTree.RBNode Ξ±} : RBTree.RBNode.Ordered cmp t β List.Pairwise (RBTree.RBNode.cmpLT cmp) t.toList - RBTree.RBMap.toList_sorted π Batteries.Recycling.RBTree.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {cmp : Ξ± β Ξ± β Ordering} {t : RBTree.RBMap Ξ± Ξ² cmp} : List.Pairwise (RBTree.RBNode.cmpLT fun x1 x2 => cmp x1.1 x2.1) t.toList - Lean.Meta.sortFVarsByContextOrder π Batteries.Lean.Meta.Basic
{m : Type β Type} [Monad m] [Lean.MonadLCtx m] (hyps : Array Lean.FVarId) : m (Array Lean.FVarId) - Lean.Elab.Command.getSortedAssertExists π Lean.Elab.AssertExists
(env : Lean.Environment) : Array Lean.Elab.Command.AssertExists - Lean.Elab.sortDeclLevelParams π Lean.Elab.DeclUtil
(scopeParams allUserParams : List Lean.Name) (usedParams : Array Lean.Name) : Except String (List Lean.Name) - Lean.Elab.Term.Β«termSort*Β» π Mathlib.Tactic.TypeStar
: Lean.ParserDescr - Aesop.UnorderedArraySet.ofSortedArray π Aesop.Util.UnorderedArraySet
{Ξ± : Type u_1} [BEq Ξ±] (xs : Array Ξ±) : Aesop.UnorderedArraySet Ξ± - Aesop.sortRuleStatsTotals π Aesop.Stats.Basic
(ts : Array (Aesop.DisplayRuleName Γ Aesop.RuleStatsTotals)) : Array (Aesop.DisplayRuleName Γ Aesop.RuleStatsTotals) - Aesop.Script.sortDedupArrays π Aesop.Script.UScriptToSScript
{Ξ± : Type u_1} [Ord Ξ±] (as : Array (Array Ξ±)) : Array Ξ± - Aesop.sortedMedianD π Aesop.Stats.Report
{Ξ± : Type u_1} (dflt : Ξ±) (xs : Array Ξ±) : Ξ± - Aesop.sortedPercentileD π Aesop.Stats.Report
{Ξ± : Type u_1} (p : Aesop.Percent) (dflt : Ξ±) (xs : Array Ξ±) : Ξ± - LinOrd.instCoeSortType π Mathlib.Order.Defs.LinearOrder
: CoeSort LinOrd (Type u_2) - Qq.SortLocalDecls.Context π Qq.SortLocalDecls
: Type - Qq.SortLocalDecls.State π Qq.SortLocalDecls
: Type - Qq.SortLocalDecls.M π Qq.SortLocalDecls
(Ξ± : Type) : Type - Qq.SortLocalDecls.State.visited π Qq.SortLocalDecls
(self : Qq.SortLocalDecls.State) : Lean.NameSet - Qq.SortLocalDecls.visitExpr π Qq.SortLocalDecls
(e : Lean.Expr) : Qq.SortLocalDecls.M Unit - Qq.SortLocalDecls.visitLocalDecl π Qq.SortLocalDecls
(localDecl : Lean.LocalDecl) : Qq.SortLocalDecls.M Unit - Qq.SortLocalDecls.Context.localDecls π Qq.SortLocalDecls
(self : Qq.SortLocalDecls.Context) : Lean.NameMap Lean.LocalDecl - Qq.SortLocalDecls.Context.mk π Qq.SortLocalDecls
(localDecls : Lean.NameMap Lean.LocalDecl) : Qq.SortLocalDecls.Context - Qq.SortLocalDecls.State.result π Qq.SortLocalDecls
(self : Qq.SortLocalDecls.State) : Array Lean.LocalDecl - Qq.SortLocalDecls.State.mk π Qq.SortLocalDecls
(visited : Lean.NameSet) (result : Array Lean.LocalDecl) : Qq.SortLocalDecls.State - Qq.sortLocalDecls π Qq.SortLocalDecls
(localDecls : Array Lean.LocalDecl) : Lean.MetaM (Array Lean.LocalDecl) - Bool.coe_sort_false π Mathlib.Data.Bool.Basic
: (false = true) = False - Bool.coe_sort_true π Mathlib.Data.Bool.Basic
: (true = true) = True - Set.instCoeSortType π Mathlib.Data.Set.CoeSort
{Ξ± : Type u} : CoeSort (Set Ξ±) (Type u) - Set.Nonempty.coe_sort π Mathlib.Data.Set.Basic
{Ξ± : Type u} {s : Set Ξ±} : s.Nonempty β Nonempty βs - Set.nonempty_coe_sort π Mathlib.Data.Set.Basic
{Ξ± : Type u} {s : Set Ξ±} : Nonempty βs β s.Nonempty - Set.isEmpty_coe_sort π Mathlib.Data.Set.Basic
{Ξ± : Type u} {s : Set Ξ±} : IsEmpty βs β s = β - Set.Nontrivial.coe_sort π Mathlib.Data.Set.Subsingleton
{Ξ± : Type u} {s : Set Ξ±} : s.Nontrivial β Nontrivial βs - Set.Subsingleton.coe_sort π Mathlib.Data.Set.Subsingleton
{Ξ± : Type u} {s : Set Ξ±} : s.Subsingleton β Subsingleton βs - Set.nontrivial_coe_sort π Mathlib.Data.Set.Subsingleton
{Ξ± : Type u} {s : Set Ξ±} : Nontrivial βs β s.Nontrivial - Lean.Meta.ensureIsSort π Mathlib.Lean.Meta.Basic
(e : Lean.Expr) : Lean.MetaM Lean.Expr - Lean.Meta.RefinedDiscrTree.Key.sort π Mathlib.Lean.Meta.RefinedDiscrTree.Basic
: Lean.Meta.RefinedDiscrTree.Key - Lean.Meta.Sym.Internal.mkSortS π Lean.Meta.Sym.AlphaShareBuilder
{m : Type β Type} [Lean.Meta.Sym.Internal.MonadShareCommon m] (u : Lean.Level) : m Lean.Expr - Int.Internal.Linear.Poly.isSorted π Lean.Meta.Tactic.Grind.Arith.Cutsat.Util
(p : Int.Internal.Linear.Poly) : Bool - Lean.Meta.Grind.TopSort.State π Lean.Meta.Tactic.Grind.EqResolution
: Type - Lean.Meta.Grind.TopSortM π Lean.Meta.Tactic.Grind.EqResolution
(Ξ± : Type) : Type - Lean.Meta.Grind.TopSort.State.result π Lean.Meta.Tactic.Grind.EqResolution
(self : Lean.Meta.Grind.TopSort.State) : Array Lean.Expr - Lean.Meta.Grind.TopSort.State.permMark π Lean.Meta.Tactic.Grind.EqResolution
(self : Lean.Meta.Grind.TopSort.State) : Std.HashSet Lean.Expr - Lean.Meta.Grind.TopSort.State.tempMark π Lean.Meta.Tactic.Grind.EqResolution
(self : Lean.Meta.Grind.TopSort.State) : Std.HashSet Lean.Expr - Lean.Meta.Grind.TopSort.State.mk π Lean.Meta.Tactic.Grind.EqResolution
(tempMark permMark : Std.HashSet Lean.Expr) (result : Array Lean.Expr) : Lean.Meta.Grind.TopSort.State - Lean.Grind.AC.Seq.isSorted π Lean.Meta.Tactic.Grind.AC.Seq
(s : Lean.Grind.AC.Seq) : Bool - Mathlib.Tactic.LibraryRewrite.checkAndSortRewriteLemmas π Mathlib.Tactic.Widget.LibraryRewrite
(e : Lean.Expr) (rewrites : Array Mathlib.Tactic.LibraryRewrite.RewriteLemma) : Lean.MetaM (Array (Mathlib.Tactic.LibraryRewrite.Rewrite Γ Lean.Name)) - Mathlib.Tactic.Linarith.GlobalPreprocessorToGlobalBranchingPreprocessor π Mathlib.Tactic.Linarith.Datatypes
: Coe Mathlib.Tactic.Linarith.GlobalPreprocessor Mathlib.Tactic.Linarith.GlobalBranchingPreprocessor - Mathlib.Tactic.Linarith.PreprocessorToGlobalBranchingPreprocessor π Mathlib.Tactic.Linarith.Datatypes
: Coe Mathlib.Tactic.Linarith.Preprocessor Mathlib.Tactic.Linarith.GlobalBranchingPreprocessor - SetLike.instCoeSortType π Mathlib.Data.SetLike.Basic
{A : Type u_1} {B : Type u_2} [i : SetLike A B] : CoeSort A (Type u_2) - SetLike.coe_sort_coe π Mathlib.Data.SetLike.Basic
{A : Type u_1} {B : Type u_2} [i : SetLike A B] (p : A) : ββp = β₯p - Finset.coe_sort_coe π Mathlib.Data.Finset.Defs
{Ξ± : Type u_1} (s : Finset Ξ±) : ββs = β₯s - List.Nodup.mergeSort π Mathlib.Data.List.Nodup
{Ξ± : Type u} {l : List Ξ±} {le : Ξ± β Ξ± β Bool} : l.Nodup β (l.mergeSort le).Nodup - List.nodup_mergeSort π Mathlib.Data.List.Nodup
{Ξ± : Type u} {l : List Ξ±} {le : Ξ± β Ξ± β Bool} : (l.mergeSort le).Nodup β l.Nodup - Finset.Nonempty.coe_sort π Mathlib.Data.Finset.Empty
{Ξ± : Type u_1} {s : Finset Ξ±} : s.Nonempty β Nonempty β₯s - Finset.nonempty_coe_sort π Mathlib.Data.Finset.Empty
{Ξ± : Type u_1} {s : Finset Ξ±} : Nonempty β₯s β s.Nonempty - Finset.isEmpty_coe_sort π Mathlib.Data.Finset.Empty
{Ξ± : Type u_1} {s : Finset Ξ±} : IsEmpty β₯s β s = β - Finset.fintypeCoeSort π Mathlib.Data.Fintype.Sets
{Ξ± : Type u} (s : Finset Ξ±) : Fintype β₯s - List.SortedGE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] (l : List Ξ±) : Prop - List.SortedGT π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] (l : List Ξ±) : Prop - List.SortedLE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] (l : List Ξ±) : Prop - List.SortedLT π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] (l : List Ξ±) : Prop - List.sortedLT_range π Mathlib.Data.List.Sort
(n : β) : (List.range n).SortedLT - List.sortedGE_nil π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] : [].SortedGE - List.sortedGT_nil π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] : [].SortedGT - List.sortedLE_nil π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] : [].SortedLE - List.sortedLT_nil π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] : [].SortedLT - List.sortedLE_range' π Mathlib.Data.List.Sort
(a b s : β) : (List.range' a b s).SortedLE - List.sortedLT_finRange π Mathlib.Data.List.Sort
(n : β) : (List.finRange n).SortedLT - List.insertionSort π Mathlib.Data.List.Sort
{Ξ± : Type u_1} (r : Ξ± β Ξ± β Prop) [DecidableRel r] : List Ξ± β List Ξ± - List.sortedLE_replicate π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] {a : Ξ±} (n : β) : (List.replicate n a).SortedLE - List.SortedGT.nodup π Mathlib.Data.List.Sort
{Ξ± : Type u_1} {l : List Ξ±} [Preorder Ξ±] (h : l.SortedGT) : l.Nodup - List.SortedLT.nodup π Mathlib.Data.List.Sort
{Ξ± : Type u_1} {l : List Ξ±} [Preorder Ξ±] (h : l.SortedLT) : l.Nodup - List.SortedGT.sortedGE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] {l : List Ξ±} (h : l.SortedGT) : l.SortedGE - List.SortedLT.sortedLE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] {l : List Ξ±} (h : l.SortedLT) : l.SortedLE - List.decidableSortedGE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] [DecidableLE Ξ±] : DecidablePred List.SortedGE - List.decidableSortedGT π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] [DecidableLT Ξ±] : DecidablePred List.SortedGT - List.decidableSortedLE π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] [DecidableLE Ξ±] : DecidablePred List.SortedLE - List.decidableSortedLT π Mathlib.Data.List.Sort
{Ξ± : Type u_1} [Preorder Ξ±] [DecidableLT Ξ±] : DecidablePred List.SortedLT - List.SortedGE.of_reverse π Mathlib.Data.List.Sort
{Ξ± : Type u_1} {l : List Ξ±} [Preorder Ξ±] : l.reverse.SortedGE β l.SortedLE
About
Loogle searches Lean and Mathlib definitions and theorems.
You can use Loogle from within the Lean4 VSCode language extension
using the Loogle command from the command palette. You can also try the
#loogle command from LeanSearchClient,
the CLI version, the Loogle
VS Code extension, the lean.nvim
integration or the Zulip bot.
Usage
Loogle finds definitions and lemmas in various ways:
By constant:
πReal.sin
finds all lemmas whose statement somehow mentions the sine function.By lemma name substring:
π"differ"
finds all lemmas that have"differ"somewhere in their lemma name.By subexpression:
π_ * (_ ^ _)
finds all lemmas whose statements somewhere include a product where the second argument is raised to some power.The pattern can also be non-linear, as in
πReal.sqrt ?a * Real.sqrt ?aIf the pattern has parameters, they are matched in any order. Both of these will find
List.map:
π(?a -> ?b) -> List ?a -> List ?b
πList ?a -> (?a -> ?b) -> List ?bBy main conclusion:
π|- tsum _ = _ * tsum _
finds all lemmas where the conclusion (the subexpression to the right of allβandβ) has the given shape.As before, if the pattern has parameters, they are matched against the hypotheses of the lemma in any order; for example,
π|- _ < _ β tsum _ < tsum _
will findtsum_lt_tsumeven though the hypothesisf i < g iis not the last.You can filter for definitions vs theorems: Using
β’ (_ : Type _)finds all definitions which provide data whileβ’ (_ : Prop)finds all theorems (and definitions of proofs).
If you pass more than one such search filter, separated by commas
Loogle will return lemmas which match all of them. The
search
π Real.sin, "two", tsum, _ * _, _ ^ _, |- _ < _ β _
would find all lemmas which mention the constants Real.sin
and tsum, have "two" as a substring of the
lemma name, include a product and a power somewhere in the type,
and have a hypothesis of the form _ < _ (if
there were any such lemmas). Metavariables (?a) are
assigned independently in each filter.
The #lucky button will directly send you to the
documentation of the first hit.
Source code
You can find the source code for this service at https://github.com/nomeata/loogle. The https://loogle.lean-lang.org/ service is provided by the Lean FRO. Please review the Lean FRO Terms of Use and Privacy Policy.
This is Loogle revision 9f11169 serving mathlib revision 4f617dc