Loogle!
Result
Found 10276 declarations whose name contains "sin". Of these, only the first 200 are shown.
- Lean.Syntax.missing π Init.Prelude
: Lean.Syntax - Lean.Syntax.isMissing π Init.Prelude
: Lean.Syntax β Bool - Lean.Parser.Tactic.simpaUsingBang π Init.Tactics
: Lean.ParserDescr - Lean.Parser.Tactic.simpaUsingBangArgsRest π Init.Tactics
: Lean.ParserDescr - Lean.Parser.Tactic.SolveByElim.using_ π Init.Tactics
: Lean.ParserDescr - Subsingleton π Init.Core
(Ξ± : Sort u) : Prop - instSubsingletonEmpty π Init.Core
: Subsingleton Empty - instSubsingletonPEmpty π Init.Core
: Subsingleton PEmpty.{u_1} - instSubsingletonPUnit π Init.Core
: Subsingleton PUnit.{u_1} - instSubsingleton π Init.Core
(p : Prop) : Subsingleton p - Singleton π Init.Core
(Ξ± : outParam (Type u)) (Ξ² : Type v) : Type (max u v) - instSubsingletonDecidable π Init.Core
(p : Prop) : Subsingleton (Decidable p) - instSubsingletonSquash π Init.Core
{Ξ± : Sort u_1} : Subsingleton (Squash Ξ±) - toBoolUsing π Init.Core
{p : Prop} (d : Decidable p) : Bool - PUnit.subsingleton π Init.Core
(a b : PUnit.{u_1}) : a = b - Singleton.mk π Init.Core
{Ξ± : outParam (Type u)} {Ξ² : Type v} (singleton : Ξ± β Ξ²) : Singleton Ξ± Ξ² - Singleton.singleton π Init.Core
{Ξ± : outParam (Type u)} {Ξ² : Type v} [self : Singleton Ξ± Ξ²] : Ξ± β Ξ² - Subsingleton.allEq π Init.Core
{Ξ± : Sort u} [self : Subsingleton Ξ±] (a b : Ξ±) : a = b - Subsingleton.elim π Init.Core
{Ξ± : Sort u} [h : Subsingleton Ξ±] (a b : Ξ±) : a = b - Subsingleton.intro π Init.Core
{Ξ± : Sort u} (allEq : β (a b : Ξ±), a = b) : Subsingleton Ξ± - instSubsingletonProd π Init.Core
{Ξ± : Type u_1} {Ξ² : Type u_2} [Subsingleton Ξ±] [Subsingleton Ξ²] : Subsingleton (Ξ± Γ Ξ²) - of_toBoolUsing_eq_true π Init.Core
{p : Prop} {d : Decidable p} (h : toBoolUsing d = true) : p - toBoolUsing_eq_true π Init.Core
{p : Prop} (d : Decidable p) (h : p) : toBoolUsing d = true - LawfulSingleton π Init.Core
(Ξ± : Type u) (Ξ² : Type v) [EmptyCollection Ξ²] [Insert Ξ± Ξ²] [Singleton Ξ± Ξ²] : Prop - eq_iff_true_of_subsingleton π Init.Core
{Ξ± : Sort u_1} [Subsingleton Ξ±] (x y : Ξ±) : x = y β True - of_toBoolUsing_eq_false π Init.Core
{p : Prop} {d : Decidable p} (h : toBoolUsing d = false) : Β¬p - Pi.instSubsingleton π Init.Core
{Ξ± : Sort u} {Ξ² : Ξ± β Sort v} [β (a : Ξ±), Subsingleton (Ξ² a)] : Subsingleton ((a : Ξ±) β Ξ² a) - Relation.TransGen.single π Init.Core
{Ξ± : Sort u} {r : Ξ± β Ξ± β Prop} {a b : Ξ±} : r a b β Relation.TransGen r a b - Subsingleton.helim π Init.Core
{Ξ± Ξ² : Sort u} [hβ : Subsingleton Ξ±] (hβ : Ξ± = Ξ²) (a : Ξ±) (b : Ξ²) : a β b - Quotient.recOnSubsingleton π Init.Core
{Ξ± : Sort u} {s : Setoid Ξ±} {motive : Quotient s β Sort v} [h : β (a : Ξ±), Subsingleton (motive β¦aβ§)] (q : Quotient s) (f : (a : Ξ±) β motive β¦aβ§) : motive q - recSubsingleton π Init.Core
{p : Prop} [h : Decidable p] {hβ : p β Sort u} {hβ : Β¬p β Sort u} [hβ : β (h : p), Subsingleton (hβ h)] [hβ : β (h : Β¬p), Subsingleton (hβ h)] : Subsingleton (Decidable.casesOn h hβ hβ) - Quot.recOnSubsingleton π Init.Core
{Ξ± : Sort u} {r : Ξ± β Ξ± β Prop} {motive : Quot r β Sort v} [h : β (a : Ξ±), Subsingleton (motive (Quot.mk r a))] (q : Quot r) (f : (a : Ξ±) β motive (Quot.mk r a)) : motive q - LawfulSingleton.insert_empty_eq π Init.Core
{Ξ± : Type u} {Ξ² : Type v} {instβ : EmptyCollection Ξ²} {instβΒΉ : Insert Ξ± Ξ²} {instβΒ² : Singleton Ξ± Ξ²} [self : LawfulSingleton Ξ± Ξ²] (x : Ξ±) : insert x β = {x} - LawfulSingleton.mk π Init.Core
{Ξ± : Type u} {Ξ² : Type v} [EmptyCollection Ξ²] [Insert Ξ± Ξ²] [Singleton Ξ± Ξ²] (insert_empty_eq : β (x : Ξ±), insert x β = {x}) : LawfulSingleton Ξ± Ξ² - Quotient.recOnSubsingletonβ π Init.Core
{Ξ± : Sort uA} {Ξ² : Sort uB} {sβ : Setoid Ξ±} {sβ : Setoid Ξ²} {motive : Quotient sβ β Quotient sβ β Sort uC} [s : β (a : Ξ±) (b : Ξ²), Subsingleton (motive β¦aβ§ β¦bβ§)] (qβ : Quotient sβ) (qβ : Quotient sβ) (g : (a : Ξ±) β (b : Ξ²) β motive β¦aβ§ β¦bβ§) : motive qβ qβ - List.singleton π Init.Data.List.Basic
{Ξ± : Type u} (a : Ξ±) : List Ξ± - List.IsInfix π Init.Data.List.Basic
{Ξ± : Type u} (lβ lβ : List Ξ±) : Prop - List.isInfixOf_internal π Init.Data.List.Basic
{Ξ± : Type u} [BEq Ξ±] (lβ lβ : List Ξ±) : Bool - List.dropLast_singleton π Init.Data.List.Basic
{Ξ±β : Type u_1} {x : Ξ±β} : [x].dropLast = [] - List.length_singleton π Init.Data.List.Basic
{Ξ± : Type u} {a : Ξ±} : [a].length = 1 - List.intersperse_single π Init.Data.List.Basic
{Ξ± : Type u} {x sep : Ξ±} : List.intersperse sep [x] = [x] - List.intersperse_singleton π Init.Data.List.Basic
{Ξ± : Type u} {x sep : Ξ±} : List.intersperse sep [x] = [x] - Lean.Meta.Simp.Config.singlePass π Init.MetaTypes
(self : Lean.Meta.Simp.Config) : Bool - tacticDecreasing_tactic π Init.WFTactics
: Lean.ParserDescr - tacticDecreasing_trivial π Init.WFTactics
: Lean.ParserDescr - tacticDecreasing_trivial_pre_omega π Init.WFTactics
: Lean.ParserDescr - tacticDecreasing_with_ π Init.WFTactics
: Lean.ParserDescr - String.singleton π Init.Data.String.Bootstrap
(c : Char) : String - instSubsingletonStateM π Init.Control.State
{Ο Ξ± : Type u_1} [Subsingleton Ο] [Subsingleton Ξ±] : Subsingleton (StateM Ο Ξ±) - Array.singleton π Init.Data.Array.Basic
{Ξ± : Type u} (v : Ξ±) : Array Ξ± - Lean.Name.isInaccessibleUserName π Init.Meta.Defs
: Lean.Name β Bool - Lean.Syntax.isInterpolatedStrLit? π Init.Meta.Defs
(stx : Lean.Syntax) : Option String - Lean.Syntax.SepArray.ofElemsUsingRef π Init.Meta.Defs
{m : Type β Type} [Monad m] [Lean.MonadRef m] {sep : String} (elems : Array Lean.Syntax) : m (Lean.Syntax.SepArray sep) - Lean.Parser.Tactic.Conv.occsIndexed π Init.Conv
: Lean.ParserDescr - Lean.singletonUnexpander π Init.NotationExtra
: Lean.PrettyPrinter.Unexpander - Classical.epsilon_singleton π Init.Classical
{Ξ± : Sort u} (x : Ξ±) : (Classical.epsilon fun y => y = x) = x - Fin.subsingleton_one π Init.Data.Fin.Lemmas
: Subsingleton (Fin 1) - Fin.subsingleton_zero π Init.Data.Fin.Lemmas
: Subsingleton (Fin 0) - Fin.subsingleton_iff_le_one π Init.Data.Fin.Lemmas
{n : β} : Subsingleton (Fin n) β n β€ 1 - List.mem_singleton_self π Init.Data.List.Lemmas
{Ξ± : Type u_1} (a : Ξ±) : a β [a] - List.getLast?_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : [a].getLast? = some a - List.head?_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : [a].head? = some a - List.head_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : [a].head β― = a - List.flatten_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {l : List Ξ±} : [l].flatten = l - List.flatMap_singleton' π Init.Data.List.Lemmas
{Ξ± : Type u_1} (l : List Ξ±) : List.flatMap (fun x => [x]) l = l - List.reverse_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : [a].reverse = [a] - List.eq_of_mem_singleton π Init.Data.List.Lemmas
{Ξ±β : Type u_1} {b a : Ξ±β} : a β [b] β a = b - List.intercalate_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {ys xs : List Ξ±} : ys.intercalate [xs] = xs - List.flatMap_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} (f : Ξ± β List Ξ²) (x : Ξ±) : List.flatMap f [x] = f x - List.mem_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} : a β [b] β a = b - List.flatten_replicate_singleton π Init.Data.List.Lemmas
{n : β} {Ξ±β : Type u_1} {a : Ξ±β} : (List.replicate n [a]).flatten = List.replicate n a - List.singleton_inj π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} : [a] = [b] β a = b - List.forall_mem_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {p : Ξ± β Prop} {a : Ξ±} : (β x β [a], p x) β p a - List.getLast_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} (h : [a] β []) : [a].getLast h = a - List.map_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {f : Ξ± β Ξ²} {a : Ξ±} : List.map f [a] = [f a] - List.singleton_append π Init.Data.List.Lemmas
{Ξ±β : Type u_1} {x : Ξ±β} {l : List Ξ±β} : [x] ++ l = x :: l - List.prod_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} [Mul Ξ±] [One Ξ±] [Std.LawfulRightIdentity (fun x1 x2 => x1 * x2) 1] {x : Ξ±} : [x].prod = x - List.sum_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} [Add Ξ±] [Zero Ξ±] [Std.LawfulRightIdentity (fun x1 x2 => x1 + x2) 0] {x : Ξ±} : [x].sum = x - List.getElem_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {i : β} (h : i < 1) : [a][i] = a - List.map_eq_singleton_iff π Init.Data.List.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {f : Ξ± β Ξ²} {l : List Ξ±} {b : Ξ²} : List.map f l = [b] β β a, l = [a] β§ f a = b - List.replace_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} [BEq Ξ±] {a b c : Ξ±} : [a].replace b c = [if (b == a) = true then c else a] - List.getElem?_singleton π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {i : β} : [a][i]? = if i = 0 then some a else none - List.append_singleton_inj π Init.Data.List.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} {as bs : List Ξ±} : as ++ [a] = bs ++ [b] β as = bs β§ a = b - List.append_eq_singleton_iff π Init.Data.List.Lemmas
{Ξ±β : Type u_1} {a b : List Ξ±β} {x : Ξ±β} : a ++ b = [x] β a = [] β§ b = [x] β¨ a = [x] β§ b = [] - List.singleton_eq_append_iff π Init.Data.List.Lemmas
{Ξ±β : Type u_1} {x : Ξ±β} {a b : List Ξ±β} : [x] = a ++ b β a = [] β§ b = [x] β¨ a = [x] β§ b = [] - List.flatten_eq_singleton_iff π Init.Data.List.Lemmas
{Ξ± : Type u_1} {xs : List (List Ξ±)} {y : Ξ±} : xs.flatten = [y] β β as bs, xs = as ++ [y] :: bs β§ (β l β as, l = []) β§ β l β bs, l = [] - List.singleton_eq_flatten_iff π Init.Data.List.Lemmas
{Ξ± : Type u_1} {xs : List (List Ξ±)} {y : Ξ±} : [y] = xs.flatten β β as bs, xs = as ++ [y] :: bs β§ (β l β as, l = []) β§ β l β bs, l = [] - List.instDecidableIsInfixOfDecidableEq π Init.Data.List.Sublist
{Ξ± : Type u_1} [DecidableEq Ξ±] (lβ lβ : List Ξ±) : Decidable (lβ <:+: lβ) - List.IsInfix.sublist π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} : lβ <:+: lβ β lβ.Sublist lβ - List.IsPrefix.isInfix π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} : lβ <+: lβ β lβ <:+: lβ - List.IsSuffix.isInfix π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} : lβ <:+ lβ β lβ <:+: lβ - List.IsInfix.subset π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} (hl : lβ <:+: lβ) : lβ β lβ - List.IsInfix.reverse π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} : lβ <:+: lβ β lβ.reverse <:+: lβ.reverse - List.IsInfix.length_le π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} (h : lβ <:+: lβ) : lβ.length β€ lβ.length - List.IsInfix.trans π Init.Data.List.Sublist
{Ξ± : Type u_1} {lβ lβ lβ : List Ξ±} : lβ <:+: lβ β lβ <:+: lβ β lβ <:+: lβ - List.singleton_prefix_cons_iff π Init.Data.List.Sublist
{Ξ± : Type u_1} {a b : Ξ±} {l : List Ξ±} : [a] <+: b :: l β a = b - List.singleton_sublist π Init.Data.List.Sublist
{Ξ± : Type u_1} {a : Ξ±} {l : List Ξ±} : [a].Sublist l β a β l - List.IsInfix.filter π Init.Data.List.Sublist
{Ξ± : Type u_1} (p : Ξ± β Bool) β¦lβ lβ : List Ξ±β¦ (h : lβ <:+: lβ) : List.filter p lβ <:+: List.filter p lβ - List.IsInfix.ne_nil π Init.Data.List.Sublist
{Ξ± : Type u_1} {xs ys : List Ξ±} (h : xs <:+: ys) (hx : xs β []) : ys β [] - List.singleton_prefix_iff_head?_eq_some π Init.Data.List.Sublist
{Ξ± : Type u_1} {a : Ξ±} {l : List Ξ±} : [a] <+: l β l.head? = some a - List.singleton_suffix_iff_getLast?_eq_some π Init.Data.List.Sublist
{Ξ± : Type u_1} {a : Ξ±} {l : List Ξ±} : [a] <:+ l β l.getLast? = some a - List.IsInfix.eq_of_length π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} (h : lβ <:+: lβ) : lβ.length = lβ.length β lβ = lβ - List.isInfixOf_internal_iff_isInfix π Init.Data.List.Sublist
{Ξ± : Type u_1} [BEq Ξ±] [LawfulBEq Ξ±] {lβ lβ : List Ξ±} : lβ.isInfixOf_internal lβ = true β lβ <:+: lβ - List.IsInfix.eq_of_length_le π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ lβ : List Ξ±β} (h : lβ <:+: lβ) : lβ.length β€ lβ.length β lβ = lβ - List.IsInfix.map π Init.Data.List.Sublist
{Ξ± : Type u_1} {Ξ² : Type u_2} (f : Ξ± β Ξ²) β¦lβ lβ : List Ξ±β¦ (h : lβ <:+: lβ) : List.map f lβ <:+: List.map f lβ - List.IsInfix.filterMap π Init.Data.List.Sublist
{Ξ± : Type u_1} {Ξ² : Type u_2} (f : Ξ± β Option Ξ²) β¦lβ lβ : List Ξ±β¦ (h : lβ <:+: lβ) : List.filterMap f lβ <:+: List.filterMap f lβ - List.IsInfix.mem π Init.Data.List.Sublist
{Ξ±β : Type u_1} {lβ : List Ξ±β} {a : Ξ±β} {lβ : List Ξ±β} (hx : a β lβ) (hl : lβ <:+: lβ) : a β lβ - List.singleton_suffix_append_singleton_iff π Init.Data.List.Sublist
{Ξ± : Type u_1} {a b : Ξ±} {l : List Ξ±} : [a] <:+ l ++ [b] β a = b - List.singleton_suffix_cons_append_singleton_iff π Init.Data.List.Sublist
{Ξ± : Type u_1} {a b c : Ξ±} {l : List Ξ±} : [a] <:+ b :: (l ++ [c]) β a = c - List.IsInfix.countP_le π Init.Data.List.Count
{Ξ± : Type u_1} {p : Ξ± β Bool} {lβ lβ : List Ξ±} (s : lβ <:+: lβ) : List.countP p lβ β€ List.countP p lβ - List.count_singleton_self π Init.Data.List.Count
{Ξ± : Type u_1} [BEq Ξ±] [LawfulBEq Ξ±] {a : Ξ±} : List.count a [a] = 1 - List.IsInfix.count_le π Init.Data.List.Count
{Ξ± : Type u_1} [BEq Ξ±] {lβ lβ : List Ξ±} (a : Ξ±) (h : lβ <:+: lβ) : List.count a lβ β€ List.count a lβ - List.countP_singleton π Init.Data.List.Count
{Ξ± : Type u_1} {p : Ξ± β Bool} {a : Ξ±} : List.countP p [a] = if p a = true then 1 else 0 - List.count_singleton π Init.Data.List.Count
{Ξ± : Type u_1} [BEq Ξ±] {a b : Ξ±} : List.count a [b] = if (b == a) = true then 1 else 0 - BitVec.instSubsingletonOfNatNat π Init.Data.BitVec.Basic
: Subsingleton (BitVec 0) - List.findSome?_singleton π Init.Data.List.Impl
{Ξ± : Type u_1} {Ξ±β : Type u_2} {f : Ξ± β Option Ξ±β} {a : Ξ±} : List.findSome? f [a] = f a - List.find?_singleton π Init.Data.List.Impl
{Ξ± : Type u_1} {p : Ξ± β Bool} {a : Ξ±} : List.find? p [a] = if p a = true then some a else none - List.IsInfix.find?_eq_none π Init.Data.List.Find
{Ξ± : Type u_1} {lβ lβ : List Ξ±} {p : Ξ± β Bool} (h : lβ <:+: lβ) : List.find? p lβ = none β List.find? p lβ = none - List.IsInfix.findIdx?_eq_none π Init.Data.List.Find
{Ξ± : Type u_1} {lβ lβ : List Ξ±} {p : Ξ± β Bool} (h : lβ <:+: lβ) : List.findIdx? p lβ = none β List.findIdx? p lβ = none - List.IsInfix.findSome?_eq_none π Init.Data.List.Find
{Ξ± : Type u_1} {Ξ² : Type u_2} {lβ lβ : List Ξ±} {f : Ξ± β Option Ξ²} (h : lβ <:+: lβ) : List.findSome? f lβ = none β List.findSome? f lβ = none - List.findIdx_singleton π Init.Data.List.Find
{Ξ± : Type u_1} {a : Ξ±} {p : Ξ± β Bool} : List.findIdx p [a] = if p a = true then 0 else 1 - List.findIdx?_singleton π Init.Data.List.Find
{Ξ± : Type u_1} {a : Ξ±} {p : Ξ± β Bool} : List.findIdx? p [a] = if p a = true then some 0 else none - List.IsInfix.lookup_eq_none π Init.Data.List.Find
{Ξ± : Type u_2} [BEq Ξ±] {Ξ² : Type u_1} {k : Ξ±} {lβ lβ : List (Ξ± Γ Ξ²)} (h : lβ <:+: lβ) : List.lookup k lβ = none β List.lookup k lβ = none - List.idxOf?_singleton π Init.Data.List.Find
{Ξ± : Type u_1} [BEq Ξ±] {a b : Ξ±} : List.idxOf? b [a] = if (a == b) = true then some 0 else none - List.lookup_singleton π Init.Data.List.Find
{Ξ± : Type u_1} [BEq Ξ±] {c a b : Ξ±} : List.lookup c [(a, b)] = if (c == a) = true then some b else none - List.findFinIdx?_singleton π Init.Data.List.Find
{Ξ± : Type u_1} {a : Ξ±} {p : Ξ± β Bool} : List.findFinIdx? p [a] = if p a = true then some β¨0, β―β© else none - Char.toString_eq_singleton π Init.Data.Char.Lemmas
{c : Char} : c.toString = String.singleton c - List.pairwise_singleton π Init.Data.List.Pairwise
{Ξ± : Type u_1} (R : Ξ± β Ξ± β Prop) (a : Ξ±) : List.Pairwise R [a] - List.toArray_singleton π Init.Data.List.ToArray
{Ξ± : Type u_1} (a : Ξ±) : (List.singleton a).toArray = Array.singleton a - List.max?_singleton π Init.Data.List.MinMax
{Ξ± : Type u_1} [Max Ξ±] {x : Ξ±} : [x].max? = some x - List.min?_singleton π Init.Data.List.MinMax
{Ξ± : Type u_1} [Min Ξ±] {x : Ξ±} : [x].min? = some x - List.max_singleton π Init.Data.List.MinMax
{Ξ± : Type u_1} [Max Ξ±] {x : Ξ±} : [x].max β― = x - List.min_singleton π Init.Data.List.MinMax
{Ξ± : Type u_1} [Min Ξ±] {x : Ξ±} : [x].min β― = x - Array.singleton_def π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {v : Ξ±} : Array.singleton v = #[v] - Array.mem_singleton_self π Init.Data.Array.Lemmas
{Ξ± : Type u_1} (a : Ξ±) : a β #[a] - Array.back_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : #[a].back β― = a - Array.size_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {x : Ξ±} : #[x].size = 1 - Array.flatMap_singleton' π Init.Data.Array.Lemmas
{Ξ± : Type u_1} (xs : Array Ξ±) : Array.flatMap (fun x => #[x]) xs = xs - Array.flatten_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {xs : Array Ξ±} : #[xs].flatten = xs - Array.singleton_eq_toArray_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} : #[a] = #[a] - Array.eq_of_mem_singleton π Init.Data.Array.Lemmas
{Ξ±β : Type u_1} {b a : Ξ±β} (h : a β #[b]) : a = b - Array.flatMap_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {f : Ξ± β Array Ξ²} {x : Ξ±} : Array.flatMap f #[x] = f x - Array.mem_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a b : Ξ±} : a β #[b] β a = b - Array.flatten_replicate_singleton π Init.Data.Array.Lemmas
{n : β} {Ξ±β : Type u_1} {a : Ξ±β} : (Array.replicate n #[a]).flatten = Array.replicate n a - Array.forall_mem_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {p : Ξ± β Prop} {a : Ξ±} : (β x β #[a], p x) β p a - Array.singleton_inj π Init.Data.Array.Lemmas
{Ξ±β : Type u_1} {a b : Ξ±β} : #[a] = #[b] β a = b - Array.map_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {f : Ξ± β Ξ²} {a : Ξ±} : Array.map f #[a] = #[f a] - Array.append_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {as : Array Ξ±} : as ++ #[a] = as.push a - Array.push_eq_append_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {as : Array Ξ±} {x : Ξ±} : as.push x = as ++ #[x] - Array.prod_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} [Mul Ξ±] [One Ξ±] [Std.LawfulRightIdentity (fun x1 x2 => x1 * x2) 1] {x : Ξ±} : #[x].prod = x - Array.sum_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} [Add Ξ±] [Zero Ξ±] [Std.LawfulRightIdentity (fun x1 x2 => x1 + x2) 0] {x : Ξ±} : #[x].sum = x - Array.getElem_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {i : β} (h : i < 1) : #[a][i] = a - Array.map_eq_singleton_iff π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {Ξ² : Type u_2} {f : Ξ± β Ξ²} {xs : Array Ξ±} {b : Ξ²} : Array.map f xs = #[b] β β a, xs = #[a] β§ f a = b - Array.replace_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} [BEq Ξ±] {a b c : Ξ±} : #[a].replace b c = #[if (a == b) = true then c else a] - Array.getElem?_singleton π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {i : β} : #[a][i]? = if i = 0 then some a else none - Array.append_singleton_assoc π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {a : Ξ±} {xs ys : Array Ξ±} : xs ++ (#[a] ++ ys) = xs.push a ++ ys - Array.append_eq_singleton_iff π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {xs ys : Array Ξ±} {x : Ξ±} : xs ++ ys = #[x] β xs = #[] β§ ys = #[x] β¨ xs = #[x] β§ ys = #[] - Array.singleton_eq_append_iff π Init.Data.Array.Lemmas
{Ξ± : Type u_1} {xs ys : Array Ξ±} {x : Ξ±} : #[x] = xs ++ ys β xs = #[] β§ ys = #[x] β¨ xs = #[x] β§ ys = #[] - ByteArray.append_toByteArray_singleton π Init.Data.ByteArray.Lemmas
{as : ByteArray} {a : UInt8} : as ++ [a].toByteArray = as.push a - ByteArray.utf8DecodeChar?.isInvalidContinuationByte π Init.Data.String.Decode
(b : UInt8) : Bool - List.utf8DecodeChar?_utf8Encode_singleton π Init.Data.String.Decode
{c : Char} : [c].utf8Encode.utf8DecodeChar? 0 = some c - String.utf8EncodeChar_eq_singleton π Init.Data.String.Decode
{c : Char} : c.utf8Size = 1 β String.utf8EncodeChar c = [c.val.toUInt8] - List.utf8DecodeChar?_utf8Encode_singleton_append π Init.Data.String.Decode
{b : ByteArray} {c : Char} : ([c].utf8Encode ++ b).utf8DecodeChar? 0 = some c - String.singleton_eq_asString π Init.Data.String.Defs
{c : Char} : String.singleton c = String.ofList [c] - String.singleton_eq_ofList π Init.Data.String.Defs
{c : Char} : String.singleton c = String.ofList [c] - List.utf8Encode_singleton π Init.Data.String.Defs
{c : Char} : [c].utf8Encode = (String.utf8EncodeChar c).toByteArray - String.toByteArray_singleton π Init.Data.String.Defs
{c : Char} : (String.singleton c).toByteArray = [c].utf8Encode - String.append_singleton π Init.Data.String.Defs
{s : String} {c : Char} : s ++ String.singleton c = s.push c - String.utf8ByteSize_singleton π Init.Data.String.Basic
{c : Char} : (String.singleton c).utf8ByteSize = c.utf8Size - String.singleton_eq π Init.Data.String.Basic
{c : Char} : String.singleton c = String.ofList [c] - String.data_singleton π Init.Data.String.Basic
(c : Char) : (String.singleton c).toList = [c] - String.toList_singleton π Init.Data.String.Basic
(c : Char) : (String.singleton c).toList = [c] - ByteArray.isValidUTF8_utf8Encode_singleton_append_iff π Init.Data.String.Basic
{b : ByteArray} {c : Char} : ([c].utf8Encode ++ b).IsValidUTF8 β b.IsValidUTF8 - String.Pos.Raw.isValid_singleton π Init.Data.String.Basic
{c : Char} {p : String.Pos.Raw} : String.Pos.Raw.IsValid (String.singleton c) p β p = 0 β¨ p.byteIdx = c.utf8Size - String.eq_singleton_append π Init.Data.String.Basic
{s : String} (h : s.startPos β s.endPos) : β t, s = String.singleton (s.startPos.get h) ++ t - List.isUTF8FirstByte_getElem_utf8Encode_singleton π Init.Data.String.Basic
{c : Char} {i : β} {hi : i < [c].utf8Encode.size} : [c].utf8Encode[i].IsUTF8FirstByte β i = 0 - ByteArray.utf8Decode?_utf8Encode_singleton_append π Init.Data.String.Basic
{l : ByteArray} {c : Char} : ([c].utf8Encode ++ l).utf8Decode? = Option.map (fun x => #[c] ++ x) l.utf8Decode? - String.length_singleton π Init.Data.String.Length
{c : Char} : (String.singleton c).length = 1 - Float.asin π Init.Data.Float
: Float β Float - Float.asinh π Init.Data.Float
: Float β Float - Float.isInf π Init.Data.Float
: Float β Bool - Float.sin π Init.Data.Float
: Float β Float - Float.sinh π Init.Data.Float
: Float β Float - Float32.asin π Init.Data.Float32
: Float32 β Float32 - Float32.asinh π Init.Data.Float32
: Float32 β Float32 - Float32.isInf π Init.Data.Float32
: Float32 β Bool - Float32.sin π Init.Data.Float32
: Float32 β Float32 - Float32.sinh π Init.Data.Float32
: Float32 β Float32 - Rat.isInt π Init.Data.Rat.Basic
(a : β) : Bool - Lean.Grind.IntInterval.sint π Init.Grind.ToInt
(n : β) : Lean.Grind.IntInterval - Lean.Grind.instNoNatZeroDivisorsInt π Init.GrindInstances.Ring.Int
: Lean.Grind.NoNatZeroDivisors β€ - Lean.Grind.CommRing.Mon.denoteAsIntModule π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (m : Lean.Grind.CommRing.Mon) : Ξ± - Lean.Grind.CommRing.Poly.denoteAsIntModule π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (p : Lean.Grind.CommRing.Poly) : Ξ± - Lean.Grind.CommRing.Mon.denoteAsIntModule.go π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (m : Lean.Grind.CommRing.Mon) (acc : Ξ±) : Ξ± - Lean.Grind.CommRing.Poly.denoteAsIntModule_eq_denote π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (p : Lean.Grind.CommRing.Poly) : Lean.Grind.CommRing.Poly.denoteAsIntModule ctx p = Lean.Grind.CommRing.Poly.denote ctx p - Lean.Grind.CommRing.Mon.denoteAsIntModule_eq_denote π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (m : Lean.Grind.CommRing.Mon) : Lean.Grind.CommRing.Mon.denoteAsIntModule ctx m = Lean.Grind.CommRing.Mon.denote ctx m - Lean.Grind.CommRing.Mon.denoteAsIntModule_go_eq_denote π Init.Grind.Ring.CommSolver
{Ξ± : Type u_1} [Lean.Grind.CommRing Ξ±] (ctx : Lean.Grind.CommRing.Context Ξ±) (m : Lean.Grind.CommRing.Mon) (acc : Ξ±) : Lean.Grind.CommRing.Mon.denoteAsIntModule.go ctx m acc = acc * Lean.Grind.CommRing.Mon.denote ctx m - Lean.Grind.CommRing.denoteSInt π Init.Grind.Ring.CommSemiringAdapter
{Ξ± : Type u_1} [Lean.Grind.Semiring Ξ±] (k : β€) : Ξ± - Lean.Grind.CommRing.denoteSInt_eq π Init.Grind.Ring.CommSemiringAdapter
{Ξ± : Type u_1} [Lean.Grind.Semiring Ξ±] (k : β€) : Lean.Grind.CommRing.denoteSInt k = βk.toNat - Lean.Grind.instToIntISizeSintNumBits π Init.GrindInstances.ToInt
: Lean.Grind.ToInt ISize (Lean.Grind.IntInterval.sint System.Platform.numBits)
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 e668239 serving mathlib revision 008653f