Loogle!
Result
Found 49 declarations mentioning LinearMap.inl.
- LinearMap.inl π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : M ββ[R] M Γ Mβ - Submodule.ker_inl π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : (LinearMap.inl R M Mβ).ker = β₯ - Submodule.prod_comap_inl π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] (p : Submodule R M) (q : Submodule R Mβ) : Submodule.comap (LinearMap.inl R M Mβ) (p.prod q) = p - LinearMap.inl_injective π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : Function.Injective β(LinearMap.inl R M Mβ) - Submodule.map_inl π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] (p : Submodule R M) : Submodule.map (LinearMap.inl R M Mβ) p = p.prod β₯ - LinearMap.fst_comp_inl π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : LinearMap.fst R M Mβ ββ LinearMap.inl R M Mβ = LinearMap.id - LinearMap.coe_inl π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : β(LinearMap.inl R M Mβ) = fun x => (x, 0) - LinearMap.inl_apply π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] (x : M) : (LinearMap.inl R M Mβ) x = (x, 0) - LinearMap.ker_snd π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : (LinearMap.snd R M Mβ).ker = (LinearMap.inl R M Mβ).range - LinearMap.range_inl π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : (LinearMap.inl R M Mβ).range = (LinearMap.snd R M Mβ).ker - LinearMap.coprod_inl_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : (LinearMap.inl R M Mβ).coprod (LinearMap.inr R M Mβ) = LinearMap.id - LinearMap.inl_eq_prod π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : LinearMap.inl R M Mβ = LinearMap.id.prod 0 - LinearMap.coprod_inl π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} {Mβ : Type y} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] [Module R Mβ] (f : M ββ[R] Mβ) (g : Mβ ββ[R] Mβ) : f.coprod g ββ LinearMap.inl R M Mβ = f - LinearMap.snd_comp_inl π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : LinearMap.snd R M Mβ ββ LinearMap.inl R M Mβ = 0 - LinearMap.disjoint_inl_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : Disjoint (LinearMap.inl R M Mβ).range (LinearMap.inr R M Mβ).range - LinearMap.isCompl_range_inl_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : IsCompl (LinearMap.inl R M Mβ).range (LinearMap.inr R M Mβ).range - LinearMap.coprod_comp_inl_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} {Mβ : Type y} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] [Module R Mβ] (f : M Γ Mβ ββ[R] Mβ) : (f ββ LinearMap.inl R M Mβ).coprod (f ββ LinearMap.inr R M Mβ) = f - LinearMap.span_inl_union_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] {s : Set M} {t : Set Mβ} : Submodule.span R (β(LinearMap.inl R M Mβ) '' s βͺ β(LinearMap.inr R M Mβ) '' t) = (Submodule.span R s).prod (Submodule.span R t) - LinearMap.prod_eq_sup_map π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] (p : Submodule R M) (q : Submodule R Mβ) : p.prod q = Submodule.map (LinearMap.inl R M Mβ) p β Submodule.map (LinearMap.inr R M Mβ) q - LinearMap.sup_range_inl_inr π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] : (LinearMap.inl R M Mβ).range β (LinearMap.inr R M Mβ).range = β€ - LinearMap.inl_map_mul π Mathlib.LinearAlgebra.Prod
{R : Type u} [Semiring R] {A : Type u_4} [NonUnitalNonAssocSemiring A] [Module R A] {B : Type u_5} [NonUnitalNonAssocSemiring B] [Module R B] (aβ aβ : A) : (LinearMap.inl R A B) (aβ * aβ) = (LinearMap.inl R A B) aβ * (LinearMap.inl R A B) aβ - Submodule.prod_le_iff π Mathlib.LinearAlgebra.Prod
(R : Type u) (M : Type v) (Mβ : Type w) [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] {pβ : Submodule R M} {pβ : Submodule R Mβ} {q : Submodule R (M Γ Mβ)} : pβ.prod pβ β€ q β Submodule.map (LinearMap.inl R M Mβ) pβ β€ q β§ Submodule.map (LinearMap.inr R M Mβ) pβ β€ q - LinearMap.prod_ext π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} {Mβ : Type y} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] [Module R Mβ] {f g : M Γ Mβ ββ[R] Mβ} (hl : f ββ LinearMap.inl R M Mβ = g ββ LinearMap.inl R M Mβ) (hr : f ββ LinearMap.inr R M Mβ = g ββ LinearMap.inr R M Mβ) : f = g - LinearMap.prod_ext_iff π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} {Mβ : Type y} [Semiring R] [AddCommMonoid M] [AddCommMonoid Mβ] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] [Module R Mβ] {f g : M Γ Mβ ββ[R] Mβ} : f = g β f ββ LinearMap.inl R M Mβ = g ββ LinearMap.inl R M Mβ β§ f ββ LinearMap.inr R M Mβ = g ββ LinearMap.inr R M Mβ - LinearMap.coprodEquiv_symm_apply π Mathlib.LinearAlgebra.Prod
{R : Type u} {M : Type v} {Mβ : Type w} {Mβ : Type y} (S : Type u_3) [Semiring R] [Semiring S] [AddCommMonoid M] [AddCommMonoid Mβ] [AddCommMonoid Mβ] [Module R M] [Module R Mβ] [Module R Mβ] [Module S Mβ] [SMulCommClass R S Mβ] (f : M Γ Mβ ββ[R] Mβ) : (LinearMap.coprodEquiv S).symm f = (f ββ LinearMap.inl R M Mβ, f ββ LinearMap.inr R M Mβ) - linearIndependent_inl_union_inr' π Mathlib.LinearAlgebra.LinearIndependent.Lemmas
{ΞΉ : Type u'} {ΞΉ' : Type u_1} {R : Type u_2} {M : Type u_4} {M' : Type u_5} [Semiring R] [AddCommMonoid M] [AddCommMonoid M'] [Module R M] [Module R M'] {v : ΞΉ β M} {v' : ΞΉ' β M'} (hv : LinearIndependent R v) (hv' : LinearIndependent R v') : LinearIndependent R (Sum.elim (β(LinearMap.inl R M M') β v) (β(LinearMap.inr R M M') β v')) - LinearIndependent.inl_union_inr π Mathlib.LinearAlgebra.LinearIndependent.Lemmas
{R : Type u_2} {M : Type u_4} {M' : Type u_5} [Semiring R] [AddCommMonoid M] [AddCommMonoid M'] [Module R M] [Module R M'] {s : Set M} {t : Set M'} (hs : LinearIndependent R fun (x : βs) => βx) (ht : LinearIndependent R fun (x : βt) => βx) : LinearIndependent R fun (x : β(β(LinearMap.inl R M M') '' s βͺ β(LinearMap.inr R M M') '' t)) => βx - Function.Exact.inl_snd π Mathlib.Algebra.Exact.Basic
{R : Type u_1} {M : Type u_2} {N : Type u_4} [Semiring R] [AddCommMonoid M] [AddCommMonoid N] [Module R M] [Module R N] : Function.Exact β(LinearMap.inl R M N) β(LinearMap.snd R M N) - Function.Exact.splitInjectiveEquiv π Mathlib.Algebra.Exact.Basic
{R : Type u_8} {M : Type u_9} {N : Type u_10} {P : Type u_11} [Semiring R] [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] [Module R M] [Module R N] [Module R P] {f : M ββ[R] N} {g : N ββ[R] P} (h : Function.Exact βf βg) (hg : Function.Surjective βg) : { l // l ββ f = LinearMap.id } β { e // f = βe.symm ββ LinearMap.inl R M P β§ g = LinearMap.snd R M P ββ βe } - Function.Exact.splitSurjectiveEquiv π Mathlib.Algebra.Exact.Basic
{R : Type u_1} {M : Type u_2} {N : Type u_4} {P : Type u_6} [Semiring R] [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] [Module R M] [Module R N] [Module R P] {f : M ββ[R] N} {g : N ββ[R] P} (h : Function.Exact βf βg) (hf : Function.Injective βf) : { l // g ββ l = LinearMap.id } β { e // f = βe.symm ββ LinearMap.inl R M P β§ g = LinearMap.snd R M P ββ βe } - Function.Exact.split_tfae π Mathlib.Algebra.Exact.Basic
{R : Type u_8} {M : Type u_9} {N : Type u_10} {P : Type u_11} [Semiring R] [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] [Module R M] [Module R N] [Module R P] {f : M ββ[R] N} {g : N ββ[R] P} (h : Function.Exact βf βg) (hf : Function.Injective βf) (hg : Function.Surjective βg) : [β l, g ββ l = LinearMap.id, β l, l ββ f = LinearMap.id, β e, f = βe.symm ββ LinearMap.inl R M P β§ g = LinearMap.snd R M P ββ βe].TFAE - Function.Exact.split_tfae' π Mathlib.Algebra.Exact.Basic
{R : Type u_1} {M : Type u_2} {N : Type u_4} {P : Type u_6} [Semiring R] [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] [Module R M] [Module R N] [Module R P] {f : M ββ[R] N} {g : N ββ[R] P} (h : Function.Exact βf βg) : [Function.Injective βf β§ β l, g ββ l = LinearMap.id, Function.Surjective βg β§ β l, l ββ f = LinearMap.id, β e, f = βe.symm ββ LinearMap.inl R M P β§ g = LinearMap.snd R M P ββ βe].TFAE - Module.Basis.prod_apply π Mathlib.LinearAlgebra.Basis.Prod
{ΞΉ : Type u_1} {ΞΉ' : Type u_2} {R : Type u_3} {M : Type u_4} {M' : Type u_5} [Semiring R] [AddCommMonoid M] [Module R M] [AddCommMonoid M'] [Module R M'] (b : Module.Basis ΞΉ R M) (b' : Module.Basis ΞΉ' R M') (i : ΞΉ β ΞΉ') : (b.prod b') i = Sum.elim (β(LinearMap.inl R M M') β βb) (β(LinearMap.inr R M M') β βb') i - Algebra.adjoin_inl_union_inr_eq_prod π Mathlib.RingTheory.Adjoin.Basic
(R : Type uR) {A : Type uA} {B : Type uB} [CommSemiring R] [Semiring A] [Semiring B] [Algebra R A] [Algebra R B] (s : Set A) (t : Set B) : Algebra.adjoin R (β(LinearMap.inl R A B) '' (s βͺ {1}) βͺ β(LinearMap.inr R A B) '' (t βͺ {1})) = (Algebra.adjoin R s).prod (Algebra.adjoin R t) - Prod.counit_comp_inl π Mathlib.RingTheory.Coalgebra.Basic
(R : Type u) (A : Type v) (B : Type w) [CommSemiring R] [AddCommMonoid A] [AddCommMonoid B] [Module R A] [Module R B] [Coalgebra R A] [Coalgebra R B] : CoalgebraStruct.counit ββ LinearMap.inl R A B = CoalgebraStruct.counit - Prod.comul_comp_inl π Mathlib.RingTheory.Coalgebra.Basic
(R : Type u) (A : Type v) (B : Type w) [CommSemiring R] [AddCommMonoid A] [AddCommMonoid B] [Module R A] [Module R B] [Coalgebra R A] [Coalgebra R B] : CoalgebraStruct.comul ββ LinearMap.inl R A B = TensorProduct.map (LinearMap.inl R A B) (LinearMap.inl R A B) ββ CoalgebraStruct.comul - Prod.comul_apply π Mathlib.RingTheory.Coalgebra.Basic
(R : Type u) (A : Type v) (B : Type w) [CommSemiring R] [AddCommMonoid A] [AddCommMonoid B] [Module R A] [Module R B] [Coalgebra R A] [Coalgebra R B] (r : A Γ B) : CoalgebraStruct.comul r = (TensorProduct.map (LinearMap.inl R A B) (LinearMap.inl R A B)) (CoalgebraStruct.comul r.1) + (TensorProduct.map (LinearMap.inr R A B) (LinearMap.inr R A B)) (CoalgebraStruct.comul r.2) - Module.dualProdDualEquivDual_symm_apply π Mathlib.LinearAlgebra.Dual.Lemmas
(R : Type u_1) (M : Type u_2) [CommSemiring R] [AddCommMonoid M] [Module R M] (M' : Type u_3) [AddCommMonoid M'] [Module R M'] (f : M Γ M' ββ[R] R) : (Module.dualProdDualEquivDual R M M').symm f = (f ββ LinearMap.inl R M M', f ββ LinearMap.inr R M M') - dualTensorHom_prodMap_zero π Mathlib.LinearAlgebra.Contraction
{R : Type u_2} {M : Type u_3} {N : Type u_4} {P : Type u_5} {Q : Type u_6} [CommSemiring R] [AddCommMonoid M] [AddCommMonoid N] [AddCommMonoid P] [AddCommMonoid Q] [Module R M] [Module R N] [Module R P] [Module R Q] (f : Module.Dual R M) (p : P) : ((dualTensorHom R M P) (f ββ[R] p)).prodMap 0 = (dualTensorHom R (M Γ N) (P Γ Q)) ((f ββ LinearMap.fst R M N) ββ[R] (LinearMap.inl R P Q) p) - ContinuousLinearMap.coe_inl π Mathlib.Topology.Algebra.Module.ContinuousLinearMap.PiProd
{R : Type u_1} [Semiring R] {Mβ : Type u_2} [TopologicalSpace Mβ] [AddCommMonoid Mβ] [Module R Mβ] {Mβ : Type u_3} [TopologicalSpace Mβ] [AddCommMonoid Mβ] [Module R Mβ] : β(ContinuousLinearMap.inl R Mβ Mβ) = LinearMap.inl R Mβ Mβ - QuadraticForm.dualProdProdIsometry_toFun π Mathlib.LinearAlgebra.QuadraticForm.Dual
{R : Type u_1} {M : Type u_2} {N : Type u_3} [CommSemiring R] [AddCommMonoid M] [AddCommMonoid N] [Module R M] [Module R N] (x : Module.Dual R (M Γ N) Γ M Γ N) : QuadraticForm.dualProdProdIsometry x = ((x.1 ββ LinearMap.inl R M N, x.2.1), x.1 ββ LinearMap.inr R M N, x.2.2) - OrthonormalBasis.prod_apply π Mathlib.Analysis.InnerProductSpace.ProdL2
{π : Type u_1} {ΞΉβ : Type u_2} {ΞΉβ : Type u_3} {E : Type u_4} {F : Type u_5} [RCLike π] [NormedAddCommGroup E] [InnerProductSpace π E] [NormedAddCommGroup F] [InnerProductSpace π F] [Fintype ΞΉβ] [Fintype ΞΉβ] (v : OrthonormalBasis ΞΉβ π E) (w : OrthonormalBasis ΞΉβ π F) (i : ΞΉβ β ΞΉβ) : (v.prod w) i = Sum.elim (WithLp.toLp 2 β β(LinearMap.inl π E F) β βv) (WithLp.toLp 2 β β(LinearMap.inr π E F) β βw) i - subset_tangentConeAt_prod_left π Mathlib.Analysis.Calculus.TangentCone.Prod
{π : Type u_1} {E : Type u_2} {F : Type u_3} [Semiring π] [AddCommGroup E] [Module π E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousConstSMul π E] [AddCommGroup F] [Module π F] [TopologicalSpace F] [ContinuousAdd F] [ContinuousConstSMul π F] {x : E} {s : Set E} {y : F} {t : Set F} (ht : y β closure t) : β(LinearMap.inl π E F) '' tangentConeAt π s x β tangentConeAt π (s ΓΛ’ t) (x, y) - Algebra.Generators.cotangentCompLocalizationAwayEquiv_symm_comp_inl π Mathlib.RingTheory.Extension.Cotangent.LocalizationAway
{R : Type u_1} {S : Type u_2} {T : Type u_3} {ΞΉ : Type u_4} [CommRing R] [CommRing S] [Algebra R S] [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T] (g : S) [IsLocalization.Away g T] (P : Algebra.Generators R S ΞΉ) {x : ((Algebra.Generators.localizationAway T g).comp P).toExtension.Cotangent} (hx : (Algebra.Extension.Cotangent.map ((Algebra.Generators.localizationAway T g).ofComp P).toExtensionHom) x = Algebra.Generators.cMulXSubOneCotangent T g) : β(Algebra.Generators.cotangentCompLocalizationAwayEquiv g P hx).symm ββ LinearMap.inl T (TensorProduct S T P.toExtension.Cotangent) (Algebra.Generators.localizationAway T g).toExtension.Cotangent = LinearMap.liftBaseChange T (Algebra.Extension.Cotangent.map ((Algebra.Generators.localizationAway T g).toComp P).toExtensionHom) - Polynomial.degreeLT.addLinearEquiv_symm_apply_inl π Mathlib.RingTheory.Polynomial.DegreeLT
{R : Type u_1} [Semiring R] {m n : β} (P : β₯(Polynomial.degreeLT R m)) : β((Polynomial.degreeLT.addLinearEquiv R m n).symm ((LinearMap.inl R β₯(Polynomial.degreeLT R m) β₯(Polynomial.degreeLT R n)) P)) = βP - Polynomial.degreeLT.addLinearEquiv_symm_apply_inl_basis π Mathlib.RingTheory.Polynomial.DegreeLT
{R : Type u_1} [Semiring R] {m n : β} (i : Fin m) : (Polynomial.degreeLT.addLinearEquiv R m n).symm ((LinearMap.inl R β₯(Polynomial.degreeLT R m) β₯(Polynomial.degreeLT R n)) ((Polynomial.degreeLT.basis R m) i)) = (Polynomial.degreeLT.basis R (m + n)) (Fin.castAdd n i) - ExteriorAlgebra.prodEquivTensor_symm_tmul π Mathlib.LinearAlgebra.ExteriorAlgebra.Product
(R : Type u) [CommRing R] (M : Type u_1) (N : Type u_2) [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] (a : ExteriorAlgebra R M) (b : ExteriorAlgebra R N) : (ExteriorAlgebra.prodEquivTensor R M N).symm (a α΅ββ[R] b) = (ExteriorAlgebra.map (LinearMap.inl R M N)) a * (ExteriorAlgebra.map (LinearMap.inr R M N)) b - ExteriorAlgebra.prodEquivTensor_symm_apply_tmul_ΞΉMulti π Mathlib.LinearAlgebra.ExteriorAlgebra.Product
(R : Type u) [CommRing R] (M : Type u_1) (N : Type u_2) [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] (i j : β) (m : Fin i β M) (n : Fin j β N) : (ExteriorAlgebra.prodEquivTensor R M N).symm ((ExteriorAlgebra.ΞΉMulti R i) m α΅ββ[R] (ExteriorAlgebra.ΞΉMulti R j) n) = (ExteriorAlgebra.ΞΉMulti R (i + j)) (Fin.append (β(LinearMap.inl R M N) β m) (β(LinearMap.inr R M N) β n)) - ExteriorAlgebra.map_inl_inr_anticomm π Mathlib.LinearAlgebra.ExteriorAlgebra.Product
(R : Type u) [CommRing R] {M : Type u_1} {N : Type u_2} [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] (i j : β) (a : β₯(β[R]^i M)) (b : β₯(β[R]^j N)) : (ExteriorAlgebra.map (LinearMap.inl R M N)) βa * (ExteriorAlgebra.map (LinearMap.inr R M N)) βb = (-1) ^ (j * i) β’ ((ExteriorAlgebra.map (LinearMap.inr R M N)) βb * (ExteriorAlgebra.map (LinearMap.inl R M N)) βa)
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 ce5dd8c