Context stringlengths 57 6.04k | file_name stringlengths 21 79 | start int64 14 1.49k | end int64 18 1.5k | theorem stringlengths 25 1.55k | proof stringlengths 5 7.36k | eval_complexity float64 0 1 |
|---|---|---|---|---|---|---|
import Mathlib.Algebra.Polynomial.Monic
#align_import algebra.polynomial.big_operators from "leanprover-community/mathlib"@"47adfab39a11a072db552f47594bf8ed2cf8a722"
open Finset
open Multiset
open Polynomial
universe u w
variable {R : Type u} {ΞΉ : Type w}
namespace Polynomial
variable (s : Finset ΞΉ)
sectio... | Mathlib/Algebra/Polynomial/BigOperators.lean | 57 | 59 | theorem natDegree_sum_le (f : ΞΉ β S[X]) :
natDegree (β i β s, f i) β€ s.fold max 0 (natDegree β f) := by |
simpa using natDegree_multiset_sum_le (s.val.map f)
| 0.96875 |
import Mathlib.Algebra.BigOperators.Group.Finset
import Mathlib.Data.Finsupp.Defs
import Mathlib.Data.Finset.Pairwise
#align_import data.finsupp.big_operators from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf"
variable {ΞΉ M : Type*} [DecidableEq ΞΉ]
theorem List.support_sum_subset [Add... | Mathlib/Data/Finsupp/BigOperators.lean | 48 | 52 | theorem Multiset.support_sum_subset [AddCommMonoid M] (s : Multiset (ΞΉ ββ M)) :
s.sum.support β (s.map Finsupp.support).sup := by |
induction s using Quot.inductionOn
simpa only [Multiset.quot_mk_to_coe'', Multiset.sum_coe, Multiset.map_coe, Multiset.sup_coe,
List.foldr_map] using List.support_sum_subset _
| 0.96875 |
import Mathlib.CategoryTheory.Limits.Creates
import Mathlib.CategoryTheory.Comma.Over
import Mathlib.CategoryTheory.IsConnected
#align_import category_theory.limits.constructions.over.connected from "leanprover-community/mathlib"@"d6814c584384ddf2825ff038e868451a7c956f31"
universe v u
-- morphism levels before o... | Mathlib/CategoryTheory/Limits/Constructions/Over/Connected.lean | 60 | 62 | theorem raised_cone_lowers_to_original [IsConnected J] {B : C} {F : J β₯€ Over B}
(c : Cone (F β forget B)) :
(forget B).mapCone (raiseCone c) = c := by | aesop_cat
| 0.96875 |
import Mathlib.Algebra.Group.Defs
import Mathlib.Algebra.GroupWithZero.Defs
import Mathlib.Data.Int.Cast.Defs
import Mathlib.Tactic.Spread
import Mathlib.Util.AssertExists
#align_import algebra.ring.defs from "leanprover-community/mathlib"@"76de8ae01554c3b37d66544866659ff174e66e1f"
universe u v w x
variable {Ξ± : ... | Mathlib/Algebra/Ring/Defs.lean | 197 | 198 | theorem mul_ite {Ξ±} [Mul Ξ±] (P : Prop) [Decidable P] (a b c : Ξ±) :
(a * if P then b else c) = if P then a * b else a * c := by | split_ifs <;> rfl
| 0.96875 |
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Add
#align_import analysis.calculus.deriv.add from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe"
universe u v w
open scoped Classical
open Topology Filter ENNReal
open Filter Asymptotics Set
variable... | Mathlib/Analysis/Calculus/Deriv/Add.lean | 102 | 103 | theorem deriv_add_const (c : F) : deriv (fun y => f y + c) x = deriv f x := by |
simp only [deriv, fderiv_add_const]
| 0.96875 |
import Mathlib.Algebra.ContinuedFractions.Basic
import Mathlib.Algebra.GroupWithZero.Basic
#align_import algebra.continued_fractions.translations from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad"
namespace GeneralizedContinuedFraction
section General
variable {Ξ± : Type*} {g : Gen... | Mathlib/Algebra/ContinuedFractions/Translations.lean | 41 | 42 | theorem part_num_none_iff_s_none : g.partialNumerators.get? n = none β g.s.get? n = none := by |
cases s_nth_eq : g.s.get? n <;> simp [partialNumerators, s_nth_eq]
| 0.96875 |
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Mul
import Mathlib.Analysis.Calculus.FDeriv.Add
#align_import analysis.calculus.deriv.mul from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe"
universe u v w
noncomputable section
open scoped Classical... | Mathlib/Analysis/Calculus/Deriv/Mul.lean | 120 | 123 | theorem HasDerivWithinAt.smul_const (hc : HasDerivWithinAt c c' s x) (f : F) :
HasDerivWithinAt (fun y => c y β’ f) (c' β’ f) s x := by |
have := hc.smul (hasDerivWithinAt_const x s f)
rwa [smul_zero, zero_add] at this
| 0.96875 |
import Mathlib.LinearAlgebra.Dimension.Free
import Mathlib.LinearAlgebra.Dimension.Finite
import Mathlib.LinearAlgebra.FreeModule.StrongRankCondition
open FiniteDimensional
namespace Subalgebra
variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S]
(A B : Subalgebra R S) [Module.Free R A] [Module.Free R... | Mathlib/Algebra/Algebra/Subalgebra/Rank.lean | 51 | 53 | theorem finrank_sup_eq_finrank_right_mul_finrank_of_free :
finrank R β₯(A β B) = finrank R B * finrank B (Algebra.adjoin B (A : Set S)) := by |
rw [sup_comm, finrank_sup_eq_finrank_left_mul_finrank_of_free]
| 0.96875 |
import Mathlib.Deprecated.Group
#align_import deprecated.ring from "leanprover-community/mathlib"@"5a3e819569b0f12cbec59d740a2613018e7b8eec"
universe u v w
variable {Ξ± : Type u}
structure IsSemiringHom {Ξ± : Type u} {Ξ² : Type v} [Semiring Ξ±] [Semiring Ξ²] (f : Ξ± β Ξ²) : Prop where
map_zero : f 0 = 0
map... | Mathlib/Deprecated/Ring.lean | 54 | 54 | theorem id : IsSemiringHom (@id Ξ±) := by | constructor <;> intros <;> rfl
| 0.96875 |
import Mathlib.CategoryTheory.Functor.Hom
import Mathlib.CategoryTheory.Products.Basic
import Mathlib.Data.ULift
#align_import category_theory.yoneda from "leanprover-community/mathlib"@"369525b73f229ccd76a6ec0e0e0bf2be57599768"
namespace CategoryTheory
open Opposite
universe vβ uβ uβ
-- morphism levels before ... | Mathlib/CategoryTheory/Yoneda.lean | 59 | 62 | theorem obj_map_id {X Y : C} (f : op X βΆ op Y) :
(yoneda.obj X).map f (π X) = (yoneda.map f.unop).app (op Y) (π Y) := by |
dsimp
simp
| 0.96875 |
import Mathlib.Algebra.GroupWithZero.Divisibility
import Mathlib.Algebra.Order.Ring.Nat
import Mathlib.Tactic.NthRewrite
#align_import data.nat.gcd.basic from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3"
namespace Nat
theorem gcd_greatest {a b d : β} (hda : d β£ a) (hdb : d β£ b) (hd ... | Mathlib/Data/Nat/GCD/Basic.lean | 58 | 59 | theorem gcd_add_mul_left_left (m n k : β) : gcd (m + n * k) n = gcd m n := by |
rw [gcd_comm, gcd_add_mul_left_right, gcd_comm]
| 0.96875 |
import Mathlib.Algebra.Group.Subgroup.Basic
import Mathlib.GroupTheory.Submonoid.Center
#align_import group_theory.subgroup.basic from "leanprover-community/mathlib"@"4be589053caf347b899a494da75410deb55fb3ef"
open Function
open Int
variable {G : Type*} [Group G]
namespace Subgroup
variable (G)
@[to_additive
... | Mathlib/GroupTheory/Subgroup/Center.lean | 73 | 75 | theorem mem_center_iff {z : G} : z β center G β β g, g * z = z * g := by |
rw [β Semigroup.mem_center_iff]
exact Iff.rfl
| 0.96875 |
import Mathlib.Algebra.Ring.Regular
import Mathlib.Data.Int.GCD
import Mathlib.Data.Int.Order.Lemmas
import Mathlib.Tactic.NormNum.Basic
#align_import data.nat.modeq from "leanprover-community/mathlib"@"47a1a73351de8dd6c8d3d32b569c8e434b03ca47"
assert_not_exists Function.support
namespace Nat
def ModEq (n a b :... | Mathlib/Data/Nat/ModEq.lean | 78 | 78 | theorem modEq_zero_iff_dvd : a β‘ 0 [MOD n] β n β£ a := by | rw [ModEq, zero_mod, dvd_iff_mod_eq_zero]
| 0.96875 |
import Mathlib.Data.Finsupp.Basic
import Mathlib.Data.Finsupp.Order
#align_import data.finsupp.multiset from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf"
open Finset
variable {Ξ± Ξ² ΞΉ : Type*}
namespace Finsupp
def toMultiset : (Ξ± ββ β) β+ Multiset Ξ± where
toFun f := Finsupp.sum f... | Mathlib/Data/Finsupp/Multiset.lean | 52 | 53 | theorem toMultiset_single (a : Ξ±) (n : β) : toMultiset (single a n) = n β’ {a} := by |
rw [toMultiset_apply, sum_single_index]; apply zero_nsmul
| 0.96875 |
import Mathlib.SetTheory.Game.Ordinal
import Mathlib.SetTheory.Ordinal.NaturalOps
#align_import set_theory.game.birthday from "leanprover-community/mathlib"@"a347076985674932c0e91da09b9961ed0a79508c"
universe u
open Ordinal
namespace SetTheory
open scoped NaturalOps PGame
namespace PGame
noncomputable def b... | Mathlib/SetTheory/Game/Birthday.lean | 47 | 51 | theorem birthday_def (x : PGame) :
birthday x =
max (lsub.{u, u} fun i => birthday (x.moveLeft i))
(lsub.{u, u} fun i => birthday (x.moveRight i)) := by |
cases x; rw [birthday]; rfl
| 0.96875 |
import Mathlib.Algebra.Group.Commute.Units
import Mathlib.Algebra.Group.Int
import Mathlib.Algebra.GroupWithZero.Semiconj
import Mathlib.Data.Nat.GCD.Basic
import Mathlib.Order.Bounds.Basic
#align_import data.int.gcd from "leanprover-community/mathlib"@"47a1a73351de8dd6c8d3d32b569c8e434b03ca47"
namespace Nat
... | Mathlib/Data/Int/GCD.lean | 51 | 54 | theorem xgcdAux_rec {r s t r' s' t'} (h : 0 < r) :
xgcdAux r s t r' s' t' = xgcdAux (r' % r) (s' - r' / r * s) (t' - r' / r * t) r s t := by |
obtain β¨r, rflβ© := Nat.exists_eq_succ_of_ne_zero h.ne'
simp [xgcdAux]
| 0.96875 |
import Mathlib.GroupTheory.Coxeter.Length
import Mathlib.Data.ZMod.Parity
namespace CoxeterSystem
open List Matrix Function
variable {B : Type*}
variable {W : Type*} [Group W]
variable {M : CoxeterMatrix B} (cs : CoxeterSystem M W)
local prefix:100 "s" => cs.simple
local prefix:100 "Ο" => cs.wordProd
local prefi... | Mathlib/GroupTheory/Coxeter/Inversion.lean | 76 | 78 | theorem inv : tβ»ΒΉ = t := by |
rcases ht with β¨w, i, rflβ©
simp [mul_assoc]
| 0.96875 |
import Mathlib.Topology.Order.IsLUB
open Set Filter TopologicalSpace Topology Function
open OrderDual (toDual ofDual)
variable {Ξ± Ξ² Ξ³ : Type*}
section ConditionallyCompleteLinearOrder
variable [ConditionallyCompleteLinearOrder Ξ±] [TopologicalSpace Ξ±] [OrderTopology Ξ±]
[ConditionallyCompleteLinearOrder Ξ²] [Top... | Mathlib/Topology/Order/Monotone.lean | 92 | 96 | theorem Antitone.map_iSup_of_continuousAt' {ΞΉ : Sort*} [Nonempty ΞΉ] {f : Ξ± β Ξ²} {g : ΞΉ β Ξ±}
(Cf : ContinuousAt f (iSup g)) (Af : Antitone f)
(bdd : BddAbove (range g) := by | bddDefault) : f (β¨ i, g i) = β¨
i, f (g i) := by
rw [iSup, Antitone.map_sSup_of_continuousAt' Cf Af (range_nonempty g) bdd, β range_comp, iInf]
rfl
| 0.96875 |
import Mathlib.Data.ENNReal.Inv
#align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open Set NNReal ENNReal
namespace ENNReal
section Real
variable {a b c d : ββ₯0β} {r p q : ββ₯0}
theorem toReal_add (ha : a β β) (hb : b β β) : (a + b).toReal = a.toReal ... | Mathlib/Data/ENNReal/Real.lean | 65 | 68 | theorem ofReal_add {p q : β} (hp : 0 β€ p) (hq : 0 β€ q) :
ENNReal.ofReal (p + q) = ENNReal.ofReal p + ENNReal.ofReal q := by |
rw [ENNReal.ofReal, ENNReal.ofReal, ENNReal.ofReal, β coe_add, coe_inj,
Real.toNNReal_add hp hq]
| 0.96875 |
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.Calculus.FDeriv.Basic
import Mathlib.Analysis.Calculus.Deriv.Basic
open Topology InnerProductSpace Set
noncomputable section
variable {π F : Type*} [RCLike π]
variable [NormedAddCommGroup F] [InnerProductSpace π F] [CompleteSpace F]
variabl... | Mathlib/Analysis/Calculus/Gradient/Basic.lean | 98 | 100 | theorem hasFDerivAt_iff_hasGradientAt {frechet : F βL[π] π} :
HasFDerivAt f frechet x β HasGradientAt f ((toDual π F).symm frechet) x := by |
rw [hasGradientAt_iff_hasFDerivAt, (toDual π F).apply_symm_apply frechet]
| 0.96875 |
import Mathlib.Algebra.Bounds
import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc
import Mathlib.Data.Set.Pointwise.SMul
#align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
open Function Set
open Pointwise
variable ... | Mathlib/Algebra/Order/Pointwise.lean | 130 | 132 | theorem csSup_inv (hsβ : s.Nonempty) (hsβ : BddBelow s) : sSup sβ»ΒΉ = (sInf s)β»ΒΉ := by |
rw [β image_inv]
exact ((OrderIso.inv Ξ±).map_csInf' hsβ hsβ).symm
| 0.96875 |
import Mathlib.Analysis.SpecialFunctions.Pow.NNReal
#align_import analysis.special_functions.pow.asymptotics from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8"
set_option linter.uppercaseLean3 false
noncomputable section
open scoped Classical
open Real Topology NNReal ENNReal Filter C... | Mathlib/Analysis/SpecialFunctions/Pow/Asymptotics.lean | 210 | 220 | theorem isBigO_cpow_rpow (hl : IsBoundedUnder (Β· β€ Β·) l fun x => |(g x).im|) :
(fun x => f x ^ g x) =O[l] fun x => abs (f x) ^ (g x).re :=
calc
(fun x => f x ^ g x) =O[l]
(show Ξ± β β from fun x => abs (f x) ^ (g x).re / Real.exp (arg (f x) * im (g x))) :=
isBigO_of_le _ fun x => (abs_cpow_le _ _... |
simp only [ofReal_one, div_one]
rfl
| 0.96875 |
import Mathlib.Algebra.Homology.ComplexShape
import Mathlib.CategoryTheory.Subobject.Limits
import Mathlib.CategoryTheory.GradedObject
import Mathlib.Algebra.Homology.ShortComplex.Basic
#align_import algebra.homology.homological_complex from "leanprover-community/mathlib"@"88bca0ce5d22ebfd9e73e682e51d60ea13b48347"
... | Mathlib/Algebra/Homology/HomologicalComplex.lean | 722 | 724 | theorem of_d_ne {i j : Ξ±} (h : i β j + 1) : (of X d sq).d i j = 0 := by |
dsimp [of]
rw [dif_neg h]
| 0.96875 |
import Mathlib.Algebra.MvPolynomial.Counit
import Mathlib.Algebra.MvPolynomial.Invertible
import Mathlib.RingTheory.WittVector.Defs
#align_import ring_theory.witt_vector.basic from "leanprover-community/mathlib"@"9556784a5b84697562e9c6acb40500d4a82e675a"
noncomputable section
open MvPolynomial Function
variable... | Mathlib/RingTheory/WittVector/Basic.lean | 111 | 111 | theorem sub : mapFun f (x - y) = mapFun f x - mapFun f y := by | map_fun_tac
| 0.96875 |
import Mathlib.Algebra.GroupPower.IterateHom
import Mathlib.Algebra.Ring.Divisibility.Basic
import Mathlib.Data.List.Cycle
import Mathlib.Data.Nat.Prime
import Mathlib.Data.PNat.Basic
import Mathlib.Dynamics.FixedPoints.Basic
import Mathlib.GroupTheory.GroupAction.Group
#align_import dynamics.periodic_pts from "leanp... | Mathlib/Dynamics/PeriodicPts.lean | 595 | 596 | theorem iterate_prod_map (f : Ξ± β Ξ±) (g : Ξ² β Ξ²) (n : β) :
(Prod.map f g)^[n] = Prod.map (f^[n]) (g^[n]) := by | induction n <;> simp [*, Prod.map_comp_map]
| 0.96875 |
import Mathlib.Data.Int.Bitwise
import Mathlib.Data.Int.Order.Lemmas
import Mathlib.Data.Set.Function
import Mathlib.Order.Interval.Set.Basic
#align_import data.int.lemmas from "leanprover-community/mathlib"@"09597669f02422ed388036273d8848119699c22f"
open Nat
namespace Int
theorem le_natCast_sub (m n : β) : (m ... | Mathlib/Data/Int/Lemmas.lean | 55 | 57 | theorem natAbs_le_iff_sq_le {a b : β€} : a.natAbs β€ b.natAbs β a ^ 2 β€ b ^ 2 := by |
rw [sq, sq]
exact natAbs_le_iff_mul_self_le
| 0.96875 |
import Mathlib.Data.ENNReal.Operations
#align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open Set NNReal
namespace ENNReal
noncomputable section Inv
variable {a b c d : ββ₯0β} {r p q : ββ₯0}
protected theorem div_eq_inv_mul : a / b = bβ»ΒΉ * a := by rw [... | Mathlib/Data/ENNReal/Inv.lean | 68 | 68 | theorem coe_inv_two : ((2β»ΒΉ : ββ₯0) : ββ₯0β) = 2β»ΒΉ := by | rw [coe_inv _root_.two_ne_zero, coe_two]
| 0.96875 |
import Mathlib.LinearAlgebra.AffineSpace.AffineEquiv
#align_import linear_algebra.affine_space.midpoint from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36db2"
open AffineMap AffineEquiv
section
variable (R : Type*) {V V' P P' : Type*} [Ring R] [Invertible (2 : R)] [AddCommGroup V]
[Modu... | Mathlib/LinearAlgebra/AffineSpace/Midpoint.lean | 83 | 85 | theorem Equiv.pointReflection_midpoint_right (x y : P) :
(Equiv.pointReflection (midpoint R x y)) y = x := by |
rw [midpoint_comm, Equiv.pointReflection_midpoint_left]
| 0.96875 |
import Mathlib.Order.Interval.Finset.Nat
#align_import data.fin.interval from "leanprover-community/mathlib"@"1d29de43a5ba4662dd33b5cfeecfc2a27a5a8a29"
assert_not_exists MonoidWithZero
open Finset Fin Function
namespace Fin
variable (n : β)
instance instLocallyFiniteOrder : LocallyFiniteOrder (Fin n) :=
Orde... | Mathlib/Order/Interval/Finset/Fin.lean | 104 | 105 | theorem card_Icc : (Icc a b).card = b + 1 - a := by |
rw [β Nat.card_Icc, β map_valEmbedding_Icc, card_map]
| 0.96875 |
import Mathlib.Algebra.GCDMonoid.Finset
import Mathlib.Algebra.Polynomial.CancelLeads
import Mathlib.Algebra.Polynomial.EraseLead
import Mathlib.Algebra.Polynomial.FieldDivision
#align_import ring_theory.polynomial.content from "leanprover-community/mathlib"@"7a030ab8eb5d99f05a891dccc49c5b5b90c947d3"
namespace Po... | Mathlib/RingTheory/Polynomial/Content.lean | 154 | 155 | theorem content_monomial {r : R} {k : β} : content (monomial k r) = normalize r := by |
rw [β C_mul_X_pow_eq_monomial, content_C_mul, content_X_pow, mul_one]
| 0.96875 |
import Mathlib.Algebra.Lie.Matrix
import Mathlib.LinearAlgebra.Matrix.SesquilinearForm
import Mathlib.Tactic.NoncommRing
#align_import algebra.lie.skew_adjoint from "leanprover-community/mathlib"@"075b3f7d19b9da85a0b54b3e33055a74fc388dec"
universe u v w wβ
section SkewAdjointEndomorphisms
open LinearMap (BilinF... | Mathlib/Algebra/Lie/SkewAdjoint.lean | 84 | 86 | theorem skewAdjointLieSubalgebraEquiv_symm_apply (f : skewAdjointLieSubalgebra B) :
β((skewAdjointLieSubalgebraEquiv B e).symm f) = e.symm.lieConj f := by |
simp [skewAdjointLieSubalgebraEquiv]
| 0.96875 |
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Order.LatticeIntervals
import Mathlib.Order.Interval.Set.OrdConnected
#align_import order.complete_lattice_intervals from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432"
open scoped Classical
open Set
variable {ΞΉ : ... | Mathlib/Order/CompleteLatticeIntervals.lean | 57 | 59 | theorem subset_sSup_of_within [Inhabited s] {t : Set s}
(h' : t.Nonempty) (h'' : BddAbove t) (h : sSup ((β) '' t : Set Ξ±) β s) :
sSup ((β) '' t : Set Ξ±) = (@sSup s _ t : Ξ±) := by | simp [dif_pos, h, h', h'']
| 0.96875 |
import Mathlib.MeasureTheory.Decomposition.RadonNikodym
import Mathlib.MeasureTheory.Measure.Haar.OfBasis
import Mathlib.Probability.Independence.Basic
#align_import probability.density from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open scoped Classical MeasureTheory NNReal ENNRea... | Mathlib/Probability/Density.lean | 152 | 155 | theorem aemeasurable_of_pdf_ne_zero {m : MeasurableSpace Ξ©} {β : Measure Ξ©} {ΞΌ : Measure E}
(X : Ξ© β E) (h : Β¬pdf X β ΞΌ =α΅[ΞΌ] 0) : AEMeasurable X β := by |
contrapose! h
exact pdf_of_not_aemeasurable h
| 0.96875 |
import Mathlib.Topology.Connected.Basic
open Set Topology
universe u v
variable {Ξ± : Type u} {Ξ² : Type v} {ΞΉ : Type*} {Ο : ΞΉ β Type*} [TopologicalSpace Ξ±]
{s t u v : Set Ξ±}
section LocallyConnectedSpace
class LocallyConnectedSpace (Ξ± : Type*) [TopologicalSpace Ξ±] : Prop where
open_connected_basis : β x,... | Mathlib/Topology/Connected/LocallyConnected.lean | 78 | 81 | theorem isOpen_connectedComponent [LocallyConnectedSpace Ξ±] {x : Ξ±} :
IsOpen (connectedComponent x) := by |
rw [β connectedComponentIn_univ]
exact isOpen_univ.connectedComponentIn
| 0.96875 |
import Mathlib.LinearAlgebra.CliffordAlgebra.Conjugation
#align_import linear_algebra.clifford_algebra.star from "leanprover-community/mathlib"@"4d66277cfec381260ba05c68f9ae6ce2a118031d"
variable {R : Type*} [CommRing R]
variable {M : Type*} [AddCommGroup M] [Module R M]
variable {Q : QuadraticForm R M}
namespac... | Mathlib/LinearAlgebra/CliffordAlgebra/Star.lean | 50 | 50 | theorem star_ΞΉ (m : M) : star (ΞΉ Q m) = -ΞΉ Q m := by | rw [star_def, involute_ΞΉ, map_neg, reverse_ΞΉ]
| 0.96875 |
import Mathlib.Algebra.Polynomial.Derivative
import Mathlib.Tactic.LinearCombination
#align_import ring_theory.polynomial.chebyshev from "leanprover-community/mathlib"@"d774451114d6045faeb6751c396bea1eb9058946"
namespace Polynomial.Chebyshev
set_option linter.uppercaseLean3 false -- `T` `U` `X`
open Polynomial
v... | Mathlib/RingTheory/Polynomial/Chebyshev.lean | 99 | 100 | theorem T_eq (n : β€) : T R n = 2 * X * T R (n - 1) - T R (n - 2) := by |
linear_combination (norm := ring_nf) T_add_two R (n - 2)
| 0.96875 |
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Zip
import Mathlib.Data.Nat.Defs
import Mathlib.Data.List.Infix
#align_import data.list.rotate from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e"
universe u
variable {Ξ± : Type u}
open Nat Function
namespace List
theorem rotate... | Mathlib/Data/List/Rotate.lean | 41 | 41 | theorem rotate_nil (n : β) : ([] : List Ξ±).rotate n = [] := by | simp [rotate]
| 0.96875 |
import Mathlib.Algebra.FreeMonoid.Basic
import Mathlib.Algebra.Group.Submonoid.MulOpposite
import Mathlib.Algebra.Group.Submonoid.Operations
import Mathlib.Algebra.GroupWithZero.Divisibility
import Mathlib.Data.Finset.NoncommProd
import Mathlib.Data.Int.Order.Lemmas
#align_import group_theory.submonoid.membership fro... | Mathlib/Algebra/Group/Submonoid/Membership.lean | 332 | 333 | theorem mem_closure_singleton {x y : M} : y β closure ({x} : Set M) β β n : β, x ^ n = y := by |
rw [closure_singleton_eq, mem_mrange]; rfl
| 0.96875 |
import Mathlib.Algebra.DirectSum.Finsupp
import Mathlib.LinearAlgebra.Finsupp
import Mathlib.LinearAlgebra.DirectSum.TensorProduct
#align_import linear_algebra.direct_sum.finsupp from "leanprover-community/mathlib"@"9b9d125b7be0930f564a68f1d73ace10cf46064d"
noncomputable section
open DirectSum TensorProduct
ope... | Mathlib/LinearAlgebra/DirectSum/Finsupp.lean | 137 | 142 | theorem finsuppRight_apply (t : M β[R] (ΞΉ ββ N)) (i : ΞΉ) :
finsuppRight R M N ΞΉ t i = lTensor M (Finsupp.lapply i) t := by |
induction t using TensorProduct.induction_on with
| zero => simp
| tmul m f => simp [finsuppRight_apply_tmul_apply]
| add x y hx hy => simp [map_add, hx, hy]
| 0.96875 |
import Mathlib.Data.List.Forall2
#align_import data.list.zip from "leanprover-community/mathlib"@"134625f523e737f650a6ea7f0c82a6177e45e622"
-- Make sure we don't import algebra
assert_not_exists Monoid
universe u
open Nat
namespace List
variable {Ξ± : Type u} {Ξ² Ξ³ Ξ΄ Ξ΅ : Type*}
#align list.zip_with_cons_cons Li... | Mathlib/Data/List/Zip.lean | 67 | 68 | theorem lt_length_right_of_zipWith {f : Ξ± β Ξ² β Ξ³} {i : β} {l : List Ξ±} {l' : List Ξ²}
(h : i < (zipWith f l l').length) : i < l'.length := by | rw [length_zipWith] at h; omega
| 0.96875 |
import Mathlib.Algebra.CharP.ExpChar
import Mathlib.GroupTheory.OrderOfElement
#align_import algebra.char_p.two from "leanprover-community/mathlib"@"7f1ba1a333d66eed531ecb4092493cd1b6715450"
variable {R ΞΉ : Type*}
namespace CharTwo
section CommSemiring
variable [CommSemiring R] [CharP R 2]
theorem add_sq (x y... | Mathlib/Algebra/CharP/Two.lean | 107 | 108 | theorem multiset_sum_mul_self (l : Multiset R) :
l.sum * l.sum = (Multiset.map (fun x => x * x) l).sum := by | simp_rw [β pow_two, multiset_sum_sq]
| 0.96875 |
import Mathlib.Data.Finset.Lattice
import Mathlib.Data.Set.Sigma
#align_import data.finset.sigma from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853"
open Function Multiset
variable {ΞΉ : Type*}
namespace Finset
section Sigma
variable {Ξ± : ΞΉ β Type*} {Ξ² : Type*} (s sβ sβ : Finset ΞΉ) (... | Mathlib/Data/Finset/Sigma.lean | 60 | 60 | theorem sigma_nonempty : (s.sigma t).Nonempty β β i β s, (t i).Nonempty := by | simp [Finset.Nonempty]
| 0.96875 |
import Mathlib.Algebra.ContinuedFractions.Translations
#align_import algebra.continued_fractions.terminated_stable from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad"
namespace GeneralizedContinuedFraction
variable {K : Type*} {g : GeneralizedContinuedFraction K} {n m : β}
theorem te... | Mathlib/Algebra/ContinuedFractions/TerminatedStable.lean | 80 | 82 | theorem denominators_stable_of_terminated (n_le_m : n β€ m) (terminated_at_n : g.TerminatedAt n) :
g.denominators m = g.denominators n := by |
simp only [denom_eq_conts_b, continuants_stable_of_terminated n_le_m terminated_at_n]
| 0.96875 |
import Mathlib.Algebra.Order.Ring.Nat
import Mathlib.Algebra.Order.Monoid.WithTop
#align_import data.nat.with_bot from "leanprover-community/mathlib"@"966e0cf0685c9cedf8a3283ac69eef4d5f2eaca2"
namespace Nat
namespace WithBot
instance : WellFoundedRelation (WithBot β) where
rel := (Β· < Β·)
wf := IsWellFounde... | Mathlib/Data/Nat/WithBot.lean | 52 | 58 | theorem add_eq_three_iff {n m : WithBot β} :
n + m = 3 β n = 0 β§ m = 3 β¨ n = 1 β§ m = 2 β¨ n = 2 β§ m = 1 β¨ n = 3 β§ m = 0 := by |
rcases n, m with β¨_ | _, _ | _β©
repeat refine β¨fun h => Option.noConfusion h, fun h => ?_β©;
aesop (simp_config := { decide := true })
repeat erw [WithBot.coe_eq_coe]
exact Nat.add_eq_three_iff
| 0.96875 |
import Mathlib.Algebra.FreeMonoid.Basic
import Mathlib.Algebra.Group.Submonoid.MulOpposite
import Mathlib.Algebra.Group.Submonoid.Operations
import Mathlib.Algebra.GroupWithZero.Divisibility
import Mathlib.Data.Finset.NoncommProd
import Mathlib.Data.Int.Order.Lemmas
#align_import group_theory.submonoid.membership fro... | Mathlib/Algebra/Group/Submonoid/Membership.lean | 234 | 236 | theorem mem_sup_left {S T : Submonoid M} : β {x : M}, x β S β x β S β T := by |
rw [β SetLike.le_def]
exact le_sup_left
| 0.96875 |
import Mathlib.Topology.Order.IsLUB
open Set Filter TopologicalSpace Topology Function
open OrderDual (toDual ofDual)
variable {Ξ± Ξ² Ξ³ : Type*}
section DenselyOrdered
variable [TopologicalSpace Ξ±] [LinearOrder Ξ±] [OrderTopology Ξ±] [DenselyOrdered Ξ±] {a b : Ξ±}
{s : Set Ξ±}
theorem closure_Ioi' {a : Ξ±} (h : (Io... | Mathlib/Topology/Order/DenselyOrdered.lean | 111 | 112 | theorem interior_Ico [NoMinOrder Ξ±] {a b : Ξ±} : interior (Ico a b) = Ioo a b := by |
rw [β Ici_inter_Iio, interior_inter, interior_Ici, interior_Iio, Ioi_inter_Iio]
| 0.96875 |
import Mathlib.CategoryTheory.EpiMono
import Mathlib.CategoryTheory.Functor.FullyFaithful
import Mathlib.Tactic.PPWithUniv
import Mathlib.Data.Set.Defs
#align_import category_theory.types from "leanprover-community/mathlib"@"48085f140e684306f9e7da907cd5932056d1aded"
namespace CategoryTheory
-- morphism levels be... | Mathlib/CategoryTheory/Types.lean | 170 | 172 | theorem eqToHom_map_comp_apply (p : X = Y) (q : Y = Z) (x : F.obj X) :
F.map (eqToHom q) (F.map (eqToHom p) x) = F.map (eqToHom <| p.trans q) x := by |
aesop_cat
| 0.96875 |
import Mathlib.Algebra.GroupPower.IterateHom
import Mathlib.Algebra.Module.Defs
import Mathlib.Algebra.Order.Archimedean
import Mathlib.Algebra.Order.Group.Instances
import Mathlib.GroupTheory.GroupAction.Pi
open Function Set
structure AddConstMap (G H : Type*) [Add G] [Add H] (a : G) (b : H) where
protected... | Mathlib/Algebra/AddConstMap/Basic.lean | 90 | 91 | theorem map_add_nat [AddMonoidWithOne G] [AddMonoidWithOne H] [AddConstMapClass F G H 1 1]
(f : F) (x : G) (n : β) : f (x + n) = f x + n := by | simp
| 0.96875 |
import Mathlib.Algebra.Polynomial.AlgebraMap
import Mathlib.Algebra.Polynomial.Monic
#align_import data.polynomial.lifts from "leanprover-community/mathlib"@"63417e01fbc711beaf25fa73b6edb395c0cfddd0"
open Polynomial
noncomputable section
namespace Polynomial
universe u v w
section Semiring
variable {R : Type... | Mathlib/Algebra/Polynomial/Lifts.lean | 69 | 70 | theorem lifts_iff_ringHom_rangeS (p : S[X]) : p β lifts f β p β (mapRingHom f).rangeS := by |
simp only [coe_mapRingHom, lifts, Set.mem_range, RingHom.mem_rangeS]
| 0.96875 |
import Mathlib.RingTheory.WittVector.Basic
import Mathlib.RingTheory.WittVector.IsPoly
#align_import ring_theory.witt_vector.verschiebung from "leanprover-community/mathlib"@"32b08ef840dd25ca2e47e035c5da03ce16d2dc3c"
namespace WittVector
open MvPolynomial
variable {p : β} {R S : Type*} [hp : Fact p.Prime] [Comm... | Mathlib/RingTheory/WittVector/Verschiebung.lean | 47 | 48 | theorem verschiebungFun_coeff_zero (x : π R) : (verschiebungFun x).coeff 0 = 0 := by |
rw [verschiebungFun_coeff, if_pos rfl]
| 0.96875 |
import Mathlib.MeasureTheory.Function.LpOrder
#align_import measure_theory.function.l1_space from "leanprover-community/mathlib"@"ccdbfb6e5614667af5aa3ab2d50885e0ef44a46f"
noncomputable section
open scoped Classical
open Topology ENNReal MeasureTheory NNReal
open Set Filter TopologicalSpace ENNReal EMetric Meas... | Mathlib/MeasureTheory/Function/L1Space.lean | 113 | 115 | theorem hasFiniteIntegral_iff_norm (f : Ξ± β Ξ²) :
HasFiniteIntegral f ΞΌ β (β«β» a, ENNReal.ofReal βf aβ βΞΌ) < β := by |
simp only [HasFiniteIntegral, ofReal_norm_eq_coe_nnnorm]
| 0.96875 |
import Mathlib.Algebra.Group.Aut
import Mathlib.Algebra.Group.Invertible.Basic
import Mathlib.Algebra.GroupWithZero.Units.Basic
import Mathlib.GroupTheory.GroupAction.Units
#align_import group_theory.group_action.group from "leanprover-community/mathlib"@"3b52265189f3fb43aa631edffce5d060fafaf82f"
universe u v w
... | Mathlib/GroupTheory/GroupAction/Group.lean | 35 | 36 | theorem smul_inv_smul (c : Ξ±) (x : Ξ²) : c β’ cβ»ΒΉ β’ x = x := by |
rw [smul_smul, mul_right_inv, one_smul]
| 0.96875 |
import Mathlib.Topology.MetricSpace.PseudoMetric
#align_import topology.metric_space.basic from "leanprover-community/mathlib"@"c8f305514e0d47dfaa710f5a52f0d21b588e6328"
open Set Filter Bornology
open scoped NNReal Uniformity
universe u v w
variable {Ξ± : Type u} {Ξ² : Type v} {X ΞΉ : Type*}
variable [PseudoMetricS... | Mathlib/Topology/MetricSpace/Basic.lean | 74 | 74 | theorem zero_eq_dist {x y : Ξ³} : 0 = dist x y β x = y := by | rw [eq_comm, dist_eq_zero]
| 0.96875 |
import Mathlib.Algebra.GroupWithZero.Commute
import Mathlib.Algebra.Ring.Commute
#align_import data.nat.cast.basic from "leanprover-community/mathlib"@"acebd8d49928f6ed8920e502a6c90674e75bd441"
variable {Ξ± Ξ² : Type*}
namespace Nat
section Commute
variable [NonAssocSemiring Ξ±]
| Mathlib/Data/Nat/Cast/Commute.lean | 24 | 27 | theorem cast_commute (n : β) (x : Ξ±) : Commute (n : Ξ±) x := by |
induction n with
| zero => rw [Nat.cast_zero]; exact Commute.zero_left x
| succ n ihn => rw [Nat.cast_succ]; exact ihn.add_left (Commute.one_left x)
| 0.96875 |
import Mathlib.Order.Interval.Set.Disjoint
import Mathlib.MeasureTheory.Integral.SetIntegral
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
#align_import measure_theory.integral.interval_integral from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844"
noncomputable section
open scoped... | Mathlib/MeasureTheory/Integral/IntervalIntegral.lean | 112 | 114 | theorem intervalIntegrable_iff_integrableOn_Ioo_of_le [NoAtoms ΞΌ] (hab : a β€ b) :
IntervalIntegrable f ΞΌ a b β IntegrableOn f (Ioo a b) ΞΌ := by |
rw [intervalIntegrable_iff_integrableOn_Icc_of_le hab, integrableOn_Icc_iff_integrableOn_Ioo]
| 0.96875 |
import Mathlib.Dynamics.Ergodic.MeasurePreserving
import Mathlib.LinearAlgebra.Determinant
import Mathlib.LinearAlgebra.Matrix.Diagonal
import Mathlib.LinearAlgebra.Matrix.Transvection
import Mathlib.MeasureTheory.Group.LIntegral
import Mathlib.MeasureTheory.Integral.Marginal
import Mathlib.MeasureTheory.Measure.Stiel... | Mathlib/MeasureTheory/Measure/Lebesgue/Basic.lean | 92 | 92 | theorem volume_Ioc {a b : β} : volume (Ioc a b) = ofReal (b - a) := by | simp [volume_val]
| 0.96875 |
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Mul
import Mathlib.Analysis.Calculus.FDeriv.Add
#align_import analysis.calculus.deriv.mul from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe"
universe u v w
noncomputable section
open scoped Classical... | Mathlib/Analysis/Calculus/Deriv/Mul.lean | 454 | 459 | theorem HasDerivWithinAt.clm_comp (hc : HasDerivWithinAt c c' s x)
(hd : HasDerivWithinAt d d' s x) :
HasDerivWithinAt (fun y => (c y).comp (d y)) (c'.comp (d x) + (c x).comp d') s x := by |
have := (hc.hasFDerivWithinAt.clm_comp hd.hasFDerivWithinAt).hasDerivWithinAt
rwa [add_apply, comp_apply, comp_apply, smulRight_apply, smulRight_apply, one_apply, one_smul,
one_smul, add_comm] at this
| 0.96875 |
import Mathlib.Analysis.Calculus.FDeriv.Bilinear
#align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521"
open scoped Classical
open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal
noncomputable section
section
variable ... | Mathlib/Analysis/Calculus/FDeriv/Mul.lean | 307 | 309 | theorem HasStrictFDerivAt.smul_const (hc : HasStrictFDerivAt c c' x) (f : F) :
HasStrictFDerivAt (fun y => c y β’ f) (c'.smulRight f) x := by |
simpa only [smul_zero, zero_add] using hc.smul (hasStrictFDerivAt_const f x)
| 0.96875 |
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.Calculus.FDeriv.Basic
import Mathlib.Analysis.Calculus.Deriv.Basic
open Topology InnerProductSpace Set
noncomputable section
variable {π F : Type*} [RCLike π]
variable [NormedAddCommGroup F] [InnerProductSpace π F] [CompleteSpace F]
variabl... | Mathlib/Analysis/Calculus/Gradient/Basic.lean | 261 | 263 | theorem HasGradientAtFilter.congr_of_eventuallyEq (h : HasGradientAtFilter f f' x L)
(hL : fβ =αΆ [L] f) (hx : fβ x = f x) : HasGradientAtFilter fβ f' x L := by |
rwa [hL.hasGradientAtFilter_iff hx rfl]
| 0.96875 |
import Mathlib.LinearAlgebra.Dimension.Free
import Mathlib.Algebra.Module.Torsion
#align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5"
noncomputable section
universe u v v' uβ' w w'
variable {R S : Type u} {M : Type v} {M' : Type v'} {Mβ : Type v}... | Mathlib/LinearAlgebra/Dimension/Constructions.lean | 369 | 370 | theorem rank_tensorProduct' :
Module.rank S (M β[S] Mβ) = Module.rank S M * Module.rank S Mβ := by | simp
| 0.96875 |
import Mathlib.Algebra.Polynomial.Degree.Definitions
import Mathlib.Algebra.Polynomial.Eval
import Mathlib.Algebra.Polynomial.Monic
import Mathlib.Algebra.Polynomial.RingDivision
import Mathlib.Tactic.Abel
#align_import ring_theory.polynomial.pochhammer from "leanprover-community/mathlib"@"53b216bcc1146df1c4a0a868778... | Mathlib/RingTheory/Polynomial/Pochhammer.lean | 256 | 256 | theorem descPochhammer_one : descPochhammer R 1 = X := by | simp [descPochhammer]
| 0.96875 |
import Mathlib.Algebra.Order.Ring.Abs
#align_import data.int.order.units from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105"
namespace Int
theorem isUnit_iff_abs_eq {x : β€} : IsUnit x β abs x = 1 := by
rw [isUnit_iff_natAbs_eq, abs_eq_natAbs, β Int.ofNat_one, natCast_inj]
#align int.... | Mathlib/Data/Int/Order/Units.lean | 40 | 41 | theorem units_div_eq_mul (uβ uβ : β€Λ£) : uβ / uβ = uβ * uβ := by |
rw [div_eq_mul_inv, units_inv_eq_self]
| 0.96875 |
import Mathlib.Topology.MetricSpace.ProperSpace
import Mathlib.Topology.MetricSpace.Cauchy
open Set Filter Bornology
open scoped ENNReal Uniformity Topology Pointwise
universe u v w
variable {Ξ± : Type u} {Ξ² : Type v} {X ΞΉ : Type*}
variable [PseudoMetricSpace Ξ±]
namespace Metric
#align metric.bounded Bornology.I... | Mathlib/Topology/MetricSpace/Bounded.lean | 137 | 139 | theorem tendsto_dist_right_atTop_iff (c : Ξ±) {f : Ξ² β Ξ±} {l : Filter Ξ²} :
Tendsto (fun x β¦ dist (f x) c) l atTop β Tendsto f l (cobounded Ξ±) := by |
rw [β comap_dist_right_atTop c, tendsto_comap_iff, Function.comp_def]
| 0.96875 |
import Mathlib.Algebra.Order.Ring.Abs
#align_import data.int.order.units from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105"
namespace Int
theorem isUnit_iff_abs_eq {x : β€} : IsUnit x β abs x = 1 := by
rw [isUnit_iff_natAbs_eq, abs_eq_natAbs, β Int.ofNat_one, natCast_inj]
#align int.... | Mathlib/Data/Int/Order/Units.lean | 49 | 49 | theorem neg_one_pow_ne_zero {n : β} : (-1 : β€) ^ n β 0 := by | simp
| 0.96875 |
import Mathlib.Algebra.Group.Aut
import Mathlib.Algebra.Group.Invertible.Basic
import Mathlib.Algebra.GroupWithZero.Units.Basic
import Mathlib.GroupTheory.GroupAction.Units
#align_import group_theory.group_action.group from "leanprover-community/mathlib"@"3b52265189f3fb43aa631edffce5d060fafaf82f"
universe u v w
... | Mathlib/GroupTheory/GroupAction/Group.lean | 30 | 30 | theorem inv_smul_smul (c : Ξ±) (x : Ξ²) : cβ»ΒΉ β’ c β’ x = x := by | rw [smul_smul, mul_left_inv, one_smul]
| 0.96875 |
import Mathlib.Data.Set.Lattice
#align_import data.set.accumulate from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432"
variable {Ξ± Ξ² Ξ³ : Type*} {s : Ξ± β Set Ξ²} {t : Ξ± β Set Ξ³}
namespace Set
def Accumulate [LE Ξ±] (s : Ξ± β Set Ξ²) (x : Ξ±) : Set Ξ² :=
β y β€ x, s y
#align set.accumulate S... | Mathlib/Data/Set/Accumulate.lean | 31 | 32 | theorem mem_accumulate [LE Ξ±] {x : Ξ±} {z : Ξ²} : z β Accumulate s x β β y β€ x, z β s y := by |
simp_rw [accumulate_def, mem_iUnionβ, exists_prop]
| 0.96875 |
import Mathlib.Algebra.Group.ConjFinite
import Mathlib.GroupTheory.Abelianization
import Mathlib.GroupTheory.GroupAction.ConjAct
import Mathlib.GroupTheory.GroupAction.Quotient
import Mathlib.GroupTheory.Index
import Mathlib.GroupTheory.SpecificGroups.Dihedral
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Line... | Mathlib/GroupTheory/CommutingProbability.lean | 62 | 64 | theorem commProb_function {Ξ± Ξ² : Type*} [Fintype Ξ±] [Mul Ξ²] :
commProb (Ξ± β Ξ²) = (commProb Ξ²) ^ Fintype.card Ξ± := by |
rw [commProb_pi, Finset.prod_const, Finset.card_univ]
| 0.96875 |
import Mathlib.RingTheory.Ideal.Operations
import Mathlib.Algebra.Module.Torsion
import Mathlib.Algebra.Ring.Idempotents
import Mathlib.LinearAlgebra.FiniteDimensional
import Mathlib.RingTheory.Ideal.LocalRing
import Mathlib.RingTheory.Filtration
import Mathlib.RingTheory.Nakayama
#align_import ring_theory.ideal.cota... | Mathlib/RingTheory/Ideal/Cotangent.lean | 74 | 76 | theorem toCotangent_eq {x y : I} : I.toCotangent x = I.toCotangent y β (x - y : R) β I ^ 2 := by |
rw [β sub_eq_zero]
exact I.mem_toCotangent_ker
| 0.96875 |
import Mathlib.Analysis.MeanInequalities
import Mathlib.Analysis.MeanInequalitiesPow
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
import Mathlib.Data.Set.Image
import Mathlib.Topology.Algebra.Order.LiminfLimsup
#align_import analysis.normed_space.lp_space from "leanprover-community/mathlib"@"de83b43717abe3... | Mathlib/Analysis/NormedSpace/lpSpace.lean | 90 | 92 | theorem memβp_infty_iff {f : β i, E i} : Memβp f β β BddAbove (Set.range fun i => βf iβ) := by |
dsimp [Memβp]
rw [if_neg ENNReal.top_ne_zero, if_pos rfl]
| 0.96875 |
import Mathlib.MeasureTheory.Integral.SetIntegral
#align_import measure_theory.integral.average from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open ENNReal MeasureTheory MeasureTheory.Measure Metric Set Filter TopologicalSpace Function
open scoped Topology ENNReal Convex
variable... | Mathlib/MeasureTheory/Integral/Average.lean | 315 | 315 | theorem average_zero : β¨ _, (0 : E) βΞΌ = 0 := by | rw [average, integral_zero]
| 0.96875 |
import Mathlib.Algebra.Order.Group.PiLex
import Mathlib.Data.DFinsupp.Order
import Mathlib.Data.DFinsupp.NeLocus
import Mathlib.Order.WellFoundedSet
#align_import data.dfinsupp.lex from "leanprover-community/mathlib"@"dde670c9a3f503647fd5bfdf1037bad526d3397a"
variable {ΞΉ : Type*} {Ξ± : ΞΉ β Type*}
namespace DFinsu... | Mathlib/Data/DFinsupp/Lex.lean | 61 | 64 | theorem lex_lt_of_lt [β i, PartialOrder (Ξ± i)] (r) [IsStrictOrder ΞΉ r] {x y : Ξ β i, Ξ± i}
(hlt : x < y) : Pi.Lex r (Β· < Β·) x y := by |
simp_rw [Pi.Lex, le_antisymm_iff]
exact lex_lt_of_lt_of_preorder r hlt
| 0.96875 |
import Mathlib.Algebra.Order.Ring.Basic
import Mathlib.Computability.Primrec
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Linarith
#align_import computability.ackermann from "leanprover-community/mathlib"@"9b2660e1b25419042c8da10bf411aa3c67f14383"
open Nat
def ack : β β β β β
| 0, n => n + 1
| m + 1, 0 ... | Mathlib/Computability/Ackermann.lean | 70 | 70 | theorem ack_zero (n : β) : ack 0 n = n + 1 := by | rw [ack]
| 0.96875 |
import Mathlib.Algebra.Group.Equiv.TypeTags
import Mathlib.Algebra.Module.Defs
import Mathlib.Algebra.Module.LinearMap.Basic
import Mathlib.Algebra.MonoidAlgebra.Basic
import Mathlib.LinearAlgebra.Dual
import Mathlib.LinearAlgebra.Contraction
import Mathlib.RingTheory.TensorProduct.Basic
#align_import representation_... | Mathlib/RepresentationTheory/Basic.lean | 110 | 110 | theorem asAlgebraHom_single_one (g : G) : asAlgebraHom Ο (Finsupp.single g 1) = Ο g := by | simp
| 0.96875 |
import Mathlib.Analysis.Calculus.FDeriv.Bilinear
#align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521"
open scoped Classical
open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal
noncomputable section
section
variable ... | Mathlib/Analysis/Calculus/FDeriv/Mul.lean | 230 | 233 | theorem fderiv_continuousMultilinear_apply_const_apply (hc : DifferentiableAt π c x)
(u : β i, M i) (m : E) :
(fderiv π (fun y β¦ (c y) u) x) m = (fderiv π c x) m u := by |
simp [fderiv_continuousMultilinear_apply_const hc]
| 0.96875 |
import Mathlib.Data.Complex.Module
import Mathlib.Data.Complex.Order
import Mathlib.Data.Complex.Exponential
import Mathlib.Analysis.RCLike.Basic
import Mathlib.Topology.Algebra.InfiniteSum.Module
import Mathlib.Topology.Instances.RealVectorSpace
#align_import analysis.complex.basic from "leanprover-community/mathlib... | Mathlib/Analysis/Complex/Basic.lean | 58 | 59 | theorem norm_exp_ofReal_mul_I (t : β) : βexp (t * I)β = 1 := by |
simp only [norm_eq_abs, abs_exp_ofReal_mul_I]
| 0.96875 |
import Mathlib.Topology.Order.IsLUB
open Set Filter TopologicalSpace Topology Function
open OrderDual (toDual ofDual)
variable {Ξ± Ξ² Ξ³ : Type*}
section DenselyOrdered
variable [TopologicalSpace Ξ±] [LinearOrder Ξ±] [OrderTopology Ξ±] [DenselyOrdered Ξ±] {a b : Ξ±}
{s : Set Ξ±}
theorem closure_Ioi' {a : Ξ±} (h : (Io... | Mathlib/Topology/Order/DenselyOrdered.lean | 116 | 117 | theorem Ico_mem_nhds_iff [NoMinOrder Ξ±] {a b x : Ξ±} : Ico a b β π x β x β Ioo a b := by |
rw [β interior_Ico, mem_interior_iff_mem_nhds]
| 0.96875 |
import Mathlib.Data.Sign
import Mathlib.Topology.Order.Basic
#align_import topology.instances.sign from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514"
instance : TopologicalSpace SignType :=
β₯
instance : DiscreteTopology SignType :=
β¨rflβ©
variable {Ξ± : Type*} [Zero Ξ±] [Topological... | Mathlib/Topology/Instances/Sign.lean | 38 | 41 | theorem continuousAt_sign_of_neg {a : Ξ±} (h : a < 0) : ContinuousAt SignType.sign a := by |
refine (continuousAt_const : ContinuousAt (fun x => (-1 : SignType)) a).congr ?_
rw [Filter.EventuallyEq, eventually_nhds_iff]
exact β¨{ x | x < 0 }, fun x hx => (sign_neg hx).symm, isOpen_gt' 0, hβ©
| 0.96875 |
import Mathlib.Order.Interval.Finset.Nat
#align_import data.fin.interval from "leanprover-community/mathlib"@"1d29de43a5ba4662dd33b5cfeecfc2a27a5a8a29"
assert_not_exists MonoidWithZero
open Finset Fin Function
namespace Fin
variable (n : β)
instance instLocallyFiniteOrder : LocallyFiniteOrder (Fin n) :=
Orde... | Mathlib/Order/Interval/Finset/Fin.lean | 109 | 110 | theorem card_Ico : (Ico a b).card = b - a := by |
rw [β Nat.card_Ico, β map_valEmbedding_Ico, card_map]
| 0.96875 |
import Mathlib.Algebra.Group.Hom.End
import Mathlib.Algebra.Ring.Invertible
import Mathlib.Algebra.SMulWithZero
import Mathlib.Data.Int.Cast.Lemmas
import Mathlib.GroupTheory.GroupAction.Units
#align_import algebra.module.basic from "leanprover-community/mathlib"@"30413fc89f202a090a54d78e540963ed3de0056e"
assert_n... | Mathlib/Algebra/Module/Defs.lean | 97 | 98 | theorem Convex.combo_self {a b : R} (h : a + b = 1) (x : M) : a β’ x + b β’ x = x := by |
rw [β add_smul, h, one_smul]
| 0.96875 |
import Mathlib.Algebra.EuclideanDomain.Basic
import Mathlib.RingTheory.PrincipalIdealDomain
import Mathlib.Algebra.GCDMonoid.Nat
#align_import ring_theory.int.basic from "leanprover-community/mathlib"@"e655e4ea5c6d02854696f97494997ba4c31be802"
theorem Int.Prime.dvd_mul {m n : β€} {p : β} (hp : Nat.Prime p) (h : (p ... | Mathlib/RingTheory/Int/Basic.lean | 121 | 123 | theorem Int.exists_prime_and_dvd {n : β€} (hn : n.natAbs β 1) : β p, Prime p β§ p β£ n := by |
obtain β¨p, pp, pdβ© := Nat.exists_prime_and_dvd hn
exact β¨p, Nat.prime_iff_prime_int.mp pp, Int.natCast_dvd.mpr pdβ©
| 0.96875 |
import Mathlib.Order.Interval.Set.Disjoint
import Mathlib.MeasureTheory.Integral.SetIntegral
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
#align_import measure_theory.integral.interval_integral from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844"
noncomputable section
open scoped... | Mathlib/MeasureTheory/Integral/IntervalIntegral.lean | 108 | 110 | theorem intervalIntegrable_iff_integrableOn_Ico_of_le [NoAtoms ΞΌ] (hab : a β€ b) :
IntervalIntegrable f ΞΌ a b β IntegrableOn f (Ico a b) ΞΌ := by |
rw [intervalIntegrable_iff_integrableOn_Icc_of_le hab, integrableOn_Icc_iff_integrableOn_Ico]
| 0.96875 |
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Zip
import Mathlib.Data.Nat.Defs
import Mathlib.Data.List.Infix
#align_import data.list.rotate from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e"
universe u
variable {Ξ± : Type u}
open Nat Function
namespace List
theorem rotate... | Mathlib/Data/List/Rotate.lean | 53 | 53 | theorem rotate'_zero (l : List Ξ±) : l.rotate' 0 = l := by | cases l <;> rfl
| 0.96875 |
import Mathlib.Data.Nat.Factorial.Basic
import Mathlib.Order.Monotone.Basic
#align_import data.nat.choose.basic from "leanprover-community/mathlib"@"2f3994e1b117b1e1da49bcfb67334f33460c3ce4"
open Nat
namespace Nat
def choose : β β β β β
| _, 0 => 1
| 0, _ + 1 => 0
| n + 1, k + 1 => choose n k + choose n ... | Mathlib/Data/Nat/Choose/Basic.lean | 54 | 54 | theorem choose_zero_right (n : β) : choose n 0 = 1 := by | cases n <;> rfl
| 0.96875 |
import Mathlib.Algebra.BigOperators.WithTop
import Mathlib.Algebra.GroupWithZero.Divisibility
import Mathlib.Data.ENNReal.Basic
#align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520"
open Set NNReal ENNReal
namespace ENNReal
variable {a b c d : ββ₯0β} {r p q... | Mathlib/Data/ENNReal/Operations.lean | 206 | 206 | theorem mul_top' : a * β = if a = 0 then 0 else β := by | convert WithTop.mul_top' a
| 0.96875 |
import Mathlib.Analysis.Complex.Basic
import Mathlib.Topology.FiberBundle.IsHomeomorphicTrivialBundle
#align_import analysis.complex.re_im_topology from "leanprover-community/mathlib"@"468b141b14016d54b479eb7a0fff1e360b7e3cf6"
open Set
noncomputable section
namespace Complex
theorem isHomeomorphicTrivialFiber... | Mathlib/Analysis/Complex/ReImTopology.lean | 94 | 95 | theorem interior_setOf_re_le (a : β) : interior { z : β | z.re β€ a } = { z | z.re < a } := by |
simpa only [interior_Iic] using interior_preimage_re (Iic a)
| 0.96875 |
import Mathlib.MeasureTheory.Integral.IntervalIntegral
import Mathlib.Analysis.Calculus.Deriv.ZPow
import Mathlib.Analysis.NormedSpace.Pointwise
import Mathlib.Analysis.SpecialFunctions.NonIntegrable
import Mathlib.Analysis.Analytic.Basic
#align_import measure_theory.integral.circle_integral from "leanprover-communit... | Mathlib/MeasureTheory/Integral/CircleIntegral.lean | 117 | 117 | theorem circleMap_mem_sphere' (c : β) (R : β) (ΞΈ : β) : circleMap c R ΞΈ β sphere c |R| := by | simp
| 0.96875 |
import Mathlib.Data.Nat.Cast.Basic
import Mathlib.Algebra.CharZero.Defs
import Mathlib.Algebra.Order.Group.Abs
import Mathlib.Data.Nat.Cast.NeZero
import Mathlib.Algebra.Order.Ring.Nat
#align_import data.nat.cast.basic from "leanprover-community/mathlib"@"acebd8d49928f6ed8920e502a6c90674e75bd441"
variable {Ξ± Ξ² : T... | Mathlib/Data/Nat/Cast/Order.lean | 134 | 134 | theorem one_lt_cast : 1 < (n : Ξ±) β 1 < n := by | rw [β cast_one, cast_lt]
| 0.96875 |
import Aesop
import Mathlib.Algebra.Group.Defs
import Mathlib.Data.Nat.Defs
import Mathlib.Data.Int.Defs
import Mathlib.Logic.Function.Basic
import Mathlib.Tactic.Cases
import Mathlib.Tactic.SimpRw
import Mathlib.Tactic.SplitIfs
#align_import algebra.group.basic from "leanprover-community/mathlib"@"a07d750983b94c530a... | Mathlib/Algebra/Group/Basic.lean | 117 | 119 | theorem comp_mul_left (x y : Ξ±) : (x * Β·) β (y * Β·) = (x * y * Β·) := by |
ext z
simp [mul_assoc]
| 0.9375 |
import Mathlib.Probability.Independence.Basic
import Mathlib.Probability.Independence.Conditional
#align_import probability.independence.zero_one from "leanprover-community/mathlib"@"2f8347015b12b0864dfaf366ec4909eb70c78740"
open MeasureTheory MeasurableSpace
open scoped MeasureTheory ENNReal
namespace Probabili... | Mathlib/Probability/Independence/ZeroOne.lean | 58 | 61 | theorem measure_eq_zero_or_one_of_indepSet_self [IsFiniteMeasure ΞΌ] {t : Set Ξ©}
(h_indep : IndepSet t t ΞΌ) : ΞΌ t = 0 β¨ ΞΌ t = 1 := by |
simpa only [ae_dirac_eq, Filter.eventually_pure]
using kernel.measure_eq_zero_or_one_of_indepSet_self h_indep
| 0.9375 |
import Mathlib.Order.WellFounded
import Mathlib.Tactic.Common
#align_import data.pi.lex from "leanprover-community/mathlib"@"6623e6af705e97002a9054c1c05a980180276fc1"
assert_not_exists Monoid
variable {ΞΉ : Type*} {Ξ² : ΞΉ β Type*} (r : ΞΉ β ΞΉ β Prop) (s : β {i}, Ξ² i β Ξ² i β Prop)
namespace Pi
protected def Lex (x... | Mathlib/Order/PiLex.lean | 65 | 68 | theorem lex_lt_of_lt [β i, PartialOrder (Ξ² i)] {r} (hwf : WellFounded r) {x y : β i, Ξ² i}
(hlt : x < y) : Pi.Lex r (@fun i => (Β· < Β·)) x y := by |
simp_rw [Pi.Lex, le_antisymm_iff]
exact lex_lt_of_lt_of_preorder hwf hlt
| 0.9375 |
import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor
import Mathlib.CategoryTheory.Monoidal.Functor
#align_import category_theory.monoidal.preadditive from "leanprover-community/mathlib"@"986c4d5761f938b2e1c43c01f001b6d9d88c2055"
noncomputable section
open scoped Classical
namespace CategoryTheory
open Cat... | Mathlib/CategoryTheory/Monoidal/Preadditive.lean | 57 | 58 | theorem zero_tensor {W X Y Z : C} (f : Y βΆ Z) : (0 : W βΆ X) β f = 0 := by |
simp [tensorHom_def]
| 0.9375 |
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Algebra.BigOperators.NatAntidiagonal
import Mathlib.Algebra.CharZero.Lemmas
import Mathlib.Data.Finset.NatAntidiagonal
import Mathlib.Data.Nat.Choose.Central
import Mathlib.Data.Tree.Basic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.GCongr
import Mathlib... | Mathlib/Combinatorics/Enumerative/Catalan.lean | 148 | 149 | theorem catalan_three : catalan 3 = 5 := by |
norm_num [catalan_eq_centralBinom_div, Nat.centralBinom, Nat.choose]
| 0.9375 |
import Mathlib.Topology.Constructions
#align_import topology.continuous_on from "leanprover-community/mathlib"@"d4f691b9e5f94cfc64639973f3544c95f8d5d494"
open Set Filter Function Topology Filter
variable {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*} {Ξ΄ : Type*}
variable [TopologicalSpace Ξ±]
@[simp]
theorem nhds_bind_nhdsW... | Mathlib/Topology/ContinuousOn.lean | 75 | 76 | theorem nhdsWithin_univ (a : Ξ±) : π[Set.univ] a = π a := by |
rw [nhdsWithin, principal_univ, inf_top_eq]
| 0.9375 |
import Mathlib.SetTheory.Cardinal.Ordinal
#align_import set_theory.cardinal.continuum from "leanprover-community/mathlib"@"e08a42b2dd544cf11eba72e5fc7bf199d4349925"
namespace Cardinal
universe u v
open Cardinal
def continuum : Cardinal.{u} :=
2 ^ β΅β
#align cardinal.continuum Cardinal.continuum
scoped notat... | Mathlib/SetTheory/Cardinal/Continuum.lean | 52 | 54 | theorem lift_le_continuum {c : Cardinal.{u}} : lift.{v} c β€ π β c β€ π := by |
-- Porting note: added explicit universes
rw [β lift_continuum.{u,v}, lift_le]
| 0.9375 |
import Mathlib.Analysis.Normed.Group.InfiniteSum
import Mathlib.Analysis.Normed.MulAction
import Mathlib.Topology.Algebra.Order.LiminfLimsup
import Mathlib.Topology.PartialHomeomorph
#align_import analysis.asymptotics.asymptotics from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
open ... | Mathlib/Analysis/Asymptotics/Asymptotics.lean | 109 | 109 | theorem isBigO_iff_isBigOWith : f =O[l] g β β c : β, IsBigOWith c l f g := by | rw [IsBigO_def]
| 0.9375 |
import Mathlib.Algebra.Lie.Subalgebra
import Mathlib.RingTheory.Noetherian
import Mathlib.RingTheory.Artinian
#align_import algebra.lie.submodule from "leanprover-community/mathlib"@"9822b65bfc4ac74537d77ae318d27df1df662471"
universe u v w wβ wβ
section LieSubmodule
variable (R : Type u) (L : Type v) (M : Type ... | Mathlib/Algebra/Lie/Submodule.lean | 132 | 133 | theorem coe_toSubmodule_mk (p : Submodule R M) (h) :
(({ p with lie_mem := h } : LieSubmodule R L M) : Submodule R M) = p := by | cases p; rfl
| 0.9375 |
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Add
#align_import analysis.calculus.deriv.add from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe"
universe u v w
open scoped Classical
open Topology Filter ENNReal
open Filter Asymptotics Set
variable... | Mathlib/Analysis/Calculus/Deriv/Add.lean | 97 | 99 | theorem derivWithin_add_const (hxs : UniqueDiffWithinAt π s x) (c : F) :
derivWithin (fun y => f y + c) s x = derivWithin f s x := by |
simp only [derivWithin, fderivWithin_add_const hxs]
| 0.9375 |
import Mathlib.Algebra.Polynomial.Degree.Definitions
import Mathlib.Algebra.Polynomial.Eval
import Mathlib.Algebra.Polynomial.Monic
import Mathlib.Algebra.Polynomial.RingDivision
import Mathlib.Tactic.Abel
#align_import ring_theory.polynomial.pochhammer from "leanprover-community/mathlib"@"53b216bcc1146df1c4a0a868778... | Mathlib/RingTheory/Polynomial/Pochhammer.lean | 295 | 295 | theorem descPochhammer_zero_eval_zero : (descPochhammer R 0).eval 0 = 1 := by | simp
| 0.9375 |
import Mathlib.Analysis.NormedSpace.PiLp
import Mathlib.Analysis.InnerProductSpace.PiL2
#align_import analysis.matrix from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5"
noncomputable section
open scoped NNReal Matrix
namespace Matrix
variable {R l m n Ξ± Ξ² : Type*} [Fintype l] [Fintyp... | Mathlib/Analysis/Matrix.lean | 574 | 575 | theorem frobenius_nnnorm_map_eq (A : Matrix m n Ξ±) (f : Ξ± β Ξ²) (hf : β a, βf aββ = βaββ) :
βA.map fββ = βAββ := by | simp_rw [frobenius_nnnorm_def, Matrix.map_apply, hf]
| 0.9375 |
import Mathlib.Algebra.Polynomial.Basic
import Mathlib.SetTheory.Cardinal.Ordinal
#align_import data.polynomial.cardinal from "leanprover-community/mathlib"@"62c0a4ef1441edb463095ea02a06e87f3dfe135c"
universe u
open Cardinal Polynomial
open Cardinal
namespace Polynomial
@[simp]
theorem cardinal_mk_eq_max {R :... | Mathlib/Algebra/Polynomial/Cardinal.lean | 34 | 37 | theorem cardinal_mk_le_max {R : Type u} [Semiring R] : #(R[X]) β€ max #R β΅β := by |
cases subsingleton_or_nontrivial R
Β· exact (mk_eq_one _).trans_le (le_max_of_le_right one_le_aleph0)
Β· exact cardinal_mk_eq_max.le
| 0.9375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.