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
goals
listlengths
0
224
goals_before
listlengths
0
220
import Mathlib.Analysis.NormedSpace.AffineIsometry import Mathlib.Topology.Algebra.ContinuousAffineMap import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace #align_import analysis.normed_space.continuous_affine_map from "leanprover-community/mathlib"@"17ef379e997badd73e5eabb4d38f11919ab3c4b3" namespace Con...
Mathlib/Analysis/NormedSpace/ContinuousAffineMap.lean
66
67
theorem coe_contLinear_eq_linear (f : P →ᴬ[R] Q) : (f.contLinear : V β†’β‚—[R] W) = (f : P →ᡃ[R] Q).linear := by
ext; rfl
[ " Continuous { toFun := ⇑f.linear, map_add' := β‹―, map_smul' := β‹― }.toFun", " Continuous ⇑f.toAffineMap", " ↑f.contLinear = f.linear", " ↑f.contLinear x✝ = f.linear x✝" ]
[ " Continuous { toFun := ⇑f.linear, map_add' := β‹―, map_smul' := β‹― }.toFun", " Continuous ⇑f.toAffineMap" ]
import Mathlib.Algebra.Lie.OfAssociative import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.LinearAlgebra.Matrix.ToLinearEquiv #align_import algebra.lie.matrix from "leanprover-community/mathlib"@"55e2dfde0cff928ce5c70926a3f2c7dee3e2dd99" universe u v w w₁ wβ‚‚ section Matrices open scoped Matrix variabl...
Mathlib/Algebra/Lie/Matrix.lean
76
79
theorem Matrix.lieConj_symm_apply (P A : Matrix n n R) (h : Invertible P) : (P.lieConj h).symm A = P⁻¹ * A * P := by
simp [LinearEquiv.symm_conj_apply, Matrix.lieConj, LinearMap.toMatrix'_comp, LinearMap.toMatrix'_toLin']
[ " (↑__src✝).toFun ⁅T, S⁆ = ⁅(↑__src✝).toFun T, (↑__src✝).toFun S⁆", " f (T βˆ˜β‚— S - S βˆ˜β‚— T) = f T * f S - f S * f T", " (P.lieConj h) A = P * A * P⁻¹", " (P.lieConj h).symm A = P⁻¹ * A * P" ]
[ " (↑__src✝).toFun ⁅T, S⁆ = ⁅(↑__src✝).toFun T, (↑__src✝).toFun S⁆", " f (T βˆ˜β‚— S - S βˆ˜β‚— T) = f T * f S - f S * f T", " (P.lieConj h) A = P * A * P⁻¹" ]
import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace import Mathlib.Analysis.LocallyConvex.Barrelled import Mathlib.Topology.Baire.CompleteMetrizable #align_import analysis.normed_space.banach_steinhaus from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set variable {E F οΏ½...
Mathlib/Analysis/NormedSpace/BanachSteinhaus.lean
47
51
theorem banach_steinhaus_iSup_nnnorm {ΞΉ : Type*} [CompleteSpace E] {g : ΞΉ β†’ E β†’SL[σ₁₂] F} (h : βˆ€ x, (⨆ i, ↑‖g i xβ€–β‚Š) < ∞) : (⨆ i, ↑‖g iβ€–β‚Š) < ∞ := by
rw [show ((⨆ i, ↑‖g iβ€–β‚Š) < ∞) ↔ _ from (NormedSpace.equicontinuous_TFAE g).out 8 2] refine (norm_withSeminorms π•œβ‚‚ F).banach_steinhaus (fun _ x ↦ ?_) simpa [← NNReal.bddAbove_coe, ← Set.range_comp] using ENNReal.iSup_coe_lt_top.1 (h x)
[ " βˆƒ C', βˆ€ (i : ΞΉ), β€–g iβ€– ≀ C'", " UniformEquicontinuous (DFunLike.coe ∘ g)", " BddAbove (range fun i => (normSeminorm π•œβ‚‚ F) ((g i) x))", " ⨆ i, ↑‖g iβ€–β‚Š < ⊀" ]
[ " βˆƒ C', βˆ€ (i : ΞΉ), β€–g iβ€– ≀ C'", " UniformEquicontinuous (DFunLike.coe ∘ g)", " BddAbove (range fun i => (normSeminorm π•œβ‚‚ F) ((g i) x))" ]
import Mathlib.RingTheory.RootsOfUnity.Basic import Mathlib.FieldTheory.Minpoly.IsIntegrallyClosed import Mathlib.Algebra.GCDMonoid.IntegrallyClosed import Mathlib.FieldTheory.Finite.Basic #align_import ring_theory.roots_of_unity.minpoly from "leanprover-community/mathlib"@"7fdeecc0d03cd40f7a165e6cf00a4d2286db599f" ...
Mathlib/RingTheory/RootsOfUnity/Minpoly.lean
53
58
theorem minpoly_dvd_x_pow_sub_one : minpoly β„€ ΞΌ ∣ X ^ n - 1 := by
rcases n.eq_zero_or_pos with (rfl | h0) Β· simp apply minpoly.isIntegrallyClosed_dvd (isIntegral h h0) simp only [((IsPrimitiveRoot.iff_def ΞΌ n).mp h).left, aeval_X_pow, eq_intCast, Int.cast_one, aeval_one, AlgHom.map_sub, sub_self]
[ " IsIntegral β„€ ΞΌ", " (X ^ n - 1).Monic ∧ evalβ‚‚ (algebraMap β„€ K) ΞΌ (X ^ n - 1) = 0", " (X ^ n - 1).Monic", " evalβ‚‚ (algebraMap β„€ K) ΞΌ (X ^ n - 1) = 0", " minpoly β„€ ΞΌ ∣ X ^ n - 1", " minpoly β„€ ΞΌ ∣ X ^ 0 - 1", " (Polynomial.aeval ΞΌ) (X ^ n - 1) = 0" ]
[ " IsIntegral β„€ ΞΌ", " (X ^ n - 1).Monic ∧ evalβ‚‚ (algebraMap β„€ K) ΞΌ (X ^ n - 1) = 0", " (X ^ n - 1).Monic", " evalβ‚‚ (algebraMap β„€ K) ΞΌ (X ^ n - 1) = 0" ]
import Mathlib.Algebra.Polynomial.RingDivision import Mathlib.RingTheory.Localization.FractionRing #align_import data.polynomial.ring_division from "leanprover-community/mathlib"@"8efcf8022aac8e01df8d302dcebdbc25d6a886c8" noncomputable section namespace Polynomial universe u v w z variable {R : Type u} {S : Ty...
Mathlib/Algebra/Polynomial/Roots.lean
82
87
theorem card_roots_sub_C {p : R[X]} {a : R} (hp0 : 0 < degree p) : (Multiset.card (p - C a).roots : WithBot β„•) ≀ degree p := calc (Multiset.card (p - C a).roots : WithBot β„•) ≀ degree (p - C a) := card_roots <| mt sub_eq_zero.1 fun h => not_le_of_gt hp0 <| h.symm β–Έ degree_C_le _ = degree p := by
rw [sub_eq_add_neg, ← C_neg]; exact degree_add_C hp0
[ " p.roots = if h : p = 0 then βˆ… else Classical.choose β‹―", " ↑(Multiset.card p.roots) ≀ p.degree", " ↑(Multiset.card (if h : p = 0 then βˆ… else Classical.choose β‹―)) ≀ p.degree", " ↑(Multiset.card (Classical.choose β‹―)) ≀ p.degree", " Multiset.card p.roots ≀ p.natDegree", " (p - C a).degree = p.degree", " (...
[ " p.roots = if h : p = 0 then βˆ… else Classical.choose β‹―", " ↑(Multiset.card p.roots) ≀ p.degree", " ↑(Multiset.card (if h : p = 0 then βˆ… else Classical.choose β‹―)) ≀ p.degree", " ↑(Multiset.card (Classical.choose β‹―)) ≀ p.degree", " Multiset.card p.roots ≀ p.natDegree" ]
import Mathlib.Algebra.Field.Basic import Mathlib.Algebra.GroupWithZero.Units.Equiv import Mathlib.Algebra.Order.Field.Defs import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Order.Bounds.OrderIso import Mathlib.Tactic.Positivity.Core #align_import algebra.order.field.basic from "leanprover-community/mathlib"@"8477...
Mathlib/Algebra/Order/Field/Basic.lean
634
635
theorem div_neg_iff : a / b < 0 ↔ 0 < a ∧ b < 0 ∨ a < 0 ∧ 0 < b := by
simp [division_def, mul_neg_iff]
[ " 0 < a / b ↔ 0 < a ∧ 0 < b ∨ a < 0 ∧ b < 0", " a / b < 0 ↔ 0 < a ∧ b < 0 ∨ a < 0 ∧ 0 < b" ]
[ " 0 < a / b ↔ 0 < a ∧ 0 < b ∨ a < 0 ∧ b < 0" ]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Data.Finset.Sort import Mathlib.Data.Set.Subsingleton #align_import combinatorics.composition from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" open List variable {n : β„•} ...
Mathlib/Combinatorics/Enumerative/Composition.lean
192
195
theorem length_pos_of_pos (h : 0 < n) : 0 < c.length := by
apply length_pos_of_sum_pos convert h exact c.blocks_sum
[ " βˆ‘ i : Fin c.length, c.blocksFun i = n", "n : β„• c : Composition n | n", " c.length ≀ n", " c.length ≀ c.blocks.sum", " 0 < c.length", " 0 < c.blocks.sum", " c.blocks.sum = n" ]
[ " βˆ‘ i : Fin c.length, c.blocksFun i = n", "n : β„• c : Composition n | n", " c.length ≀ n", " c.length ≀ c.blocks.sum" ]
import Mathlib.CategoryTheory.Category.Grpd import Mathlib.CategoryTheory.Groupoid import Mathlib.Topology.Category.TopCat.Basic import Mathlib.Topology.Homotopy.Path import Mathlib.Data.Set.Subsingleton #align_import algebraic_topology.fundamental_groupoid.basic from "leanprover-community/mathlib"@"3d7987cda72abc473...
Mathlib/AlgebraicTopology/FundamentalGroupoid/Basic.lean
46
53
theorem continuous_reflTransSymmAux : Continuous reflTransSymmAux := by
refine continuous_if_le ?_ ?_ (Continuous.continuousOn ?_) (Continuous.continuousOn ?_) ?_ Β· continuity Β· continuity Β· continuity Β· continuity intro x hx norm_num [hx, mul_assoc]
[ " Continuous reflTransSymmAux", " Continuous fun x => ↑x.2", " Continuous fun x => 1 / 2", " Continuous fun x => ↑x.1 * 2 * ↑x.2", " Continuous fun x => ↑x.1 * (2 - 2 * ↑x.2)", " βˆ€ (x : ↑I Γ— ↑I), ↑x.2 = 1 / 2 β†’ ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)" ]
[]
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMa...
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
95
101
theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by
refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this
[ " DifferentiableWithinAt π•œ (⇑iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x", " DifferentiableWithinAt π•œ f s x" ]
[]
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Asymptotics.SpecificAsymptotics #align_import analysis.special_functions.compare_exp from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8" open Asympto...
Mathlib/Analysis/SpecialFunctions/CompareExp.lean
127
151
theorem isLittleO_log_abs_re (hl : IsExpCmpFilter l) : (fun z => Real.log (abs z)) =o[l] re := calc (fun z => Real.log (abs z)) =O[l] fun z => Real.log (√2) + Real.log (max z.re |z.im|) := IsBigO.of_bound 1 <| (hl.tendsto_re.eventually_ge_atTop 1).mono fun z hz => by have h2 : 0 < √2 := by
simp have hz' : 1 ≀ abs z := hz.trans (re_le_abs z) have hmβ‚€ : 0 < max z.re |z.im| := lt_max_iff.2 (Or.inl <| one_pos.trans_le hz) rw [one_mul, Real.norm_eq_abs, _root_.abs_of_nonneg (Real.log_nonneg hz')] refine le_trans ?_ (le_abs_self _) rw [← Real.log_mul, Real.log...
[ " (fun z => (z.re ^ r) ^ n) z = (fun z => z.re ^ (r * ↑n)) z", " im =O[l] fun z => z.re ^ 0", " (fun z => (z.im ^ n) ^ 2) = fun z => z.im ^ (2 * n)", " (fun z => z.re.exp) = fun z => z.re.exp ^ 1", " (fun z => |z.im| ^ n) ≀ᢠ[l] fun z => z.re.exp", " β€–(abs z).logβ€– ≀ 1 * β€–(√2).log + (max z.re |z.im|).logβ€–",...
[ " (fun z => (z.re ^ r) ^ n) z = (fun z => z.re ^ (r * ↑n)) z", " im =O[l] fun z => z.re ^ 0", " (fun z => (z.im ^ n) ^ 2) = fun z => z.im ^ (2 * n)", " (fun z => z.re.exp) = fun z => z.re.exp ^ 1", " (fun z => |z.im| ^ n) ≀ᢠ[l] fun z => z.re.exp" ]
import Mathlib.CategoryTheory.Products.Basic #align_import category_theory.products.bifunctor from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" open CategoryTheory namespace CategoryTheory.Bifunctor universe v₁ vβ‚‚ v₃ u₁ uβ‚‚ u₃ variable {C : Type u₁} {D : Type uβ‚‚} {E : Type u₃} varia...
Mathlib/CategoryTheory/Products/Bifunctor.lean
45
48
theorem diagonal (F : C Γ— D β₯€ E) (X X' : C) (f : X ⟢ X') (Y Y' : D) (g : Y ⟢ Y') : F.map ((πŸ™ X, g) : (X, Y) ⟢ (X, Y')) ≫ F.map ((f, πŸ™ Y') : (X, Y') ⟢ (X', Y')) = F.map ((f, g) : (X, Y) ⟢ (X', Y')) := by
rw [← Functor.map_comp, prod_comp, Category.id_comp, Category.comp_id]
[ " F.map (πŸ™ W, f ≫ g) = F.map (πŸ™ W, f) ≫ F.map (πŸ™ W, g)", " F.map (f ≫ g, πŸ™ W) = F.map (f, πŸ™ W) ≫ F.map (g, πŸ™ W)", " F.map (πŸ™ X, g) ≫ F.map (f, πŸ™ Y') = F.map (f, g)" ]
[ " F.map (πŸ™ W, f ≫ g) = F.map (πŸ™ W, f) ≫ F.map (πŸ™ W, g)", " F.map (f ≫ g, πŸ™ W) = F.map (f, πŸ™ W) ≫ F.map (g, πŸ™ W)" ]
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]
[ " ∫⁻ (a : Ξ±), ↑‖f aβ€–β‚Š βˆ‚ΞΌ = ∫⁻ (a : Ξ±), edist (f a) 0 βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), ENNReal.ofReal β€–f aβ€– βˆ‚ΞΌ = ∫⁻ (a : Ξ±), edist (f a) 0 βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), edist (f a) (g a) βˆ‚ΞΌ ≀ ∫⁻ (a : Ξ±), edist (f a) (h a) βˆ‚ΞΌ + ∫⁻ (a : Ξ±), edist (g a) (h a) βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), edist (f a) (g a) βˆ‚ΞΌ ≀ ∫⁻ (a : Ξ±), edist (f a) (h a) + edist...
[ " ∫⁻ (a : Ξ±), ↑‖f aβ€–β‚Š βˆ‚ΞΌ = ∫⁻ (a : Ξ±), edist (f a) 0 βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), ENNReal.ofReal β€–f aβ€– βˆ‚ΞΌ = ∫⁻ (a : Ξ±), edist (f a) 0 βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), edist (f a) (g a) βˆ‚ΞΌ ≀ ∫⁻ (a : Ξ±), edist (f a) (h a) βˆ‚ΞΌ + ∫⁻ (a : Ξ±), edist (g a) (h a) βˆ‚ΞΌ", " ∫⁻ (a : Ξ±), edist (f a) (g a) βˆ‚ΞΌ ≀ ∫⁻ (a : Ξ±), edist (f a) (h a) + edist...
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
118
129
theorem T_neg (n : β„€) : T R (-n) = T R n := by
induction n using Polynomial.Chebyshev.induct with | zero => rfl | one => show 2 * X * 1 - X = X; ring | add_two n ih1 ih2 => have h₁ := T_add_two R n have hβ‚‚ := T_sub_two R (-n) linear_combination (norm := ring_nf) (2 * (X:R[X])) * ih1 - ih2 - h₁ + hβ‚‚ | neg_add_one n ih1 ih2 => have h₁ := T_...
[ " motive (Int.negSucc n)", " T R (-↑(k + 1) + 2) = 2 * X * T R (-↑(k + 1) + 1) - T R (-↑(k + 1))", " T R (-↑(k + 1) + 2) - (2 * X * T R (-↑(k + 1) + 1) - T R (-↑(k + 1))) -\n (T R (Int.negSucc k) - (2 * X * T R (-↑k) - T R (-↑k + 1))) =\n 0", " T R (-1 + -↑k + 2) - (2 * X * T R (-↑k) - T R (-1 + -↑k))...
[ " motive (Int.negSucc n)", " T R (-↑(k + 1) + 2) = 2 * X * T R (-↑(k + 1) + 1) - T R (-↑(k + 1))", " T R (-↑(k + 1) + 2) - (2 * X * T R (-↑(k + 1) + 1) - T R (-↑(k + 1))) -\n (T R (Int.negSucc k) - (2 * X * T R (-↑k) - T R (-↑k + 1))) =\n 0", " T R (-1 + -↑k + 2) - (2 * X * T R (-↑k) - T R (-1 + -↑k))...
import Mathlib.CategoryTheory.Subobject.Lattice #align_import category_theory.subobject.limits from "leanprover-community/mathlib"@"956af7c76589f444f2e1313911bad16366ea476d" universe v u noncomputable section open CategoryTheory CategoryTheory.Category CategoryTheory.Limits CategoryTheory.Subobject Opposite var...
Mathlib/CategoryTheory/Subobject/Limits.lean
328
329
theorem imageSubobject_arrow_comp : factorThruImageSubobject f ≫ (imageSubobject f).arrow = f := by
simp [factorThruImageSubobject, imageSubobject_arrow]
[ " (imageSubobjectIso f).hom ≫ image.ΞΉ f = (imageSubobject f).arrow", " (imageSubobjectIso f).inv ≫ (imageSubobject f).arrow = image.ΞΉ f", " Epi (factorThruImageSubobject f)", " Epi (factorThruImage f ≫ (imageSubobjectIso f).inv)", " factorThruImageSubobject f ≫ (imageSubobject f).arrow = f" ]
[ " (imageSubobjectIso f).hom ≫ image.ΞΉ f = (imageSubobject f).arrow", " (imageSubobjectIso f).inv ≫ (imageSubobject f).arrow = image.ΞΉ f", " Epi (factorThruImageSubobject f)", " Epi (factorThruImage f ≫ (imageSubobjectIso f).inv)" ]
import Mathlib.Analysis.SpecialFunctions.Gamma.Beta import Mathlib.NumberTheory.LSeries.HurwitzZeta import Mathlib.Analysis.Complex.RemovableSingularity import Mathlib.Analysis.PSeriesComplex #align_import number_theory.zeta_function from "leanprover-community/mathlib"@"57f9349f2fe19d2de7207e99b0341808d977cdcf" o...
Mathlib/NumberTheory/LSeries/RiemannZeta.lean
179
189
theorem completedZeta_eq_tsum_of_one_lt_re {s : β„‚} (hs : 1 < re s) : completedRiemannZeta s = (Ο€ : β„‚) ^ (-s / 2) * Gamma (s / 2) * βˆ‘' n : β„•, 1 / (n : β„‚) ^ s := by
have := (hasSum_nat_completedCosZeta 0 hs).tsum_eq.symm simp only [QuotientAddGroup.mk_zero, completedCosZeta_zero] at this simp only [this, Gammaℝ_def, mul_zero, zero_mul, Real.cos_zero, ofReal_one, mul_one, mul_one_div, ← tsum_mul_left] congr 1 with n split_ifs with h Β· simp only [h, Nat.cast_zero, z...
[ " completedCosZeta 0 s = completedRiemannZeta s", " completedCosZetaβ‚€ 0 s = completedRiemannZetaβ‚€ s", " completedRiemannZeta s = completedRiemannZetaβ‚€ s - 1 / s - 1 / (1 - s)", " completedRiemannZetaβ‚€ (1 - s) = completedRiemannZetaβ‚€ s", " completedRiemannZeta (1 - s) = completedRiemannZeta s", " cosZeta 0...
[ " completedCosZeta 0 s = completedRiemannZeta s", " completedCosZetaβ‚€ 0 s = completedRiemannZetaβ‚€ s", " completedRiemannZeta s = completedRiemannZetaβ‚€ s - 1 / s - 1 / (1 - s)", " completedRiemannZetaβ‚€ (1 - s) = completedRiemannZetaβ‚€ s", " completedRiemannZeta (1 - s) = completedRiemannZeta s", " cosZeta 0...
import Mathlib.Data.Nat.Bitwise import Mathlib.SetTheory.Game.Birthday import Mathlib.SetTheory.Game.Impartial #align_import set_theory.game.nim from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" noncomputable section universe u namespace SetTheory open scoped PGame namespace PGame...
Mathlib/SetTheory/Game/Nim.lean
111
111
theorem moveLeft_nim {o : Ordinal} (i) : (nim o).moveLeft (toLeftMovesNim i) = nim i := by
simp
[ " let_fun this := β‹―;\n nim o =\n mk (Quotient.out o).Ξ± (Quotient.out o).Ξ± (fun oβ‚‚ => nim (typein (fun x x_1 => x < x_1) oβ‚‚)) fun oβ‚‚ =>\n nim (typein (fun x x_1 => x < x_1) oβ‚‚)", " let_fun this := β‹―;\n (mk (Quotient.out o).Ξ± (Quotient.out o).Ξ±\n (fun oβ‚‚ =>\n let_fun x := β‹―;\n nim (type...
[ " let_fun this := β‹―;\n nim o =\n mk (Quotient.out o).Ξ± (Quotient.out o).Ξ± (fun oβ‚‚ => nim (typein (fun x x_1 => x < x_1) oβ‚‚)) fun oβ‚‚ =>\n nim (typein (fun x x_1 => x < x_1) oβ‚‚)", " let_fun this := β‹―;\n (mk (Quotient.out o).Ξ± (Quotient.out o).Ξ±\n (fun oβ‚‚ =>\n let_fun x := β‹―;\n nim (type...
import Mathlib.Algebra.Field.Basic import Mathlib.Deprecated.Subring #align_import deprecated.subfield from "leanprover-community/mathlib"@"bd9851ca476957ea4549eb19b40e7b5ade9428cc" variable {F : Type*} [Field F] (S : Set F) structure IsSubfield extends IsSubring S : Prop where inv_mem : βˆ€ {x : F}, x ∈ S β†’ x⁻...
Mathlib/Deprecated/Subfield.lean
134
137
theorem closure_subset {T : Set F} (hT : IsSubfield T) (H : S βŠ† T) : closure S βŠ† T := by
rintro _ ⟨p, hp, q, hq, hq0, rfl⟩ exact hT.div_mem (Ring.closure_subset hT.toIsSubring H hp) (Ring.closure_subset hT.toIsSubring H hq)
[ " x / y ∈ S", " x * y⁻¹ ∈ S", " a ^ n ∈ s", " a ^ Int.ofNat n ∈ s", " a ^ ↑n ∈ s", " a ^ Int.negSucc n ∈ s", " (a ^ (n + 1))⁻¹ ∈ s", " f a⁻¹ ∈ s", " (f a)⁻¹ ∈ s", " IsSubfield (Set.range ⇑f)", " IsSubfield (⇑f '' Set.univ)", " βˆ€ {a b : F}, a ∈ closure S β†’ b ∈ closure S β†’ a * b ∈ closure S", ...
[ " x / y ∈ S", " x * y⁻¹ ∈ S", " a ^ n ∈ s", " a ^ Int.ofNat n ∈ s", " a ^ ↑n ∈ s", " a ^ Int.negSucc n ∈ s", " (a ^ (n + 1))⁻¹ ∈ s", " f a⁻¹ ∈ s", " (f a)⁻¹ ∈ s", " IsSubfield (Set.range ⇑f)", " IsSubfield (⇑f '' Set.univ)", " βˆ€ {a b : F}, a ∈ closure S β†’ b ∈ closure S β†’ a * b ∈ closure S", ...
import Mathlib.Order.Bounds.Basic import Mathlib.Order.WellFounded import Mathlib.Data.Set.Image import Mathlib.Order.Interval.Set.Basic import Mathlib.Data.Set.Lattice #align_import order.conditionally_complete_lattice.basic from "leanprover-community/mathlib"@"29cb56a7b35f72758b05a30490e1f10bd62c35c1" open Func...
Mathlib/Order/ConditionallyCompleteLattice/Basic.lean
95
104
theorem WithTop.coe_sInf' [InfSet Ξ±] {s : Set Ξ±} (hs : s.Nonempty) (h's : BddBelow s) : ↑(sInf s) = (sInf ((fun (a : Ξ±) ↦ ↑a) '' s) : WithTop Ξ±) := by
obtain ⟨x, hx⟩ := hs change _ = ite _ _ _ split_ifs with h · rcases h with h1 | h2 · cases h1 (mem_image_of_mem _ hx) · exact (h2 (Monotone.map_bddBelow coe_mono h's)).elim · rw [preimage_image_eq] exact Option.some_injective _
[ " Β¬(s βŠ† {⊀} ∨ Β¬BddBelow s)", " βˆ… βŠ† {⊀} ∨ Β¬BddBelow βˆ…", " β¨… i, f i = ⊀", " ↑(sInf s) = sInf ((fun a => ↑a) '' s)", " ↑(sInf s) =\n if (fun a => ↑a) '' s βŠ† {⊀} ∨ Β¬BddBelow ((fun a => ↑a) '' s) then ⊀\n else ↑(sInf ((fun a => ↑a) ⁻¹' ((fun a => ↑a) '' s)))", " ↑(sInf s) = ⊀", " ↑(sInf s) = ↑(sInf ((f...
[ " Β¬(s βŠ† {⊀} ∨ Β¬BddBelow s)", " βˆ… βŠ† {⊀} ∨ Β¬BddBelow βˆ…", " β¨… i, f i = ⊀" ]
import Mathlib.Order.Bounds.Basic import Mathlib.Order.Hom.Set #align_import order.bounds.order_iso from "leanprover-community/mathlib"@"a59dad53320b73ef180174aae867addd707ef00e" set_option autoImplicit true open Set namespace OrderIso variable [Preorder Ξ±] [Preorder Ξ²] (f : Ξ± ≃o Ξ²) theorem upperBounds_image {...
Mathlib/Order/Bounds/OrderIso.lean
55
56
theorem isLUB_preimage {s : Set Ξ²} {x : Ξ±} : IsLUB (f ⁻¹' s) x ↔ IsLUB s (f x) := by
rw [← f.symm_symm, ← image_eq_preimage, isLUB_image]
[ " βˆ€ {x y : Ξ±}, f x ≀ f y ↔ x ≀ y", " βˆ€ {x y : Ξ²}, f.symm x ≀ f.symm y ↔ x ≀ y", " IsLUB (⇑f '' s) (f x) ↔ IsLUB s x", " IsLUB (⇑f ⁻¹' s) x ↔ IsLUB s (f x)" ]
[ " βˆ€ {x y : Ξ±}, f x ≀ f y ↔ x ≀ y", " βˆ€ {x y : Ξ²}, f.symm x ≀ f.symm y ↔ x ≀ y", " IsLUB (⇑f '' s) (f x) ↔ IsLUB s x" ]
import Mathlib.Algebra.Lie.Abelian #align_import algebra.lie.tensor_product from "leanprover-community/mathlib"@"657df4339ae6ceada048c8a2980fb10e393143ec" suppress_compilation universe u v w w₁ wβ‚‚ w₃ variable {R : Type u} [CommRing R] open LieModule namespace TensorProduct open scoped TensorProduct namespace...
Mathlib/Algebra/Lie/TensorProduct.lean
125
127
theorem liftLie_apply (f : M →ₗ⁅R,L⁆ N β†’β‚—[R] P) (m : M) (n : N) : liftLie R L M N P f (m βŠ—β‚œ n) = f m n := by
simp only [coe_liftLie_eq_lift_coe, LieModuleHom.coe_toLinearMap, lift_apply]
[ " ⁅x + y, t⁆ = ⁅x, t⁆ + ⁅y, t⁆", " (LinearMap.rTensor N ((toEnd R L M) x)) t + (LinearMap.rTensor N ((toEnd R L M) y)) t +\n ((LinearMap.lTensor M ((toEnd R L N) x)) t + (LinearMap.lTensor M ((toEnd R L N) y)) t) =\n (LinearMap.rTensor N ((toEnd R L M) x)) t + (LinearMap.lTensor M ((toEnd R L N) x)) t +\n...
[ " ⁅x + y, t⁆ = ⁅x, t⁆ + ⁅y, t⁆", " (LinearMap.rTensor N ((toEnd R L M) x)) t + (LinearMap.rTensor N ((toEnd R L M) y)) t +\n ((LinearMap.lTensor M ((toEnd R L N) x)) t + (LinearMap.lTensor M ((toEnd R L N) y)) t) =\n (LinearMap.rTensor N ((toEnd R L M) x)) t + (LinearMap.lTensor M ((toEnd R L N) x)) t +\n...
import Mathlib.Analysis.Calculus.LineDeriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Measurable open MeasureTheory variable {π•œ : Type*} [NontriviallyNormedField π•œ] [LocallyCompactSpace π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] [MeasurableSpace E] [OpensMeasurableSpace E] {F : Type*} [Norm...
Mathlib/Analysis/Calculus/LineDeriv/Measurable.lean
83
90
theorem measurable_lineDeriv_uncurry [MeasurableSpace F] [BorelSpace F] (hf : Continuous f) : Measurable (fun (p : E Γ— E) ↦ lineDeriv π•œ f p.1 p.2) := by
borelize π•œ let g : (E Γ— E) β†’ π•œ β†’ F := fun p t ↦ f (p.1 + t β€’ p.2) have : Continuous g.uncurry := hf.comp <| (continuous_fst.comp continuous_fst).add <| continuous_snd.smul (continuous_snd.comp continuous_fst) exact (measurable_deriv_with_param this).comp measurable_prod_mk_right
[ " MeasurableSet {x | LineDifferentiableAt π•œ f x v}", " Continuous (Function.uncurry g)", " Continuous fun x => x.1 + x.2 β€’ v", " Measurable fun x => lineDeriv π•œ f x v", " StronglyMeasurable fun x => lineDeriv π•œ f x v", " MeasurableSet {p | LineDifferentiableAt π•œ f p.1 p.2}", " Measurable fun p => li...
[ " MeasurableSet {x | LineDifferentiableAt π•œ f x v}", " Continuous (Function.uncurry g)", " Continuous fun x => x.1 + x.2 β€’ v", " Measurable fun x => lineDeriv π•œ f x v", " StronglyMeasurable fun x => lineDeriv π•œ f x v", " MeasurableSet {p | LineDifferentiableAt π•œ f p.1 p.2}" ]
import Mathlib.Algebra.DualNumber import Mathlib.Algebra.QuaternionBasis import Mathlib.Data.Complex.Module import Mathlib.LinearAlgebra.CliffordAlgebra.Conjugation import Mathlib.LinearAlgebra.CliffordAlgebra.Star import Mathlib.LinearAlgebra.QuadraticForm.Prod #align_import linear_algebra.clifford_algebra.equivs fr...
Mathlib/LinearAlgebra/CliffordAlgebra/Equivs.lean
106
107
theorem involute_eq_id : (involute : CliffordAlgebra (0 : QuadraticForm R Unit) →ₐ[R] _) = AlgHom.id R _ := by
ext; simp
[ " x * y = y * x", " (algebraMap R (CliffordAlgebra 0)) r * y = y * (algebraMap R (CliffordAlgebra 0)) r", " (ΞΉ 0) x * y = y * (ΞΉ 0) x", " (x₁ + xβ‚‚) * y = y * (x₁ + xβ‚‚)", " x₁ * xβ‚‚ * y = y * (x₁ * xβ‚‚)", " reverse x = x", " reverse ((algebraMap R (CliffordAlgebra 0)) r) = (algebraMap R (CliffordAlgebra 0)...
[ " x * y = y * x", " (algebraMap R (CliffordAlgebra 0)) r * y = y * (algebraMap R (CliffordAlgebra 0)) r", " (ΞΉ 0) x * y = y * (ΞΉ 0) x", " (x₁ + xβ‚‚) * y = y * (x₁ + xβ‚‚)", " x₁ * xβ‚‚ * y = y * (x₁ * xβ‚‚)", " reverse x = x", " reverse ((algebraMap R (CliffordAlgebra 0)) r) = (algebraMap R (CliffordAlgebra 0)...
import Mathlib.NumberTheory.LegendreSymbol.QuadraticChar.Basic import Mathlib.NumberTheory.GaussSum #align_import number_theory.legendre_symbol.quadratic_char.gauss_sum from "leanprover-community/mathlib"@"5b2fe80501ff327b9109fb09b7cc8c325cd0d7d9" section SpecialValues open ZMod MulChar variable {F : Type*} ...
Mathlib/NumberTheory/LegendreSymbol/QuadraticChar/GaussSum.lean
130
143
theorem FiniteField.isSquare_odd_prime_iff (hF : ringChar F β‰  2) {p : β„•} [Fact p.Prime] (hp : p β‰  2) : IsSquare (p : F) ↔ quadraticChar (ZMod p) (Ο‡β‚„ (Fintype.card F) * Fintype.card F) β‰  -1 := by
classical by_cases hFp : ringChar F = p Β· rw [show (p : F) = 0 by rw [← hFp]; exact ringChar.Nat.cast_ringChar] simp only [isSquare_zero, Ne, true_iff_iff, map_mul] obtain ⟨n, _, hc⟩ := FiniteField.card F (ringChar F) have hchar : ringChar F = ringChar (ZMod p) := by rw [hFp]; exact (ringChar_zmod_n ...
[ " IsSquare 2 ↔ Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " (if Fintype.card F % 2 = 0 then 0 else if Fintype.card F % 8 = 1 ∨ Fintype.card F % 8 = 7 then 1 else -1) = 1 ↔\n Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " -1 β‰  1", " Fintype.c...
[ " IsSquare 2 ↔ Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " (if Fintype.card F % 2 = 0 then 0 else if Fintype.card F % 8 = 1 ∨ Fintype.card F % 8 = 7 then 1 else -1) = 1 ↔\n Fintype.card F % 8 β‰  3 ∧ Fintype.card F % 8 β‰  5", " -1 β‰  1", " Fintype.c...
import Mathlib.Data.Set.Basic open Function universe u v namespace Set section Nontrivial variable {Ξ± : Type u} {a : Ξ±} {s t : Set Ξ±} protected def Nontrivial (s : Set Ξ±) : Prop := βˆƒ x ∈ s, βˆƒ y ∈ s, x β‰  y #align set.nontrivial Set.Nontrivial theorem nontrivial_of_mem_mem_ne {x y} (hx : x ∈ s) (hy : y ∈...
Mathlib/Data/Set/Subsingleton.lean
194
198
theorem Nontrivial.exists_ne (hs : s.Nontrivial) (z) : βˆƒ x ∈ s, x β‰  z := by
by_contra! H rcases hs with ⟨x, hx, y, hy, hxy⟩ rw [H x hx, H y hy] at hxy exact hxy rfl
[ " βˆƒ x ∈ s, x β‰  z", " False" ]
[]
import Mathlib.GroupTheory.Perm.Cycle.Basic #align_import group_theory.perm.cycle.basic from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" open Equiv Function Finset variable {ΞΉ Ξ± Ξ² : Type*} namespace Equiv.Perm section Generation variable [Finite Ξ²] open Subgroup theorem closure...
Mathlib/GroupTheory/Perm/Closure.lean
96
108
theorem closure_cycle_coprime_swap {n : β„•} {Οƒ : Perm Ξ±} (h0 : Nat.Coprime n (Fintype.card Ξ±)) (h1 : IsCycle Οƒ) (h2 : Οƒ.support = Finset.univ) (x : Ξ±) : closure ({Οƒ, swap x ((Οƒ ^ n) x)} : Set (Perm Ξ±)) = ⊀ := by
rw [← Finset.card_univ, ← h2, ← h1.orderOf] at h0 cases' exists_pow_eq_self_of_coprime h0 with m hm have h2' : (Οƒ ^ n).support = ⊀ := Eq.trans (support_pow_coprime h0) h2 have h1' : IsCycle ((Οƒ ^ n) ^ (m : β„€)) := by rwa [← hm] at h1 replace h1' : IsCycle (Οƒ ^ n) := h1'.of_pow (le_trans (support_pow_le Οƒ ...
[ " closure {Οƒ | Οƒ.IsCycle} = ⊀", " closure {Οƒ, swap x (Οƒ x)} = ⊀", " βˆ€ (n : β„•), swap ((Οƒ ^ n) x) ((Οƒ ^ (n + 1)) x) ∈ H", " swap ((Οƒ ^ n) x) ((Οƒ ^ (n + 1)) x) ∈ H", " swap ((Οƒ ^ 0) x) ((Οƒ ^ (0 + 1)) x) ∈ H", " swap ((Οƒ ^ (n + 1)) x) ((Οƒ ^ (n + 1 + 1)) x) ∈ H", " swap ((Οƒ ^ (n + 1)) x) ((Οƒ ^ (n + 1 + 1)) x...
[ " closure {Οƒ | Οƒ.IsCycle} = ⊀", " closure {Οƒ, swap x (Οƒ x)} = ⊀", " βˆ€ (n : β„•), swap ((Οƒ ^ n) x) ((Οƒ ^ (n + 1)) x) ∈ H", " swap ((Οƒ ^ n) x) ((Οƒ ^ (n + 1)) x) ∈ H", " swap ((Οƒ ^ 0) x) ((Οƒ ^ (0 + 1)) x) ∈ H", " swap ((Οƒ ^ (n + 1)) x) ((Οƒ ^ (n + 1 + 1)) x) ∈ H", " swap ((Οƒ ^ (n + 1)) x) ((Οƒ ^ (n + 1 + 1)) x...
import Mathlib.Data.Set.Lattice #align_import data.set.intervals.disjoint from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432" universe u v w variable {ΞΉ : Sort u} {Ξ± : Type v} {Ξ² : Type w} open Set open OrderDual (toDual) namespace Set section LinearOrder variable [LinearOrder Ξ±] ...
Mathlib/Order/Interval/Set/Disjoint.lean
149
151
theorem Ioc_disjoint_Ioc : Disjoint (Ioc a₁ aβ‚‚) (Ioc b₁ bβ‚‚) ↔ min aβ‚‚ bβ‚‚ ≀ max a₁ b₁ := by
have h : _ ↔ min (toDual a₁) (toDual b₁) ≀ max (toDual aβ‚‚) (toDual bβ‚‚) := Ico_disjoint_Ico simpa only [dual_Ico] using h
[ " Disjoint (Ico a₁ aβ‚‚) (Ico b₁ bβ‚‚) ↔ min aβ‚‚ bβ‚‚ ≀ max a₁ b₁", " Disjoint (Ioc a₁ aβ‚‚) (Ioc b₁ bβ‚‚) ↔ min aβ‚‚ bβ‚‚ ≀ max a₁ b₁" ]
[ " Disjoint (Ico a₁ aβ‚‚) (Ico b₁ bβ‚‚) ↔ min aβ‚‚ bβ‚‚ ≀ max a₁ b₁" ]
import Mathlib.Order.MinMax import Mathlib.Data.Set.Subsingleton import Mathlib.Tactic.Says #align_import data.set.intervals.basic from "leanprover-community/mathlib"@"3ba15165bd6927679be7c22d6091a87337e3cd0c" open Function open OrderDual (toDual ofDual) variable {Ξ± Ξ² : Type*} namespace Set section Preorder v...
Mathlib/Order/Interval/Set/Basic.lean
186
186
theorem left_mem_Ico : a ∈ Ico a b ↔ a < b := by
simp [le_refl]
[ " Decidable (x ∈ Ioo a b)", " Decidable (x ∈ Ico a b)", " Decidable (x ∈ Iio b)", " Decidable (x ∈ Icc a b)", " Decidable (x ∈ Iic b)", " Decidable (x ∈ Ioc a b)", " Decidable (x ∈ Ici a)", " Decidable (x ∈ Ioi a)", " a ∈ Ioo a b ↔ False", " a ∈ Ico a b ↔ a < b" ]
[ " Decidable (x ∈ Ioo a b)", " Decidable (x ∈ Ico a b)", " Decidable (x ∈ Iio b)", " Decidable (x ∈ Icc a b)", " Decidable (x ∈ Iic b)", " Decidable (x ∈ Ioc a b)", " Decidable (x ∈ Ici a)", " Decidable (x ∈ Ioi a)", " a ∈ Ioo a b ↔ False" ]
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Top...
Mathlib/Analysis/Calculus/Deriv/Comp.lean
133
136
theorem HasDerivAt.scomp_hasDerivWithinAt_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivWithinAt h h' s x) (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by
rw [hy] at hg; exact hg.scomp_hasDerivWithinAt x hh
[ " HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L", " HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x", " HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x", " HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x" ]
[ " HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L", " HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x", " HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x", " HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x" ]
import Mathlib.Data.List.Lattice import Mathlib.Data.List.Range import Mathlib.Data.Bool.Basic #align_import data.list.intervals from "leanprover-community/mathlib"@"7b78d1776212a91ecc94cf601f83bdcc46b04213" open Nat namespace List def Ico (n m : β„•) : List β„• := range' n (m - n) #align list.Ico List.Ico names...
Mathlib/Data/List/Intervals.lean
46
48
theorem length (n m : β„•) : length (Ico n m) = m - n := by
dsimp [Ico] simp [length_range', autoParam]
[ " Ico 0 n = range n", " (Ico n m).length = m - n", " (range' n (m - n)).length = m - n" ]
[ " Ico 0 n = range n" ]
import Mathlib.Algebra.ContinuedFractions.Basic import Mathlib.Algebra.GroupWithZero.Basic #align_import algebra.continued_fractions.translations from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad" namespace GeneralizedContinuedFraction section WithDivisionRing variable {K : Type*}...
Mathlib/Algebra/ContinuedFractions/Translations.lean
166
167
theorem first_denominator_eq {gp : Pair K} (zeroth_s_eq : g.s.get? 0 = some gp) : g.denominators 1 = gp.b := by
simp [denom_eq_conts_b, first_continuant_eq zeroth_s_eq]
[ " βˆƒ conts, g.continuants n = conts ∧ conts.a = A", " βˆƒ conts, g.continuants n = conts ∧ conts.b = B", " g.convergents 0 = g.h", " g.continuantsAux 2 = { a := gp.b * g.h + gp.a, b := gp.b }", " g.continuants 1 = { a := gp.b * g.h + gp.a, b := gp.b }", " g.numerators 1 = gp.b * g.h + gp.a", " g.denominato...
[ " βˆƒ conts, g.continuants n = conts ∧ conts.a = A", " βˆƒ conts, g.continuants n = conts ∧ conts.b = B", " g.convergents 0 = g.h", " g.continuantsAux 2 = { a := gp.b * g.h + gp.a, b := gp.b }", " g.continuants 1 = { a := gp.b * g.h + gp.a, b := gp.b }", " g.numerators 1 = gp.b * g.h + gp.a" ]
import Mathlib.Data.Set.Function import Mathlib.Analysis.BoundedVariation #align_import analysis.constant_speed from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" open scoped NNReal ENNReal open Set MeasureTheory Classical variable {Ξ± : Type*} [LinearOrder Ξ±] {E : Type*} [PseudoEMetr...
Mathlib/Analysis/ConstantSpeed.lean
102
137
theorem HasConstantSpeedOnWith.union {t : Set ℝ} (hfs : HasConstantSpeedOnWith f s l) (hft : HasConstantSpeedOnWith f t l) {x : ℝ} (hs : IsGreatest s x) (ht : IsLeast t x) : HasConstantSpeedOnWith f (s βˆͺ t) l := by
rw [hasConstantSpeedOnWith_iff_ordered] at hfs hft ⊒ rintro z (zs | zt) y (ys | yt) zy Β· have : (s βˆͺ t) ∩ Icc z y = s ∩ Icc z y := by ext w; constructor Β· rintro ⟨ws | wt, zw, wy⟩ Β· exact ⟨ws, zw, wy⟩ Β· exact ⟨(le_antisymm (wy.trans (hs.2 ys)) (ht.2 wt)).symm β–Έ hs.1, zw, wy⟩ Β· r...
[ " BoundedVariationOn f (s ∩ Icc x y)", " HasConstantSpeedOnWith f s l", " eVariationOn f (s ∩ Icc x y) = ENNReal.ofReal (↑l * (y - x))", " eVariationOn f (s ∩ Icc x x) = ENNReal.ofReal (↑l * (x - x))", " 0 = ENNReal.ofReal (↑l * (x - x))", " HasConstantSpeedOnWith f s l ↔\n βˆ€ ⦃x : ℝ⦄, x ∈ s β†’ βˆ€ ⦃y : ℝ⦄...
[ " BoundedVariationOn f (s ∩ Icc x y)", " HasConstantSpeedOnWith f s l", " eVariationOn f (s ∩ Icc x y) = ENNReal.ofReal (↑l * (y - x))", " eVariationOn f (s ∩ Icc x x) = ENNReal.ofReal (↑l * (x - x))", " 0 = ENNReal.ofReal (↑l * (x - x))", " HasConstantSpeedOnWith f s l ↔\n βˆ€ ⦃x : ℝ⦄, x ∈ s β†’ βˆ€ ⦃y : ℝ⦄...
import Mathlib.Analysis.LocallyConvex.WithSeminorms import Mathlib.Topology.Semicontinuous import Mathlib.Topology.Baire.Lemmas open Filter Topology Set ContinuousLinearMap section defs class BarrelledSpace (π•œ E : Type*) [SeminormedRing π•œ] [AddGroup E] [SMul π•œ E] [TopologicalSpace E] : Prop where con...
Mathlib/Analysis/LocallyConvex/Barrelled.lean
93
103
theorem Seminorm.continuous_iSup {ΞΉ : Sort*} {π•œ E : Type*} [NormedField π•œ] [AddCommGroup E] [Module π•œ E] [TopologicalSpace E] [BarrelledSpace π•œ E] (p : ΞΉ β†’ Seminorm π•œ E) (hp : βˆ€ i, Continuous (p i)) (bdd : BddAbove (range p)) : Continuous (⨆ i, p i) := by
rw [← Seminorm.coe_iSup_eq bdd] refine Seminorm.continuous_of_lowerSemicontinuous _ ?_ rw [Seminorm.coe_iSup_eq bdd] rw [Seminorm.bddAbove_range_iff] at bdd convert lowerSemicontinuous_ciSup (f := fun i x ↦ p i x) bdd (fun i ↦ (hp i).lowerSemicontinuous) exact iSup_apply
[ " Continuous (⨆ i, ⇑(p i))", " Continuous ⇑(⨆ i, p i)", " LowerSemicontinuous ⇑(⨆ i, p i)", " LowerSemicontinuous (⨆ i, ⇑(p i))", " (⨆ i, ⇑(p i)) x✝ = ⨆ i, (p i) x✝" ]
[]
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Analysis.SpecialFunctions.Complex.LogDeriv import Mathlib.Analysis.Calculus.FDeriv.Extend import Mathlib.Analysis.Calculus.Deriv.Prod import Mathlib.Analysis.SpecialFunctions.Log.Deriv import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv #...
Mathlib/Analysis/SpecialFunctions/Pow/Deriv.lean
276
285
theorem hasStrictFDerivAt_rpow_of_pos (p : ℝ Γ— ℝ) (hp : 0 < p.1) : HasStrictFDerivAt (fun x : ℝ Γ— ℝ => x.1 ^ x.2) ((p.2 * p.1 ^ (p.2 - 1)) β€’ ContinuousLinearMap.fst ℝ ℝ ℝ + (p.1 ^ p.2 * log p.1) β€’ ContinuousLinearMap.snd ℝ ℝ ℝ) p := by
have : (fun x : ℝ Γ— ℝ => x.1 ^ x.2) =αΆ [𝓝 p] fun x => exp (log x.1 * x.2) := (continuousAt_fst.eventually (lt_mem_nhds hp)).mono fun p hp => rpow_def_of_pos hp _ refine HasStrictFDerivAt.congr_of_eventuallyEq ?_ this.symm convert ((hasStrictFDerivAt_fst.log hp.ne').mul hasStrictFDerivAt_snd).exp using 1 rw...
[ " HasStrictFDerivAt (fun x => x.1 ^ x.2)\n ((p.2 * p.1 ^ (p.2 - 1)) β€’ ContinuousLinearMap.fst ℝ ℝ ℝ + (p.1 ^ p.2 * p.1.log) β€’ ContinuousLinearMap.snd ℝ ℝ ℝ) p", " HasStrictFDerivAt (fun x => rexp (x.1.log * x.2))\n ((p.2 * p.1 ^ (p.2 - 1)) β€’ ContinuousLinearMap.fst ℝ ℝ ℝ + (p.1 ^ p.2 * p.1.log) β€’ Continuous...
[]
import Mathlib.RingTheory.RootsOfUnity.Basic universe u variable {L : Type u} [CommRing L] [IsDomain L] variable (n : β„•+) theorem rootsOfUnity.integer_power_of_ringEquiv (g : L ≃+* L) : βˆƒ m : β„€, βˆ€ t : rootsOfUnity n L, g (t : LΛ£) = (t ^ m : LΛ£) := by obtain ⟨m, hm⟩ := MonoidHom.map_cyclic ((g : L ≃* L).re...
Mathlib/NumberTheory/Cyclotomic/CyclotomicCharacter.lean
120
125
theorem toFun_unique (g : L ≃+* L) (c : ZMod (Fintype.card (rootsOfUnity n L))) (hc : βˆ€ t : rootsOfUnity n L, g (t : LΛ£) = (t ^ c.val : LΛ£)) : c = Ο‡β‚€ n g := by
apply IsCyclic.ext rfl (fun ΞΆ ↦ ?_) specialize hc ΞΆ suffices ((ΞΆ ^ c.val : LΛ£) : L) = (ΞΆ ^ (Ο‡β‚€ n g).val : LΛ£) by exact_mod_cast this rw [← toFun_spec g ΞΆ, hc]
[ " βˆƒ m, βˆ€ (t : β†₯(rootsOfUnity n L)), g ↑↑t = ↑(↑t ^ m)", " βˆƒ m, βˆ€ t ∈ rootsOfUnity n L, g ↑t = ↑(t ^ m)", " g ↑↑t = ↑(↑t ^ (Ο‡β‚€ n g).val)", " ↑↑(t ^ ModularCyclotomicCharacter_aux g n) =\n ↑(↑t ^ (ModularCyclotomicCharacter_aux g n % ↑(Fintype.card β†₯(rootsOfUnity n L))))", " c = Ο‡β‚€ n g", " ΞΆ ^ c.val = ΞΆ ...
[ " βˆƒ m, βˆ€ (t : β†₯(rootsOfUnity n L)), g ↑↑t = ↑(↑t ^ m)", " βˆƒ m, βˆ€ t ∈ rootsOfUnity n L, g ↑t = ↑(t ^ m)", " g ↑↑t = ↑(↑t ^ (Ο‡β‚€ n g).val)", " ↑↑(t ^ ModularCyclotomicCharacter_aux g n) =\n ↑(↑t ^ (ModularCyclotomicCharacter_aux g n % ↑(Fintype.card β†₯(rootsOfUnity n L))))" ]
import Mathlib.Order.BooleanAlgebra import Mathlib.Logic.Equiv.Basic #align_import order.symm_diff from "leanprover-community/mathlib"@"6eb334bd8f3433d5b08ba156b8ec3e6af47e1904" open Function OrderDual variable {ΞΉ Ξ± Ξ² : Type*} {Ο€ : ΞΉ β†’ Type*} def symmDiff [Sup Ξ±] [SDiff Ξ±] (a b : Ξ±) : Ξ± := a \ b βŠ” b \ a #ali...
Mathlib/Order/SymmDiff.lean
256
256
theorem top_bihimp : ⊀ ⇔ a = a := by
rw [bihimp_comm, bihimp_top]
[ " βˆ€ (p q : Bool), p βˆ† q = xor p q", " a ⇔ b = b ⇔ a", " a ⇔ a = ⊀", " a ⇔ ⊀ = a", " ⊀ ⇔ a = a" ]
[ " βˆ€ (p q : Bool), p βˆ† q = xor p q", " a ⇔ b = b ⇔ a", " a ⇔ a = ⊀", " a ⇔ ⊀ = a" ]
import Mathlib.MeasureTheory.Integral.SetIntegral import Mathlib.MeasureTheory.Measure.Lebesgue.Basic import Mathlib.MeasureTheory.Measure.Haar.Unique #align_import measure_theory.measure.lebesgue.integral from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844" open Set Filter MeasureTheory...
Mathlib/MeasureTheory/Measure/Lebesgue/Integral.lean
96
99
theorem integral_comp_neg_Ioi {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (c : ℝ) (f : ℝ β†’ E) : (∫ x in Ioi c, f (-x)) = ∫ x in Iic (-c), f x := by
rw [← neg_neg c, ← integral_comp_neg_Iic] simp only [neg_neg]
[ " ∫ (x : ℝ) in Iic c, f (-x) = ∫ (x : ℝ) in Ioi (-c), f x", " ∫ (x : ℝ) in Ioi c, f (-x) = ∫ (x : ℝ) in Iic (-c), f x", " ∫ (x : ℝ) in Iic (-c), f (- -x) = ∫ (x : ℝ) in Iic (- - -c), f x" ]
[ " ∫ (x : ℝ) in Iic c, f (-x) = ∫ (x : ℝ) in Ioi (-c), f x" ]
import Mathlib.MeasureTheory.Group.GeometryOfNumbers import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls import Mathlib.NumberTheory.NumberField.CanonicalEmbedding.Basic #align_import number_theory.number_field.canonical_embedding from "leanprover-community/mathlib"@"60da01b41bbe4206f05d34fd70c8dd7498717a30" ...
Mathlib/NumberTheory/NumberField/CanonicalEmbedding/ConvexBody.lean
306
310
theorem convexBodySumFun_add_le (x y : E K) : convexBodySumFun (x + y) ≀ convexBodySumFun x + convexBodySumFun y := by
simp_rw [convexBodySumFun, ← Finset.sum_add_distrib, ← mul_add] exact Finset.sum_le_sum fun _ _ ↦ mul_le_mul_of_nonneg_left (normAtPlace_add_le _ x y) (Nat.cast_pos.mpr mult_pos).le
[ " convexBodySumFun x = βˆ‘ w : { w // w.IsReal }, β€–x.1 wβ€– + 2 * βˆ‘ w : { w // w.IsComplex }, β€–x.2 wβ€–", " βˆ‘ x_1 ∈ Finset.subtype (fun x => x.IsReal) Finset.univ, ↑(↑x_1).mult * (normAtPlace ↑x_1) x +\n βˆ‘ x_1 ∈ Finset.subtype (fun x => x.IsComplex) Finset.univ, ↑(↑x_1).mult * (normAtPlace ↑x_1) x =\n βˆ‘ x_1 ∈ F...
[ " convexBodySumFun x = βˆ‘ w : { w // w.IsReal }, β€–x.1 wβ€– + 2 * βˆ‘ w : { w // w.IsComplex }, β€–x.2 wβ€–", " βˆ‘ x_1 ∈ Finset.subtype (fun x => x.IsReal) Finset.univ, ↑(↑x_1).mult * (normAtPlace ↑x_1) x +\n βˆ‘ x_1 ∈ Finset.subtype (fun x => x.IsComplex) Finset.univ, ↑(↑x_1).mult * (normAtPlace ↑x_1) x =\n βˆ‘ x_1 ∈ F...
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Topology.Algebra.Module.Basic #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Metric Set Function Filter open scoped NNReal Topology instance Real.punctured_nhds_module_neBot {E ...
Mathlib/Analysis/NormedSpace/Real.lean
76
78
theorem frontier_ball (x : E) {r : ℝ} (hr : r β‰  0) : frontier (ball x r) = sphere x r := by
rw [frontier, closure_ball x hr, isOpen_ball.interior_eq, closedBall_diff_ball]
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1", " β€–t β€’ xβ€– = t * β€–xβ€–", " dist (r β€’ x + (1 - r) β€’ y) x = β€–1 - rβ€– * β€–x - yβ€–", " β€–1 - rβ€– * β€–x - yβ€– = (1 - r) * dist y x", " (1 - r) * dist y x ≀ (1 - 0) * dist y x", " 0 ≀ r", " (1 - 0) * dist y x = dist y x", " closure (ball x r) = closedBall x r", " y ∈ closure (ball x r...
[ " β€–x‖⁻¹ β€’ x ∈ closedBall 0 1", " β€–t β€’ xβ€– = t * β€–xβ€–", " dist (r β€’ x + (1 - r) β€’ y) x = β€–1 - rβ€– * β€–x - yβ€–", " β€–1 - rβ€– * β€–x - yβ€– = (1 - r) * dist y x", " (1 - r) * dist y x ≀ (1 - 0) * dist y x", " 0 ≀ r", " (1 - 0) * dist y x = dist y x", " closure (ball x r) = closedBall x r", " y ∈ closure (ball x r...
import Mathlib.Order.Filter.Bases import Mathlib.Order.ConditionallyCompleteLattice.Basic #align_import order.filter.lift from "leanprover-community/mathlib"@"8631e2d5ea77f6c13054d9151d82b83069680cb1" open Set Classical Filter Function namespace Filter variable {Ξ± Ξ² Ξ³ : Type*} {ΞΉ : Sort*} section lift protect...
Mathlib/Order/Filter/Lift.lean
45
53
theorem HasBasis.mem_lift_iff {ΞΉ} {p : ΞΉ β†’ Prop} {s : ΞΉ β†’ Set Ξ±} {f : Filter Ξ±} (hf : f.HasBasis p s) {Ξ² : ΞΉ β†’ Type*} {pg : βˆ€ i, Ξ² i β†’ Prop} {sg : βˆ€ i, Ξ² i β†’ Set Ξ³} {g : Set Ξ± β†’ Filter Ξ³} (hg : βˆ€ i, (g <| s i).HasBasis (pg i) (sg i)) (gm : Monotone g) {s : Set Ξ³} : s ∈ f.lift g ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x ∧ sg...
refine (mem_biInf_of_directed ?_ ⟨univ, univ_sets _⟩).trans ?_ Β· intro t₁ ht₁ tβ‚‚ htβ‚‚ exact ⟨t₁ ∩ tβ‚‚, inter_mem ht₁ htβ‚‚, gm inter_subset_left, gm inter_subset_right⟩ Β· simp only [← (hg _).mem_iff] exact hf.exists_iff fun t₁ tβ‚‚ ht H => gm ht H
[ " ⊀.lift g = g univ", " s ∈ f.lift g ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x ∧ sg i x βŠ† s", " DirectedOn ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) f.sets", " βˆƒ z ∈ f.sets, ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) t₁ z ∧ ((fun s => g s) ⁻¹'o fun x x_1 => x β‰₯ x_1) tβ‚‚ z", " (βˆƒ i ∈ f.sets, s ∈ g i) ↔ βˆƒ i, p i ∧ βˆƒ x, pg i x...
[ " ⊀.lift g = g univ" ]
import Mathlib.Algebra.Module.Zlattice.Basic import Mathlib.NumberTheory.NumberField.Embeddings import Mathlib.NumberTheory.NumberField.FractionalIdeal #align_import number_theory.number_field.canonical_embedding from "leanprover-community/mathlib"@"60da01b41bbe4206f05d34fd70c8dd7498717a30" variable (K : Type*) [F...
Mathlib/NumberTheory/NumberField/CanonicalEmbedding/Basic.lean
185
187
theorem _root_.NumberField.mixedEmbedding_injective [NumberField K] : Function.Injective (NumberField.mixedEmbedding K) := by
exact RingHom.injective _
[ " Nontrivial (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚))", " finrank ℝ (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚)) = finrank β„š K", " Function.Injective ⇑(mixedEmbedding K)" ]
[ " Nontrivial (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚))", " finrank ℝ (({ w // w.IsReal } β†’ ℝ) Γ— ({ w // w.IsComplex } β†’ β„‚)) = finrank β„š K" ]
import Mathlib.Logic.Function.Iterate import Mathlib.Order.GaloisConnection import Mathlib.Order.Hom.Basic #align_import order.hom.order from "leanprover-community/mathlib"@"ba2245edf0c8bb155f1569fd9b9492a9b384cde6" namespace OrderHom variable {Ξ± Ξ² : Type*} section Preorder variable [Preorder Ξ±] instance [Sem...
Mathlib/Order/Hom/Order.lean
117
119
theorem coe_iSup {ΞΉ : Sort*} [CompleteLattice Ξ²] (f : ΞΉ β†’ Ξ± β†’o Ξ²) : ((⨆ i, f i : Ξ± β†’o Ξ²) : Ξ± β†’ Ξ²) = ⨆ i, (f i : Ξ± β†’ Ξ²) := by
funext x; simp [iSup_apply]
[ " ⇑(β¨… i, f i) = β¨… i, ⇑(f i)", " (β¨… i, f i) x = (β¨… i, ⇑(f i)) x", " ⇑(⨆ i, f i) = ⨆ i, ⇑(f i)", " (⨆ i, f i) x = (⨆ i, ⇑(f i)) x" ]
[ " ⇑(β¨… i, f i) = β¨… i, ⇑(f i)", " (β¨… i, f i) x = (β¨… i, ⇑(f i)) x" ]
import Mathlib.Algebra.BigOperators.Ring import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.Fin import Mathlib.GroupTheory.GroupAction.Pi import Mathlib.Logic.Equiv.Fin #align_import algebra.big_operators.fin from "leanprover-community/mathlib"@"cc5dd6244981976cc9da7afc4eee5682b037a013" open Fins...
Mathlib/Algebra/BigOperators/Fin.lean
136
138
theorem prod_univ_four [CommMonoid Ξ²] (f : Fin 4 β†’ Ξ²) : ∏ i, f i = f 0 * f 1 * f 2 * f 3 := by
rw [prod_univ_castSucc, prod_univ_three] rfl
[ " (List.ofFn f).prod = ∏ i : Fin n, f i", " ∏ i : Fin n, f i = (List.map f (List.finRange n)).prod", " ∏ i : Fin (n + 1), f i = f x * ∏ i : Fin n, f (x.succAbove i)", " f x * ∏ x_1 : Fin n, f (x.succAboveEmb x_1) = f x * ∏ i : Fin n, f (x.succAbove i)", " ∏ i : Fin (n + 1), f i = (∏ i : Fin n, f i.castSucc)...
[ " (List.ofFn f).prod = ∏ i : Fin n, f i", " ∏ i : Fin n, f i = (List.map f (List.finRange n)).prod", " ∏ i : Fin (n + 1), f i = f x * ∏ i : Fin n, f (x.succAbove i)", " f x * ∏ x_1 : Fin n, f (x.succAboveEmb x_1) = f x * ∏ i : Fin n, f (x.succAbove i)", " ∏ i : Fin (n + 1), f i = (∏ i : Fin n, f i.castSucc)...
import Mathlib.Algebra.Group.Subgroup.MulOpposite import Mathlib.Algebra.Group.Submonoid.Pointwise import Mathlib.GroupTheory.GroupAction.ConjAct #align_import group_theory.subgroup.pointwise from "leanprover-community/mathlib"@"e655e4ea5c6d02854696f97494997ba4c31be802" open Set open Pointwise variable {Ξ± G A S...
Mathlib/Algebra/Group/Subgroup/Pointwise.lean
89
102
theorem closure_induction_left {p : (x : G) β†’ x ∈ closure s β†’ Prop} (one : p 1 (one_mem _)) (mul_left : βˆ€ x (hx : x ∈ s), βˆ€ (y) hy, p y hy β†’ p (x * y) (mul_mem (subset_closure hx) hy)) (mul_left_inv : βˆ€ x (hx : x ∈ s), βˆ€ (y) hy, p y hy β†’ p (x⁻¹ * y) (mul_mem (inv_mem (subset_closure hx)) hy)) {x : G} ...
revert h simp_rw [← mem_toSubmonoid, closure_toSubmonoid] at * intro h induction h using Submonoid.closure_induction_left with | one => exact one | mul_left x hx y hy ih => cases hx with | inl hx => exact mul_left _ hx _ hy ih | inr hx => simpa only [inv_inv] using mul_left_inv _ hx _ hy ih
[ " a β€’ ↑s = ↑s", " x✝ ∈ a β€’ ↑s ↔ x✝ ∈ ↑s", " MulOpposite.op a β€’ ↑s = ↑s", " x✝ ∈ MulOpposite.op a β€’ ↑s ↔ x✝ ∈ ↑s", " ↑H * ↑H = ↑H", " ↑H / ↑H = ↑H", " s ∈ ↑(closure S)", " s⁻¹ ∈ closure S", " (closure S).toSubmonoid = Submonoid.closure (S βˆͺ S⁻¹)", " x ∈ Submonoid.closure (S βˆͺ S⁻¹)", " x⁻¹ ∈ Submo...
[ " a β€’ ↑s = ↑s", " x✝ ∈ a β€’ ↑s ↔ x✝ ∈ ↑s", " MulOpposite.op a β€’ ↑s = ↑s", " x✝ ∈ MulOpposite.op a β€’ ↑s ↔ x✝ ∈ ↑s", " ↑H * ↑H = ↑H", " ↑H / ↑H = ↑H", " s ∈ ↑(closure S)", " s⁻¹ ∈ closure S", " (closure S).toSubmonoid = Submonoid.closure (S βˆͺ S⁻¹)", " x ∈ Submonoid.closure (S βˆͺ S⁻¹)", " x⁻¹ ∈ Submo...
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ApproximatesLinearOn #align_import analysis.calculus.inverse from "leanprover-community/mathlib"@"2c1d8ca2812b64f88992a5294ea3dba144755cd1" open Function Set Filter Metric open scoped Topology Classical NNReal n...
Mathlib/Analysis/Calculus/InverseFunctionTheorem/FDeriv.lean
74
83
theorem approximates_deriv_on_nhds {f : E β†’ F} {f' : E β†’L[π•œ] F} {a : E} (hf : HasStrictFDerivAt f f' a) {c : ℝβ‰₯0} (hc : Subsingleton E ∨ 0 < c) : βˆƒ s ∈ 𝓝 a, ApproximatesLinearOn f f' s c := by
cases' hc with hE hc · refine ⟨univ, IsOpen.mem_nhds isOpen_univ trivial, fun x _ y _ => ?_⟩ simp [@Subsingleton.elim E hE x y] have := hf.def hc rw [nhds_prod_eq, Filter.Eventually, mem_prod_same_iff] at this rcases this with ⟨s, has, hs⟩ exact ⟨s, has, fun x hx y hy => hs (mk_mem_prod hx hy)⟩
[ " βˆƒ s ∈ 𝓝 a, ApproximatesLinearOn f f' s c", " β€–f x - f y - f' (x - y)β€– ≀ ↑c * β€–x - yβ€–" ]
[]
import Mathlib.Algebra.Divisibility.Basic import Mathlib.Algebra.Group.Basic import Mathlib.Algebra.Ring.Defs #align_import algebra.euclidean_domain.defs from "leanprover-community/mathlib"@"ee7b9f9a9ac2a8d9f04ea39bbfe6b1a3be053b38" universe u class EuclideanDomain (R : Type u) extends CommRing R, Nontrivial R ...
Mathlib/Algebra/EuclideanDomain/Defs.lean
151
153
theorem mul_right_not_lt {a : R} (b) (h : a β‰  0) : Β¬a * b β‰Ί b := by
rw [mul_comm] exact mul_left_not_lt b h
[ " m % k + m / k * k = m", " m % k + k * (m / k) = m", " m / k * k + m % k = m", " k * (m / k) + m % k = m", " b * (a / b) + a % b - b * (a / b) = a - b * (a / b)", " Β¬a * b β‰Ί b", " Β¬b * a β‰Ί b" ]
[ " m % k + m / k * k = m", " m % k + k * (m / k) = m", " m / k * k + m % k = m", " k * (m / k) + m % k = m", " b * (a / b) + a % b - b * (a / b) = a - b * (a / b)" ]
import Mathlib.FieldTheory.RatFunc.AsPolynomial import Mathlib.RingTheory.EuclideanDomain import Mathlib.RingTheory.Localization.FractionRing import Mathlib.RingTheory.Polynomial.Content noncomputable section universe u variable {K : Type u} namespace RatFunc section IntDegree open Polynomial variable [Field...
Mathlib/FieldTheory/RatFunc/Degree.lean
44
45
theorem intDegree_zero : intDegree (0 : RatFunc K) = 0 := by
rw [intDegree, num_zero, natDegree_zero, denom_zero, natDegree_one, sub_self]
[ " intDegree 0 = 0" ]
[]
import Mathlib.RingTheory.Localization.Module import Mathlib.RingTheory.Norm import Mathlib.RingTheory.Discriminant #align_import ring_theory.localization.norm from "leanprover-community/mathlib"@"2e59a6de168f95d16b16d217b808a36290398c0a" open scoped nonZeroDivisors variable (R : Type*) {S : Type*} [CommRing R] ...
Mathlib/RingTheory/Localization/NormTrace.lean
115
119
theorem Algebra.discr_localizationLocalization (b : Basis ΞΉ R S) : Algebra.discr Rβ‚˜ (b.localizationLocalization Rβ‚˜ M Sβ‚˜) = algebraMap R Rβ‚˜ (Algebra.discr R b) := by
rw [Algebra.discr_def, Algebra.discr_def, RingHom.map_det, Algebra.traceMatrix_localizationLocalization]
[ " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a)", " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) i j =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a) i j", " (norm Rβ‚˜) ((algebr...
[ " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a)", " (algebraMap R Rβ‚˜).mapMatrix ((leftMulMatrix b) a) i j =\n (leftMulMatrix (Basis.localizationLocalization Rβ‚˜ M Sβ‚˜ b)) ((algebraMap S Sβ‚˜) a) i j", " (norm Rβ‚˜) ((algebr...
import Mathlib.Algebra.Group.Subgroup.Basic import Mathlib.CategoryTheory.Groupoid.VertexGroup import Mathlib.CategoryTheory.Groupoid.Basic import Mathlib.CategoryTheory.Groupoid import Mathlib.Data.Set.Lattice import Mathlib.Order.GaloisConnection #align_import category_theory.groupoid.subgroupoid from "leanprover-c...
Mathlib/CategoryTheory/Groupoid/Subgroupoid.lean
90
97
theorem mul_mem_cancel_left {c d e : C} {f : c ⟢ d} {g : d ⟢ e} (hf : f ∈ S.arrows c d) : f ≫ g ∈ S.arrows c e ↔ g ∈ S.arrows d e := by
constructor Β· rintro h suffices Groupoid.inv f ≫ f ≫ g ∈ S.arrows d e by simpa only [inv_eq_inv, IsIso.inv_hom_id_assoc] using this apply S.mul (S.inv hf) h Β· apply S.mul hf
[ " Groupoid.inv f ∈ S.arrows d c ↔ f ∈ S.arrows c d", " Groupoid.inv f ∈ S.arrows d c β†’ f ∈ S.arrows c d", " f ∈ S.arrows c d", " f ∈ S.arrows c d β†’ Groupoid.inv f ∈ S.arrows d c", " f ≫ g ∈ S.arrows c e ↔ g ∈ S.arrows d e", " f ≫ g ∈ S.arrows c e β†’ g ∈ S.arrows d e", " g ∈ S.arrows d e", " Groupoid.in...
[ " Groupoid.inv f ∈ S.arrows d c ↔ f ∈ S.arrows c d", " Groupoid.inv f ∈ S.arrows d c β†’ f ∈ S.arrows c d", " f ∈ S.arrows c d", " f ∈ S.arrows c d β†’ Groupoid.inv f ∈ S.arrows d c" ]
import Batteries.Data.Fin.Basic namespace Fin attribute [norm_cast] val_last protected theorem le_antisymm_iff {x y : Fin n} : x = y ↔ x ≀ y ∧ y ≀ x := Fin.ext_iff.trans Nat.le_antisymm_iff protected theorem le_antisymm {x y : Fin n} (h1 : x ≀ y) (h2 : y ≀ x) : x = y := Fin.le_antisymm_iff.2 ⟨h1, h2⟩ @[simp...
.lake/packages/batteries/Batteries/Data/Fin/Lemmas.lean
63
64
theorem foldl_loop_eq (f : Ξ± β†’ Fin n β†’ Ξ±) (x) : foldl.loop n f x n = x := by
rw [foldl.loop, dif_neg (Nat.lt_irrefl _)]
[ " enum 0 = #[]", " (list n).length = n", " (list n).get i = cast β‹― i", " (list n).get ⟨val✝, isLt✝⟩ = cast β‹― ⟨val✝, isLt✝⟩", " (enum n).data.get ⟨val✝, isLt✝⟩ = cast β‹― ⟨val✝, isLt✝⟩", " list 0 = []", " list (n + 1) = 0 :: List.map succ (list n)", " βˆ€ (n_1 : Nat) (h₁ : n_1 < (list (n + 1)).length) (hβ‚‚ ...
[ " enum 0 = #[]", " (list n).length = n", " (list n).get i = cast β‹― i", " (list n).get ⟨val✝, isLt✝⟩ = cast β‹― ⟨val✝, isLt✝⟩", " (enum n).data.get ⟨val✝, isLt✝⟩ = cast β‹― ⟨val✝, isLt✝⟩", " list 0 = []", " list (n + 1) = 0 :: List.map succ (list n)", " βˆ€ (n_1 : Nat) (h₁ : n_1 < (list (n + 1)).length) (hβ‚‚ ...
import Mathlib.Algebra.Group.Submonoid.Membership import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Ring.Action.Subobjects import Mathlib.Algebra.Ring.Equiv import Mathlib.Algebra.Ring.Prod import Mathlib.Data.Set.Finite import Mathlib.GroupTheory.Submonoid.Centralizer import Mathlib.RingTheory.NonUnitalSubsem...
Mathlib/Algebra/Ring/Subsemiring/Basic.lean
39
40
theorem natCast_mem [AddSubmonoidWithOneClass S R] (n : β„•) : (n : R) ∈ s := by
induction n <;> simp [zero_mem, add_mem, one_mem, *]
[ " ↑n ∈ s", " ↑0 ∈ s", " ↑(n✝ + 1) ∈ s" ]
[]
import Mathlib.Data.Finset.Lattice import Mathlib.Data.Finset.NAry import Mathlib.Data.Multiset.Functor #align_import data.finset.functor from "leanprover-community/mathlib"@"bcfa726826abd57587355b4b5b7e78ad6527b7e4" universe u open Function namespace Finset protected instance pure : Pure Finset := ⟨fun...
Mathlib/Data/Finset/Functor.lean
200
202
theorem id_traverse [DecidableEq Ξ±] (s : Finset Ξ±) : traverse (pure : Ξ± β†’ Id Ξ±) s = s := by
rw [traverse, Multiset.id_traverse] exact s.val_toFinset
[ " traverse pure s = s", " Multiset.toFinset <$> s.val = s" ]
[]
import Mathlib.Algebra.Order.Monoid.Defs import Mathlib.Algebra.Order.Sub.Defs import Mathlib.Util.AssertExists #align_import algebra.order.group.defs from "leanprover-community/mathlib"@"b599f4e4e5cf1fbcb4194503671d3d9e569c1fce" open Function universe u variable {Ξ± : Type u} class OrderedAddCommGroup (Ξ± : Ty...
Mathlib/Algebra/Order/Group/Defs.lean
98
100
theorem Left.inv_le_one_iff : a⁻¹ ≀ 1 ↔ 1 ≀ a := by
rw [← mul_le_mul_iff_left a] simp
[ " b ≀ c", " a⁻¹ ≀ 1 ↔ 1 ≀ a", " a * a⁻¹ ≀ a * 1 ↔ 1 ≀ a" ]
[ " b ≀ c" ]
import Mathlib.Algebra.Lie.CartanSubalgebra import Mathlib.Algebra.Lie.Weights.Basic suppress_compilation open Set variable {R L : Type*} [CommRing R] [LieRing L] [LieAlgebra R L] (H : LieSubalgebra R L) [LieAlgebra.IsNilpotent R H] {M : Type*} [AddCommGroup M] [Module R M] [LieRingModule L M] [LieModule R L ...
Mathlib/Algebra/Lie/Weights/Cartan.lean
127
132
theorem coe_rootSpaceWeightSpaceProduct_tmul (χ₁ Ο‡β‚‚ χ₃ : H β†’ R) (hΟ‡ : χ₁ + Ο‡β‚‚ = χ₃) (x : rootSpace H χ₁) (m : weightSpace M Ο‡β‚‚) : (rootSpaceWeightSpaceProduct R L H M χ₁ Ο‡β‚‚ χ₃ hΟ‡ (x βŠ—β‚œ m) : M) = ⁅(x : L), (m : M)⁆ := by
simp only [rootSpaceWeightSpaceProduct, rootSpaceWeightSpaceProductAux, coe_liftLie_eq_lift_coe, AddHom.toFun_eq_coe, LinearMap.coe_toAddHom, lift_apply, LinearMap.coe_mk, AddHom.coe_mk, Submodule.coe_mk]
[ " ⁅x, m⁆ ∈ weightSpace M (χ₁ + Ο‡β‚‚)", " βˆ€ (i : β†₯H), ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) i) i", " ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) y) y", " x ∈ weightSpaceOf L (χ₁ y) y", " m ∈ weightSpaceOf M (Ο‡β‚‚ y) y", " ((toEnd R L M) x ^ n) m ∈ weightSpace M (n β€’ χ₁ + Ο‡β‚‚)", " ((toEnd R L M) x ^ 0) m ∈ weightSpace M...
[ " ⁅x, m⁆ ∈ weightSpace M (χ₁ + Ο‡β‚‚)", " βˆ€ (i : β†₯H), ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) i) i", " ⁅x, m⁆ ∈ weightSpaceOf M ((χ₁ + Ο‡β‚‚) y) y", " x ∈ weightSpaceOf L (χ₁ y) y", " m ∈ weightSpaceOf M (Ο‡β‚‚ y) y", " ((toEnd R L M) x ^ n) m ∈ weightSpace M (n β€’ χ₁ + Ο‡β‚‚)", " ((toEnd R L M) x ^ 0) m ∈ weightSpace M...
import Mathlib.AlgebraicGeometry.Morphisms.Basic import Mathlib.Topology.LocalAtTarget #align_import algebraic_geometry.morphisms.universally_closed from "leanprover-community/mathlib"@"a8ae1b3f7979249a0af6bc7cf20c1f6bf656ca73" noncomputable section open CategoryTheory CategoryTheory.Limits Opposite TopologicalS...
Mathlib/AlgebraicGeometry/Morphisms/UniversallyClosed.lean
88
94
theorem universallyClosed_is_local_at_target : PropertyIsLocalAtTarget @UniversallyClosed := by
rw [universallyClosed_eq] apply universallyIsLocalAtTargetOfMorphismRestrict Β· exact topologically_isClosedMap_respectsIso Β· intro X Y f ΞΉ U hU H simp_rw [topologically, morphismRestrict_base] at H exact (isClosedMap_iff_isClosedMap_of_iSup_eq_top hU).mpr H
[ " @UniversallyClosed = (topologically @IsClosedMap).universally", " UniversallyClosed f ↔ (topologically @IsClosedMap).universally f", " IsStableUnderComposition @UniversallyClosed", " (topologically @IsClosedMap).universally.IsStableUnderComposition", " (topologically @IsClosedMap).RespectsIso", " isomor...
[ " @UniversallyClosed = (topologically @IsClosedMap).universally", " UniversallyClosed f ↔ (topologically @IsClosedMap).universally f", " IsStableUnderComposition @UniversallyClosed", " (topologically @IsClosedMap).universally.IsStableUnderComposition", " (topologically @IsClosedMap).RespectsIso", " isomor...
import Mathlib.Data.ULift import Mathlib.Data.ZMod.Defs import Mathlib.SetTheory.Cardinal.PartENat #align_import set_theory.cardinal.finite from "leanprover-community/mathlib"@"3ff3f2d6a3118b8711063de7111a0d77a53219a8" set_option autoImplicit true open Cardinal Function noncomputable section variable {Ξ± Ξ² : Typ...
Mathlib/SetTheory/Cardinal/Finite.lean
97
98
theorem card_eq_of_equiv_fin {Ξ± : Type*} {n : β„•} (f : Ξ± ≃ Fin n) : Nat.card Ξ± = n := by
simpa only [card_eq_fintype_card, Fintype.card_fin] using card_congr f
[ " Nat.card { x // x ∈ s } = s.card", " Nat.card ↑s = s.toFinset.card", " Nat.card ↑s = hs.toFinset.card", " Nat.card Ξ± = 0", " Nat.card Ξ± = 0 ↔ IsEmpty Ξ± ∨ Infinite Ξ±", " Nat.card Ξ± β‰  0 ↔ Nonempty Ξ± ∧ Finite Ξ±", " 0 < Nat.card Ξ± ↔ Nonempty Ξ± ∧ Finite Ξ±", " Nat.card Ξ± ≀ Nat.card Ξ²", " lift.{u, v} #Ξ² ...
[ " Nat.card { x // x ∈ s } = s.card", " Nat.card ↑s = s.toFinset.card", " Nat.card ↑s = hs.toFinset.card", " Nat.card Ξ± = 0", " Nat.card Ξ± = 0 ↔ IsEmpty Ξ± ∨ Infinite Ξ±", " Nat.card Ξ± β‰  0 ↔ Nonempty Ξ± ∧ Finite Ξ±", " 0 < Nat.card Ξ± ↔ Nonempty Ξ± ∧ Finite Ξ±", " Nat.card Ξ± ≀ Nat.card Ξ²", " lift.{u, v} #Ξ² ...
import Mathlib.Analysis.Calculus.Deriv.Basic #align_import analysis.calculus.deriv.support from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {E : Type v} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f : ...
Mathlib/Analysis/Calculus/Deriv/Support.lean
36
41
theorem support_deriv_subset : support (deriv f) βŠ† tsupport f := by
intro x rw [← not_imp_not] intro h2x rw [not_mem_tsupport_iff_eventuallyEq] at h2x exact nmem_support.mpr (h2x.deriv_eq.trans (deriv_const x 0))
[ " support (deriv f) βŠ† tsupport f", " x ∈ support (deriv f) β†’ x ∈ tsupport f", " x βˆ‰ tsupport f β†’ x βˆ‰ support (deriv f)", " x βˆ‰ support (deriv f)" ]
[]
import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Tactic.Ring #align_import data.nat.hyperoperation from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" def hyperoperation : β„• β†’ β„• β†’ β„• β†’ β„• | 0, _, k => k + 1 | 1, m, 0 => m | 2, _, 0 => 0 | _ + 3, _, 0 => 1 | n + 1, m, k + 1 ...
Mathlib/Data/Nat/Hyperoperation.lean
49
50
theorem hyperoperation_ge_three_eq_one (n m : β„•) : hyperoperation (n + 3) m 0 = 1 := by
rw [hyperoperation]
[ " hyperoperation 0 m k = k.succ", " hyperoperation (n + 3) m 0 = 1" ]
[ " hyperoperation 0 m k = k.succ" ]
import Mathlib.Data.ZMod.Basic import Mathlib.Algebra.Group.Nat import Mathlib.Tactic.IntervalCases import Mathlib.GroupTheory.SpecificGroups.Dihedral import Mathlib.GroupTheory.SpecificGroups.Cyclic #align_import group_theory.specific_groups.quaternion from "leanprover-community/mathlib"@"879155bff5af618b9062cbb2915...
Mathlib/GroupTheory/SpecificGroups/Quaternion.lean
174
176
theorem card [NeZero n] : Fintype.card (QuaternionGroup n) = 4 * n := by
rw [← Fintype.card_eq.mpr ⟨fintypeHelper⟩, Fintype.card_sum, ZMod.card, two_mul] ring
[ " βˆ€ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
[ " βˆ€ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
import Mathlib.Analysis.Calculus.ContDiff.Basic import Mathlib.Analysis.NormedSpace.FiniteDimension #align_import analysis.calculus.cont_diff from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" noncomputable section universe uD uE uF uG variable {π•œ : Type*} [NontriviallyNormedField ...
Mathlib/Analysis/Calculus/ContDiff/FiniteDimension.lean
35
43
theorem contDiffOn_clm_apply {n : β„•βˆž} {f : E β†’ F β†’L[π•œ] G} {s : Set E} [FiniteDimensional π•œ F] : ContDiffOn π•œ n f s ↔ βˆ€ y, ContDiffOn π•œ n (fun x => f x y) s := by
refine ⟨fun h y => h.clm_apply contDiffOn_const, fun h => ?_⟩ let d := finrank π•œ F have hd : d = finrank π•œ (Fin d β†’ π•œ) := (finrank_fin_fun π•œ).symm let e₁ := ContinuousLinearEquiv.ofFinrankEq hd let eβ‚‚ := (e₁.arrowCongr (1 : G ≃L[π•œ] G)).trans (ContinuousLinearEquiv.piRing (Fin d)) rw [← id_comp f, ← eβ‚‚...
[ " ContDiffOn π•œ n f s ↔ βˆ€ (y : F), ContDiffOn π•œ n (fun x => (f x) y) s", " ContDiffOn π•œ n f s", " ContDiffOn π•œ n ((⇑eβ‚‚.symm ∘ ⇑eβ‚‚) ∘ f) s" ]
[]
import Mathlib.MeasureTheory.Measure.AEMeasurable #align_import dynamics.ergodic.measure_preserving from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} [MeasurableSpace Ξ±] [MeasurableSpace Ξ²] [MeasurableSpace Ξ³] [MeasurableSpace Ξ΄] namespace MeasureTheory ...
Mathlib/Dynamics/Ergodic/MeasurePreserving.lean
87
89
theorem restrict_image_emb {f : Ξ± β†’ Ξ²} (hf : MeasurePreserving f ΞΌa ΞΌb) (hβ‚‚ : MeasurableEmbedding f) (s : Set Ξ±) : MeasurePreserving f (ΞΌa.restrict s) (ΞΌb.restrict (f '' s)) := by
simpa only [Set.preimage_image_eq _ hβ‚‚.injective] using hf.restrict_preimage_emb hβ‚‚ (f '' s)
[ " map (⇑e.symm) ΞΌb = ΞΌa", " map f (ΞΌa.restrict (f ⁻¹' s)) = ΞΌb.restrict s", " MeasurePreserving f (ΞΌa.restrict s) (ΞΌb.restrict (f '' s))" ]
[ " map (⇑e.symm) ΞΌb = ΞΌa", " map f (ΞΌa.restrict (f ⁻¹' s)) = ΞΌb.restrict s" ]
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
89
91
theorem modEq_iff_dvd : a ≑ b [MOD n] ↔ (n : β„€) ∣ b - a := by
rw [ModEq, eq_comm, ← Int.natCast_inj, Int.natCast_mod, Int.natCast_mod, Int.emod_eq_emod_iff_emod_sub_eq_zero, Int.dvd_iff_emod_eq_zero]
[ " a ≑ 0 [MOD n] ↔ n ∣ a", " a ≑ b [MOD n] ↔ ↑n ∣ ↑b - ↑a" ]
[ " a ≑ 0 [MOD n] ↔ n ∣ a" ]
import Mathlib.Algebra.Group.Subgroup.Basic import Mathlib.Algebra.Order.Archimedean import Mathlib.Data.Set.Lattice #align_import group_theory.archimedean from "leanprover-community/mathlib"@"f93c11933efbc3c2f0299e47b8ff83e9b539cbf6" open Set variable {G : Type*} [LinearOrderedAddCommGroup G] [Archimedean G] th...
Mathlib/GroupTheory/Archimedean.lean
91
95
theorem AddSubgroup.cyclic_of_isolated_zero {H : AddSubgroup G} {a : G} (hβ‚€ : 0 < a) (hd : Disjoint (H : Set G) (Ioo 0 a)) : βˆƒ b, H = closure {b} := by
rcases eq_or_ne H βŠ₯ with rfl | hbot Β· exact ⟨0, closure_singleton_zero.symm⟩ Β· exact (exists_isLeast_pos hbot hβ‚€ hd).imp fun _ => cyclic_of_min
[ " H = closure {a}", " {a} βŠ† ↑H", " H ≀ closure {a}", " g ∈ closure {a}", " g - k β€’ a = 0", " False", " a ≀ g - k β€’ a", " g - k β€’ a ∈ H", " 0 < g - k β€’ a", " βˆƒ b, IsLeast {g | g ∈ H ∧ 0 < g} b", " βˆƒ n, g ∈ Ioc (n β€’ a) ((n + 1) β€’ a)", " 0 ≀ m", " 0 < (m + 1) β€’ a", " βˆƒ n, (↑H ∩ Ioc (n β€’ a) ((...
[ " H = closure {a}", " {a} βŠ† ↑H", " H ≀ closure {a}", " g ∈ closure {a}", " g - k β€’ a = 0", " False", " a ≀ g - k β€’ a", " g - k β€’ a ∈ H", " 0 < g - k β€’ a", " βˆƒ b, IsLeast {g | g ∈ H ∧ 0 < g} b", " βˆƒ n, g ∈ Ioc (n β€’ a) ((n + 1) β€’ a)", " 0 ≀ m", " 0 < (m + 1) β€’ a", " βˆƒ n, (↑H ∩ Ioc (n β€’ a) ((...
import Mathlib.Algebra.MonoidAlgebra.Basic import Mathlib.Data.Finset.Pointwise #align_import algebra.monoid_algebra.support from "leanprover-community/mathlib"@"16749fc4661828cba18cd0f4e3c5eb66a8e80598" open scoped Pointwise universe u₁ uβ‚‚ u₃ namespace MonoidAlgebra open Finset Finsupp variable {k : Type u₁} ...
Mathlib/Algebra/MonoidAlgebra/Support.lean
95
97
theorem mem_span_support (f : MonoidAlgebra k G) : f ∈ Submodule.span k (of k G '' (f.support : Set G)) := by
erw [of, MonoidHom.coe_mk, ← supported_eq_span_single, Finsupp.mem_supported]
[ " (a * b).support βŠ† a.support * b.support", " (sum a fun a₁ b₁ => sum b fun aβ‚‚ bβ‚‚ => single (a₁ * aβ‚‚) (b₁ * bβ‚‚)).support βŠ† a.support * b.support", " imageβ‚‚ (fun x x_1 => x * x_1) {a} f.support βŠ† image (fun x => a * x) f.support", " imageβ‚‚ (fun x x_1 => x * x_1) f.support {a} βŠ† image (fun x => x * a) f.support...
[ " (a * b).support βŠ† a.support * b.support", " (sum a fun a₁ b₁ => sum b fun aβ‚‚ bβ‚‚ => single (a₁ * aβ‚‚) (b₁ * bβ‚‚)).support βŠ† a.support * b.support", " imageβ‚‚ (fun x x_1 => x * x_1) {a} f.support βŠ† image (fun x => a * x) f.support", " imageβ‚‚ (fun x x_1 => x * x_1) f.support {a} βŠ† image (fun x => x * a) f.support...
import Batteries.Tactic.Init import Batteries.Tactic.Alias import Batteries.Tactic.Lint.Misc instance {f : Ξ± β†’ Ξ²} [DecidablePred p] : DecidablePred (p ∘ f) := inferInstanceAs <| DecidablePred fun x => p (f x) @[deprecated] alias proofIrrel := proof_irrel theorem Function.id_def : @id Ξ± = fun x => x := rfl al...
.lake/packages/batteries/Batteries/Logic.lean
94
97
theorem eqRec_heq_self {Ξ± : Sort _} {a : Ξ±} {motive : (a' : Ξ±) β†’ a = a' β†’ Sort _} (x : motive a (rfl : a = a)) {a' : Ξ±} (e : a = a') : HEq (@Eq.rec Ξ± a motive x a' e) x := by
subst e; rfl
[ " h β–Έ y = y", " β‹― β–Έ y = y", " f x y = f x' y'", " f x y = f x y", " x₁ = xβ‚‚ ↔ y₁ = yβ‚‚", " x₁ = xβ‚‚ ↔ x₁ = yβ‚‚", " x₁ = xβ‚‚ ↔ x₁ = xβ‚‚", " x = z ↔ y = z", " z = x ↔ z = y", " cast e a = a'", " cast e a = a", " e β–Έ x = cast β‹― x", " β‹― β–Έ x = cast β‹― x", " HEq (e β–Έ x) x", " HEq (β‹― β–Έ x) x" ]
[ " h β–Έ y = y", " β‹― β–Έ y = y", " f x y = f x' y'", " f x y = f x y", " x₁ = xβ‚‚ ↔ y₁ = yβ‚‚", " x₁ = xβ‚‚ ↔ x₁ = yβ‚‚", " x₁ = xβ‚‚ ↔ x₁ = xβ‚‚", " x = z ↔ y = z", " z = x ↔ z = y", " cast e a = a'", " cast e a = a", " e β–Έ x = cast β‹― x", " β‹― β–Έ x = cast β‹― x" ]
import Mathlib.Order.Interval.Finset.Nat import Mathlib.Data.PNat.Defs #align_import data.pnat.interval from "leanprover-community/mathlib"@"1d29de43a5ba4662dd33b5cfeecfc2a27a5a8a29" open Finset Function PNat namespace PNat variable (a b : β„•+) instance instLocallyFiniteOrder : LocallyFiniteOrder β„•+ := Subtype....
Mathlib/Data/PNat/Interval.lean
76
81
theorem card_Ico : (Ico a b).card = b - a := by
rw [← Nat.card_Ico] -- Porting note: I had to change this to `erw` *and* provide the proof, yuck. -- https://github.com/leanprover-community/mathlib4/issues/5164 erw [← Finset.map_subtype_embedding_Ico _ a b (fun c x _ hx _ hc _ => hc.trans_le hx)] rw [card_map]
[ " (Icc a b).card = ↑b + 1 - ↑a", " (Icc a b).card = (Icc ↑a ↑b).card", " (Icc a b).card = (map (Embedding.subtype fun n => 0 < n) (Icc a b)).card", " (Ico a b).card = ↑b - ↑a", " (Ico a b).card = (Ico ↑a ↑b).card", " (Ico a b).card = (map (Embedding.subtype fun n => 0 < n) (Ico a b)).card" ]
[ " (Icc a b).card = ↑b + 1 - ↑a", " (Icc a b).card = (Icc ↑a ↑b).card", " (Icc a b).card = (map (Embedding.subtype fun n => 0 < n) (Icc a b)).card" ]
import Mathlib.MeasureTheory.Function.LpSeminorm.Basic import Mathlib.MeasureTheory.Integral.MeanInequalities #align_import measure_theory.function.lp_seminorm from "leanprover-community/mathlib"@"c4015acc0a223449d44061e27ddac1835a3852b9" open Filter open scoped ENNReal Topology namespace MeasureTheory section B...
Mathlib/MeasureTheory/Function/LpSeminorm/CompareExp.lean
158
196
theorem snorm_le_snorm_top_mul_snorm (p : ℝβ‰₯0∞) (f : Ξ± β†’ E) {g : Ξ± β†’ F} (hg : AEStronglyMeasurable g ΞΌ) (b : E β†’ F β†’ G) (h : βˆ€α΅ x βˆ‚ΞΌ, β€–b (f x) (g x)β€–β‚Š ≀ β€–f xβ€–β‚Š * β€–g xβ€–β‚Š) : snorm (fun x => b (f x) (g x)) p ΞΌ ≀ snorm f ∞ ΞΌ * snorm g p ΞΌ := by
by_cases hp_top : p = ∞ Β· simp_rw [hp_top, snorm_exponent_top] refine le_trans (essSup_mono_ae <| h.mono fun a ha => ?_) (ENNReal.essSup_mul_le _ _) simp_rw [Pi.mul_apply, ← ENNReal.coe_mul, ENNReal.coe_le_coe] exact ha by_cases hp_zero : p = 0 Β· simp only [hp_zero, snorm_exponent_zero, mul_zero, l...
[ " snorm (fun x => b (f x) (g x)) p ΞΌ ≀ snorm f ⊀ ΞΌ * snorm g p ΞΌ", " snormEssSup (fun x => b (f x) (g x)) ΞΌ ≀ snormEssSup f ΞΌ * snormEssSup g ΞΌ", " (fun x => ↑‖(fun x => b (f x) (g x)) xβ€–β‚Š) a ≀ ((fun x => ↑‖f xβ€–β‚Š) * fun x => ↑‖g xβ€–β‚Š) a", " β€–b (f a) (g a)β€–β‚Š ≀ β€–f aβ€–β‚Š * β€–g aβ€–β‚Š", " (∫⁻ (x : Ξ±), ↑‖b (f x) (g x)β€–...
[]
import Mathlib.Algebra.Algebra.Subalgebra.Pointwise import Mathlib.AlgebraicGeometry.PrimeSpectrum.Maximal import Mathlib.AlgebraicGeometry.PrimeSpectrum.Noetherian import Mathlib.RingTheory.ChainOfDivisors import Mathlib.RingTheory.DedekindDomain.Basic import Mathlib.RingTheory.FractionalIdeal.Operations #align_impo...
Mathlib/RingTheory/DedekindDomain/Ideal.lean
148
150
theorem spanSingleton_div_spanSingleton (x y : K) : spanSingleton R₁⁰ x / spanSingleton R₁⁰ y = spanSingleton R₁⁰ (x / y) := by
rw [div_spanSingleton, mul_comm, spanSingleton_mul_spanSingleton, div_eq_mul_inv]
[ " ↑J⁻¹ = IsLocalization.coeSubmodule K ⊀ / ↑J", " J⁻¹ ≀ I⁻¹", " x ∈ (fun a => ↑a) J⁻¹ β†’ x ∈ (fun a => ↑a) I⁻¹", " (βˆ€ y ∈ J, x * y ∈ 1) β†’ βˆ€ y ∈ I, x * y ∈ 1", " J = I⁻¹", " I * (1 / I) = 1", " I * (1 / I) ≀ 1", " βˆ€ i ∈ I, βˆ€ j ∈ 1 / I, i * j ∈ 1", " x * y ∈ 1", " y * x ∈ 1", " 1 ≀ I * (1 / I)", ...
[ " ↑J⁻¹ = IsLocalization.coeSubmodule K ⊀ / ↑J", " J⁻¹ ≀ I⁻¹", " x ∈ (fun a => ↑a) J⁻¹ β†’ x ∈ (fun a => ↑a) I⁻¹", " (βˆ€ y ∈ J, x * y ∈ 1) β†’ βˆ€ y ∈ I, x * y ∈ 1", " J = I⁻¹", " I * (1 / I) = 1", " I * (1 / I) ≀ 1", " βˆ€ i ∈ I, βˆ€ j ∈ 1 / I, i * j ∈ 1", " x * y ∈ 1", " y * x ∈ 1", " 1 ≀ I * (1 / I)", ...
import Mathlib.Probability.Martingale.BorelCantelli import Mathlib.Probability.ConditionalExpectation import Mathlib.Probability.Independence.Basic #align_import probability.borel_cantelli from "leanprover-community/mathlib"@"2f8347015b12b0864dfaf366ec4909eb70c78740" open scoped MeasureTheory ProbabilityTheory EN...
Mathlib/Probability/BorelCantelli.lean
60
66
theorem iIndepSet.condexp_indicator_filtrationOfSet_ae_eq (hsm : βˆ€ n, MeasurableSet (s n)) (hs : iIndepSet s ΞΌ) (hij : i < j) : ΞΌ[(s j).indicator (fun _ => 1 : Ξ© β†’ ℝ)|filtrationOfSet hsm i] =ᡐ[ΞΌ] fun _ => (ΞΌ (s j)).toReal := by
rw [Filtration.filtrationOfSet_eq_natural (Ξ² := ℝ) hsm] refine (iIndepFun.condexp_natural_ae_eq_of_lt _ hs.iIndepFun_indicator hij).trans ?_ simp only [integral_indicator_const _ (hsm _), Algebra.id.smul_eq_mul, mul_one]; rfl
[ " Indep (MeasurableSpace.comap (f j) mΞ²) (↑(Filtration.natural f hf) i) ΞΌ", " Indep (⨆ k ∈ {j}, MeasurableSpace.comap (f k) mΞ²) (⨆ k ∈ {k | k ≀ i}, MeasurableSpace.comap (f k) mΞ²) ΞΌ", " Disjoint {j} {k | k ≀ i}", " ΞΌ[(s j).indicator fun x => 1|↑(filtrationOfSet hsm) i] =αΆ [ae ΞΌ] fun x => (ΞΌ (s j)).toReal", "...
[ " Indep (MeasurableSpace.comap (f j) mΞ²) (↑(Filtration.natural f hf) i) ΞΌ", " Indep (⨆ k ∈ {j}, MeasurableSpace.comap (f k) mΞ²) (⨆ k ∈ {k | k ≀ i}, MeasurableSpace.comap (f k) mΞ²) ΞΌ", " Disjoint {j} {k | k ≀ i}" ]
import Mathlib.CategoryTheory.Limits.Shapes.SplitCoequalizer import Mathlib.CategoryTheory.Limits.Preserves.Basic #align_import category_theory.limits.preserves.shapes.equalizers from "leanprover-community/mathlib"@"4698e35ca56a0d4fa53aa5639c3364e0a77f4eba" noncomputable section universe w v₁ vβ‚‚ u₁ uβ‚‚ open Cate...
Mathlib/CategoryTheory/Limits/Preserves/Shapes/Equalizers.lean
215
218
theorem map_Ο€_preserves_coequalizer_inv_desc {W : D} (k : G.obj Y ⟢ W) (wk : G.map f ≫ k = G.map g ≫ k) : G.map (coequalizer.Ο€ f g) ≫ (PreservesCoequalizer.iso G f g).inv ≫ coequalizer.desc k wk = k := by
rw [← Category.assoc, map_Ο€_preserves_coequalizer_inv, coequalizer.Ο€_desc]
[ " G.map f ≫ G.map h = G.map g ≫ G.map h", " Cofork.Ο€\n ((Cocones.precompose (diagramIsoParallelPair (parallelPair f g β‹™ G)).inv).obj (G.mapCocone (Cofork.ofΟ€ h w))) ≫\n (Iso.refl\n ((Cocones.precompose (diagramIsoParallelPair (parallelPair f g β‹™ G)).inv).obj\n (G.mapCocone (Cofor...
[ " G.map f ≫ G.map h = G.map g ≫ G.map h", " Cofork.Ο€\n ((Cocones.precompose (diagramIsoParallelPair (parallelPair f g β‹™ G)).inv).obj (G.mapCocone (Cofork.ofΟ€ h w))) ≫\n (Iso.refl\n ((Cocones.precompose (diagramIsoParallelPair (parallelPair f g β‹™ G)).inv).obj\n (G.mapCocone (Cofor...
import Mathlib.AlgebraicGeometry.GammaSpecAdjunction import Mathlib.AlgebraicGeometry.Restrict import Mathlib.CategoryTheory.Limits.Opposites import Mathlib.RingTheory.Localization.InvSubmonoid #align_import algebraic_geometry.AffineScheme from "leanprover-community/mathlib"@"88474d1b5af6d37c2ab728b757771bced7f5194c"...
Mathlib/AlgebraicGeometry/AffineScheme.lean
209
215
theorem isBasis_affine_open (X : Scheme) : Opens.IsBasis X.affineOpens := by
rw [Opens.isBasis_iff_nbhd] rintro U x (hU : x ∈ (U : Set X)) obtain ⟨S, hS, hxS, hSU⟩ := X.affineBasisCover_is_basis.exists_subset_of_mem_open hU U.isOpen refine ⟨⟨S, X.affineBasisCover_is_basis.isOpen hS⟩, ?_, hxS, hSU⟩ rcases hS with ⟨i, rfl⟩ exact rangeIsAffineOpenOfOpenImmersion _
[ " IsAffine X", " X ∈ Scheme.Spec.essImage", " IsAffineOpen (Scheme.Hom.opensRange f)", " Set.range ⇑f.val.base = Set.range ⇑(Y.ofRestrict β‹―).val.base", " IsAffineOpen ⊀", " ⊀ = Scheme.Hom.opensRange (πŸ™ X)", " β†‘βŠ€ = ↑(Scheme.Hom.opensRange (πŸ™ X))", " Opens.IsBasis X.affineOpens", " βˆ€ {U : Opens ↑↑X....
[ " IsAffine X", " X ∈ Scheme.Spec.essImage", " IsAffineOpen (Scheme.Hom.opensRange f)", " Set.range ⇑f.val.base = Set.range ⇑(Y.ofRestrict β‹―).val.base", " IsAffineOpen ⊀", " ⊀ = Scheme.Hom.opensRange (πŸ™ X)", " β†‘βŠ€ = ↑(Scheme.Hom.opensRange (πŸ™ X))" ]
import Mathlib.Data.Matrix.Basic variable {l m n o : Type*} universe u v w variable {R : Type*} {Ξ± : Type v} {Ξ² : Type w} namespace Matrix def col (w : m β†’ Ξ±) : Matrix m Unit Ξ± := of fun x _ => w x #align matrix.col Matrix.col -- TODO: set as an equation lemma for `col`, see mathlib4#3024 @[simp] theorem col...
Mathlib/Data/Matrix/RowCol.lean
123
126
theorem col_vecMul [Fintype m] [NonUnitalNonAssocSemiring Ξ±] (M : Matrix m n Ξ±) (v : m β†’ Ξ±) : Matrix.col (v α΅₯* M) = (Matrix.row v * M)α΅€ := by
ext rfl
[ " col (v + w) = col v + col w", " col (v + w) i✝ j✝ = (col v + col w) i✝ j✝", " col (x β€’ v) = x β€’ col v", " col (x β€’ v) i✝ j✝ = (x β€’ col v) i✝ j✝", " row (v + w) = row v + row w", " row (v + w) i✝ j✝ = (row v + row w) i✝ j✝", " row (x β€’ v) = x β€’ row v", " row (x β€’ v) i✝ j✝ = (x β€’ row v) i✝ j✝", " (c...
[ " col (v + w) = col v + col w", " col (v + w) i✝ j✝ = (col v + col w) i✝ j✝", " col (x β€’ v) = x β€’ col v", " col (x β€’ v) i✝ j✝ = (x β€’ col v) i✝ j✝", " row (v + w) = row v + row w", " row (v + w) i✝ j✝ = (row v + row w) i✝ j✝", " row (x β€’ v) = x β€’ row v", " row (x β€’ v) i✝ j✝ = (x β€’ row v) i✝ j✝", " (c...
import Mathlib.CategoryTheory.Preadditive.Injective import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex import Mathlib.Algebra.Homology.QuasiIso #align_import category_theory.preadditive.injective_resolution from "leanprover-community/mathlib"@"14b69e9f3c16630440a2cbd46f1ddad0d561dee7" noncomputable s...
Mathlib/CategoryTheory/Preadditive/InjectiveResolution.lean
104
106
theorem ΞΉ_f_zero_comp_complex_d : I.ΞΉ.f 0 ≫ I.cocomplex.d 0 1 = 0 := by
simp
[ " ExactAt I.cocomplex (n + 1)", " QuasiIsoAt I.ΞΉ (n + 1)", " (ComplexShape.up β„•).prev (n + 1) = n", " (ComplexShape.up β„•).next (n + 1) = n + 2", " n + 1 + 1 = n + 2", " n + 1 β‰  0", " I.ΞΉ.f 0 ≫ I.cocomplex.d 0 1 = 0" ]
[ " ExactAt I.cocomplex (n + 1)", " QuasiIsoAt I.ΞΉ (n + 1)", " (ComplexShape.up β„•).prev (n + 1) = n", " (ComplexShape.up β„•).next (n + 1) = n + 2", " n + 1 + 1 = n + 2", " n + 1 β‰  0" ]
import Mathlib.Analysis.SpecialFunctions.Exp import Mathlib.Topology.ContinuousFunction.Basic import Mathlib.Analysis.Normed.Field.UnitBall #align_import analysis.complex.circle from "leanprover-community/mathlib"@"ad3dfaca9ea2465198bcf58aa114401c324e29d1" noncomputable section open Complex Metric open ComplexC...
Mathlib/Analysis/Complex/Circle.lean
66
66
theorem normSq_eq_of_mem_circle (z : circle) : normSq z = 1 := by
simp [normSq_eq_abs]
[ " z ∈ circle ↔ normSq z = 1", " normSq ↑z = 1" ]
[ " z ∈ circle ↔ normSq z = 1" ]
import Mathlib.Analysis.Normed.Field.Basic #align_import analysis.normed_space.int from "leanprover-community/mathlib"@"5cc2dfdd3e92f340411acea4427d701dc7ed26f8" namespace Int theorem nnnorm_coe_units (e : β„€Λ£) : β€–(e : β„€)β€–β‚Š = 1 := by obtain rfl | rfl := units_eq_one_or e <;> simp only [Units.coe_neg_one, Un...
Mathlib/Analysis/NormedSpace/Int.lean
41
42
theorem toNat_add_toNat_neg_eq_nnnorm (n : β„€) : ↑n.toNat + ↑(-n).toNat = β€–nβ€–β‚Š := by
rw [← Nat.cast_add, toNat_add_toNat_neg_eq_natAbs, NNReal.natCast_natAbs]
[ " ‖↑eβ€–β‚Š = 1", " ‖↑1β€–β‚Š = 1", " ‖↑(-1)β€–β‚Š = 1", " ‖↑eβ€– = 1", " ↑n.toNat + ↑(-n).toNat = β€–nβ€–β‚Š" ]
[ " ‖↑eβ€–β‚Š = 1", " ‖↑1β€–β‚Š = 1", " ‖↑(-1)β€–β‚Š = 1", " ‖↑eβ€– = 1" ]
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.Order.Interval.Set.Group import Mathlib.Analysis.Convex.Segment import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional import Mathlib.Tactic.FieldSimp #align_import analysis.convex.between from "leanprover-community/mathlib"@"571e13cacbed7bf042fd3058c...
Mathlib/Analysis/Convex/Between.lean
67
74
theorem affineSegment_same (x : P) : affineSegment R x x = {x} := by
-- Porting note: added as this doesn't do anything in `simp_rw` any more rw [affineSegment] -- Note: when adding "simp made no progress" in lean4#2336, -- had to change `lineMap_same` to `lineMap_same _`. Not sure why? -- Porting note: added `_ _` and `Function.const` simp_rw [lineMap_same _, AffineMap.coe...
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x", " z ∈ affineSegment R x y β†’ z ∈ affineSegment R y x", " z ∈ affineSegment R y x", " 1 - t ∈ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z ∈ affineSegment R y x ...
[ " affineSegment R x y = segment R x y", " affineSegment R x y = affineSegment R y x", " z ∈ affineSegment R x y ↔ z ∈ affineSegment R y x", " z ∈ affineSegment R x y β†’ z ∈ affineSegment R y x", " z ∈ affineSegment R y x", " 1 - t ∈ Set.Icc 0 1", " (lineMap y x) (1 - t) = z", " z ∈ affineSegment R y x ...
import Mathlib.Algebra.Group.Center #align_import group_theory.subsemigroup.centralizer from "leanprover-community/mathlib"@"cc67cd75b4e54191e13c2e8d722289a89e67e4fa" variable {M : Type*} {S T : Set M} namespace Set variable (S) @[to_additive addCentralizer " The centralizer of a subset of an additive magma. ...
Mathlib/Algebra/Group/Centralizer.lean
64
65
theorem zero_mem_centralizer [MulZeroClass M] : (0 : M) ∈ centralizer S := by
simp [mem_centralizer_iff]
[ " 1 ∈ S.centralizer", " 0 ∈ S.centralizer" ]
[ " 1 ∈ S.centralizer" ]
import Mathlib.FieldTheory.RatFunc.Defs import Mathlib.RingTheory.EuclideanDomain import Mathlib.RingTheory.Localization.FractionRing import Mathlib.RingTheory.Polynomial.Content #align_import field_theory.ratfunc from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d010e417b10abb1b6" universe u v noncompu...
Mathlib/FieldTheory/RatFunc/Basic.lean
89
91
theorem ofFractionRing_add (p q : FractionRing K[X]) : ofFractionRing (p + q) = ofFractionRing p + ofFractionRing q := by
simp only [HAdd.hAdd, Add.add, RatFunc.add]
[ " { toFractionRing := 0 } = 0", " { toFractionRing := p + q } = { toFractionRing := p } + { toFractionRing := q }" ]
[ " { toFractionRing := 0 } = 0" ]
import Mathlib.Analysis.BoxIntegral.Partition.Basic #align_import analysis.box_integral.partition.split from "leanprover-community/mathlib"@"6ca1a09bc9aa75824bf97388c9e3b441fc4ccf3f" noncomputable section open scoped Classical open Filter open Function Set Filter namespace BoxIntegral variable {ΞΉ M : Type*} {...
Mathlib/Analysis/BoxIntegral/Partition/Split.lean
130
136
theorem splitUpper_def [DecidableEq ΞΉ] {i x} (h : x ∈ Ioo (I.lower i) (I.upper i)) (h' : βˆ€ j, update I.lower i x j < I.upper j := (forall_update_iff I.lower fun j y => y < I.upper j).2 ⟨h.2, fun j _ => I.lower_lt_upper _⟩) : I.splitUpper i x = (⟨update I.lower i x, I.upper, h'⟩ : Box ΞΉ) := by
simp (config := { unfoldPartialApp := true }) only [splitUpper, mk'_eq_coe, max_eq_left h.1.le, update, and_self]
[ " ↑(I.splitLower i x) = ↑I ∩ {y | y i ≀ x}", " (univ.pi fun i_1 => Ioc (I.lower i_1) (update I.upper i (min x (I.upper i)) i_1)) = ↑I ∩ {y | y i ≀ x}", " (y ∈ univ.pi fun i_1 => Ioc (I.lower i_1) (update I.upper i (min x (I.upper i)) i_1)) ↔ y ∈ ↑I ∩ {y | y i ≀ x}", " ((βˆ€ (x : ΞΉ), I.lower x < y x) ∧ y i ≀ x ∧...
[ " ↑(I.splitLower i x) = ↑I ∩ {y | y i ≀ x}", " (univ.pi fun i_1 => Ioc (I.lower i_1) (update I.upper i (min x (I.upper i)) i_1)) = ↑I ∩ {y | y i ≀ x}", " (y ∈ univ.pi fun i_1 => Ioc (I.lower i_1) (update I.upper i (min x (I.upper i)) i_1)) ↔ y ∈ ↑I ∩ {y | y i ≀ x}", " ((βˆ€ (x : ΞΉ), I.lower x < y x) ∧ y i ≀ x ∧...
import Mathlib.Order.ConditionallyCompleteLattice.Finset import Mathlib.Order.Interval.Finset.Nat #align_import data.nat.lattice from "leanprover-community/mathlib"@"52fa514ec337dd970d71d8de8d0fd68b455a1e54" assert_not_exists MonoidWithZero open Set namespace Nat open scoped Classical noncomputable instance : ...
Mathlib/Data/Nat/Lattice.lean
75
77
theorem sInf_mem {s : Set β„•} (h : s.Nonempty) : sInf s ∈ s := by
rw [Nat.sInf_def h] exact Nat.find_spec h
[ " sInf s = 0 ↔ 0 ∈ s ∨ s = βˆ…", " sInf βˆ… = 0 ↔ 0 ∈ βˆ… ∨ βˆ… = βˆ…", " sInf βˆ… = 0", " 0 ∈ βˆ… ∨ βˆ… = βˆ…", " βˆ… = βˆ…", " iInf f = 0", " β¨… i, 0 = 0", " (0 ∈ range fun i => 0) ∨ (range fun i => 0) = βˆ…", " sInf s ∈ s", " Nat.find h ∈ s" ]
[ " sInf s = 0 ↔ 0 ∈ s ∨ s = βˆ…", " sInf βˆ… = 0 ↔ 0 ∈ βˆ… ∨ βˆ… = βˆ…", " sInf βˆ… = 0", " 0 ∈ βˆ… ∨ βˆ… = βˆ…", " βˆ… = βˆ…", " iInf f = 0", " β¨… i, 0 = 0", " (0 ∈ range fun i => 0) ∨ (range fun i => 0) = βˆ…" ]
import Mathlib.Analysis.MeanInequalities import Mathlib.Analysis.NormedSpace.WithLp open Real Set Filter RCLike Bornology Uniformity Topology NNReal ENNReal noncomputable section variable (p : ℝβ‰₯0∞) (π•œ Ξ± Ξ² : Type*) namespace WithLp section DistNorm section Dist variable [Dist Ξ±] [Dist Ξ²] open scoped C...
Mathlib/Analysis/NormedSpace/ProdLp.lean
231
233
theorem prod_dist_eq_card (f g : WithLp 0 (Ξ± Γ— Ξ²)) : dist f g = (if dist f.fst g.fst = 0 then 0 else 1) + (if dist f.snd g.snd = 0 then 0 else 1) := by
convert if_pos rfl
[ " dist f g = (if dist f.1 g.1 = 0 then 0 else 1) + if dist f.2 g.2 = 0 then 0 else 1" ]
[]
import Mathlib.MeasureTheory.SetSemiring open MeasurableSpace Set namespace MeasureTheory variable {Ξ± : Type*} {π’œ : Set (Set Ξ±)} {s t : Set Ξ±} structure IsSetAlgebra (π’œ : Set (Set Ξ±)) : Prop where empty_mem : βˆ… ∈ π’œ compl_mem : βˆ€ ⦃s⦄, s ∈ π’œ β†’ sᢜ ∈ π’œ union_mem : βˆ€ ⦃s t⦄, s ∈ π’œ β†’ t ∈ π’œ β†’ s βˆͺ t ∈ π’œ ...
Mathlib/MeasureTheory/SetAlgebra.lean
151
158
theorem generateSetAlgebra_subset {ℬ : Set (Set Ξ±)} (h : π’œ βŠ† ℬ) (hℬ : IsSetAlgebra ℬ) : generateSetAlgebra π’œ βŠ† ℬ := by
intro s hs induction hs with | base t t_mem => exact h t_mem | empty => exact hℬ.empty_mem | compl t _ t_mem => exact hℬ.compl_mem t_mem | union t u _ _ t_mem u_mem => exact hℬ.union_mem t_mem u_mem
[ " generateFrom (generateSetAlgebra π’œ) = generateFrom π’œ", " MeasurableSet s", " MeasurableSet t", " MeasurableSet u", " MeasurableSet βˆ…", " MeasurableSet uᢜ", " MeasurableSet (u βˆͺ v)", " generateSetAlgebra π’œ βŠ† generateSetAlgebra ℬ", " s ∈ generateSetAlgebra ℬ", " t ∈ generateSetAlgebra ℬ", " βˆ…...
[ " generateFrom (generateSetAlgebra π’œ) = generateFrom π’œ", " MeasurableSet s", " MeasurableSet t", " MeasurableSet u", " MeasurableSet βˆ…", " MeasurableSet uᢜ", " MeasurableSet (u βˆͺ v)", " generateSetAlgebra π’œ βŠ† generateSetAlgebra ℬ", " s ∈ generateSetAlgebra ℬ", " t ∈ generateSetAlgebra ℬ", " βˆ…...
import Mathlib.Algebra.Polynomial.Degree.Lemmas open Polynomial namespace Mathlib.Tactic.ComputeDegree section recursion_lemmas variable {R : Type*} section semiring variable [Semiring R] theorem natDegree_C_le (a : R) : natDegree (C a) ≀ 0 := (natDegree_C a).le theorem natDegree_natCast_le (n : β„•) : natDeg...
Mathlib/Tactic/ComputeDegree.lean
117
126
theorem coeff_pow_of_natDegree_le_of_eq_ite' {m n o : β„•} {a : R} {p : R[X]} (h_pow : natDegree p ≀ n) (h_exp : m * n ≀ o) (h_pow_bas : coeff p n = a) : coeff (p ^ m) o = if o = m * n then a ^ m else 0 := by
split_ifs with h Β· subst h h_pow_bas exact coeff_pow_of_natDegree_le β€Ή_β€Ί Β· apply coeff_eq_zero_of_natDegree_lt apply lt_of_le_of_lt ?_ (lt_of_le_of_ne β€Ή_β€Ί ?_) Β· exact natDegree_pow_le_of_le m β€Ή_β€Ί Β· exact Iff.mp ne_comm h
[ " (f + g).coeff n = a + b", " (f + g).coeff n = f.coeff n + g.coeff n", " (f * g).coeff d = if d = df + dg then a * b else 0", " (f * g).coeff d = a * b", " (f * g).coeff (df + dg) = f.coeff df * g.coeff dg", " (f * g).coeff d = 0", " (f * g).natDegree < d", " (f * g).natDegree ≀ df + dg", " df + dg...
[ " (f + g).coeff n = a + b", " (f + g).coeff n = f.coeff n + g.coeff n", " (f * g).coeff d = if d = df + dg then a * b else 0", " (f * g).coeff d = a * b", " (f * g).coeff (df + dg) = f.coeff df * g.coeff dg", " (f * g).coeff d = 0", " (f * g).natDegree < d", " (f * g).natDegree ≀ df + dg", " df + dg...
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]
[ " c⁻¹ β€’ c β€’ x = x", " c β€’ c⁻¹ β€’ x = x" ]
[ " c⁻¹ β€’ c β€’ x = x" ]
import Mathlib.RingTheory.Ideal.Cotangent import Mathlib.RingTheory.QuotientNilpotent import Mathlib.RingTheory.TensorProduct.Basic import Mathlib.RingTheory.FinitePresentation import Mathlib.RingTheory.Localization.Away.Basic import Mathlib.RingTheory.Localization.Away.AdjoinRoot #align_import ring_theory.etale from ...
Mathlib/RingTheory/Smooth/Basic.lean
148
153
theorem of_equiv [FormallySmooth R A] (e : A ≃ₐ[R] B) : FormallySmooth R B := by
constructor intro C _ _ I hI f use (FormallySmooth.lift I ⟨2, hI⟩ (f.comp e : A →ₐ[R] C β§Έ I)).comp e.symm rw [← AlgHom.comp_assoc, FormallySmooth.comp_lift, AlgHom.comp_assoc, AlgEquiv.comp_symm, AlgHom.comp_id]
[ " βˆƒ f, (Ideal.Quotient.mkₐ R I).comp f = g", " βˆ€ (g : A →ₐ[R] B β§Έ I), βˆƒ f, (Ideal.Quotient.mkₐ R I).comp f = g", " Function.Surjective (Ideal.Quotient.mkₐ R I).comp", " βˆ€ [_RB : Algebra R B], Function.Surjective (Ideal.Quotient.mkₐ R I).comp", " βˆ€ ⦃S : Type u⦄ [inst : CommRing S] (I : Ideal S),\n I ^ 2 =...
[ " βˆƒ f, (Ideal.Quotient.mkₐ R I).comp f = g", " βˆ€ (g : A →ₐ[R] B β§Έ I), βˆƒ f, (Ideal.Quotient.mkₐ R I).comp f = g", " Function.Surjective (Ideal.Quotient.mkₐ R I).comp", " βˆ€ [_RB : Algebra R B], Function.Surjective (Ideal.Quotient.mkₐ R I).comp", " βˆ€ ⦃S : Type u⦄ [inst : CommRing S] (I : Ideal S),\n I ^ 2 =...
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]
[ " m = m'", " mk eq_of_dist_eq_zero✝ = m'", " mk eq_of_dist_eq_zero✝¹ = mk eq_of_dist_eq_zero✝", " toPseudoMetricSpace✝¹ = toPseudoMetricSpace✝", " PseudoMetricSpace.toDist = PseudoMetricSpace.toDist", " 0 = dist x y ↔ x = y" ]
[ " m = m'", " mk eq_of_dist_eq_zero✝ = m'", " mk eq_of_dist_eq_zero✝¹ = mk eq_of_dist_eq_zero✝", " toPseudoMetricSpace✝¹ = toPseudoMetricSpace✝", " PseudoMetricSpace.toDist = PseudoMetricSpace.toDist" ]
import Mathlib.Analysis.RCLike.Basic import Mathlib.Analysis.NormedSpace.OperatorNorm.Basic import Mathlib.Analysis.NormedSpace.Pointwise #align_import analysis.normed_space.is_R_or_C from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b" open Metric variable {π•œ : Type*} [RCLike π•œ] {E :...
Mathlib/Analysis/NormedSpace/RCLike.lean
36
36
theorem RCLike.norm_coe_norm {z : E} : β€–(β€–zβ€– : π•œ)β€– = β€–zβ€– := by
simp
[ " ‖↑‖zβ€–β€– = β€–zβ€–" ]
[]
import Mathlib.Data.Fintype.Card import Mathlib.Data.Finset.Sum import Mathlib.Logic.Embedding.Set #align_import data.fintype.sum from "leanprover-community/mathlib"@"6623e6af705e97002a9054c1c05a980180276fc1" universe u v variable {Ξ± Ξ² : Type*} open Finset instance (Ξ± : Type u) (Ξ² : Type v) [Fintype Ξ±] [Fintyp...
Mathlib/Data/Fintype/Sum.lean
47
57
theorem image_subtype_ne_univ_eq_image_erase [Fintype Ξ±] [DecidableEq Ξ²] (k : Ξ²) (b : Ξ± β†’ Ξ²) : image (fun i : { a // b a β‰  k } => b ↑i) univ = (image b univ).erase k := by
apply subset_antisymm · rw [image_subset_iff] intro i _ apply mem_erase_of_ne_of_mem i.2 (mem_image_of_mem _ (mem_univ _)) · intro i hi rw [mem_image] rcases mem_image.1 (erase_subset _ _ hi) with ⟨a, _, ha⟩ subst ha exact ⟨⟨a, ne_of_mem_erase hi⟩, mem_univ _, rfl⟩
[ " βˆ€ (x : Ξ± βŠ• Ξ²), x ∈ univ.disjSum univ", " Sum.inl val✝ ∈ univ.disjSum univ", " Sum.inr val✝ ∈ univ.disjSum univ", " Function.Bijective (Sum.elim Subtype.val Subtype.val)", " image (fun i => b ↑i) univ = (image b univ).erase k", " image (fun i => b ↑i) univ βŠ† (image b univ).erase k", " βˆ€ x ∈ univ, b ↑x ...
[ " βˆ€ (x : Ξ± βŠ• Ξ²), x ∈ univ.disjSum univ", " Sum.inl val✝ ∈ univ.disjSum univ", " Sum.inr val✝ ∈ univ.disjSum univ", " Function.Bijective (Sum.elim Subtype.val Subtype.val)" ]
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
255
258
theorem mul_self_lt_top_iff {a : ℝβ‰₯0∞} : a * a < ⊀ ↔ a < ⊀ := by
rw [ENNReal.mul_lt_top_iff, and_self, or_self, or_iff_left_iff_imp] rintro rfl exact zero_lt_top
[ " (r₁ + rβ‚‚).toNNReal = r₁.toNNReal + rβ‚‚.toNNReal", " (↑r₁ + rβ‚‚).toNNReal = (↑r₁).toNNReal + rβ‚‚.toNNReal", " (↑r₁ + ↑rβ‚‚).toNNReal = (↑r₁).toNNReal + (↑rβ‚‚).toNNReal", " Β¬x < ⊀ ↔ x = ⊀", " a + b β‰  ⊀ ↔ a β‰  ⊀ ∧ b β‰  ⊀", " a * ⊀ = if a = 0 then 0 else ⊀", " ⊀ * a = if a = 0 then 0 else ⊀", " ⊀ ^ (m + 1) = ⊀"...
[ " (r₁ + rβ‚‚).toNNReal = r₁.toNNReal + rβ‚‚.toNNReal", " (↑r₁ + rβ‚‚).toNNReal = (↑r₁).toNNReal + rβ‚‚.toNNReal", " (↑r₁ + ↑rβ‚‚).toNNReal = (↑r₁).toNNReal + (↑rβ‚‚).toNNReal", " Β¬x < ⊀ ↔ x = ⊀", " a + b β‰  ⊀ ↔ a β‰  ⊀ ∧ b β‰  ⊀", " a * ⊀ = if a = 0 then 0 else ⊀", " ⊀ * a = if a = 0 then 0 else ⊀", " ⊀ ^ (m + 1) = ⊀"...
import Mathlib.Algebra.Module.DedekindDomain import Mathlib.LinearAlgebra.FreeModule.PID import Mathlib.Algebra.Module.Projective import Mathlib.Algebra.Category.ModuleCat.Biproducts import Mathlib.RingTheory.SimpleModule #align_import algebra.module.pid from "leanprover-community/mathlib"@"cdc34484a07418af43daf8198b...
Mathlib/Algebra/Module/PID.lean
124
148
theorem p_pow_smul_lift {x y : M} {k : β„•} (hM' : Module.IsTorsionBy R M (p ^ pOrder hM y)) (h : p ^ k β€’ x ∈ R βˆ™ y) : βˆƒ a : R, p ^ k β€’ x = p ^ k β€’ a β€’ y := by
-- Porting note: needed to make `smul_smul` work below. letI : MulAction R M := MulActionWithZero.toMulAction by_cases hk : k ≀ pOrder hM y Β· let f := ((R βˆ™ p ^ (pOrder hM y - k) * p ^ k).quotEquivOfEq _ ?_).trans (quotTorsionOfEquivSpanSingleton R M y) Β· have : f.symm ⟨p ^ k β€’ x, h⟩ ∈ ...
[ " DirectSum.IsInternal fun p => torsionBy R M (IsPrincipal.generator ↑p ^ Multiset.count (↑p) (factors ⊀.annihilator))", " torsionBy R M (IsPrincipal.generator ↑x✝ ^ Multiset.count (↑x✝) (factors ⊀.annihilator)) =\n torsionBySet R M ↑(↑x✝ ^ Multiset.count (↑x✝) (factors ⊀.annihilator))", " p ∈ torsionBy R M ...
[ " DirectSum.IsInternal fun p => torsionBy R M (IsPrincipal.generator ↑p ^ Multiset.count (↑p) (factors ⊀.annihilator))", " torsionBy R M (IsPrincipal.generator ↑x✝ ^ Multiset.count (↑x✝) (factors ⊀.annihilator)) =\n torsionBySet R M ↑(↑x✝ ^ Multiset.count (↑x✝) (factors ⊀.annihilator))", " p ∈ torsionBy R M ...
import Mathlib.Topology.Homotopy.Path import Mathlib.Topology.Homotopy.Equiv #align_import topology.homotopy.contractible from "leanprover-community/mathlib"@"16728b3064a1751103e1dc2815ed8d00560e0d87" noncomputable section namespace ContinuousMap variable {X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y]...
Mathlib/Topology/Homotopy/Contractible.lean
39
43
theorem Nullhomotopic.comp_left {f : C(Y, Z)} (hf : f.Nullhomotopic) (g : C(X, Y)) : (f.comp g).Nullhomotopic := by
cases' hf with y hy use y exact Homotopic.hcomp (Homotopic.refl g) hy
[ " (const X y).Homotopic (const X y)", " (g.comp f).Nullhomotopic", " (g.comp f).Homotopic (const X (g y))", " (f.comp g).Nullhomotopic", " (f.comp g).Homotopic (const X y)" ]
[ " (const X y).Homotopic (const X y)", " (g.comp f).Nullhomotopic", " (g.comp f).Homotopic (const X (g y))" ]
import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Order.Group.Int import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Algebra.Ring.Rat import Mathlib.Data.PNat.Defs #align_import data.rat.lemmas from "leanprover-community/mathlib"@"550b58538991c8977703fdeb7c9d51a5aa27df11" namespace Rat o...
Mathlib/Data/Rat/Lemmas.lean
33
38
theorem den_dvd (a b : β„€) : ((a /. b).den : β„€) ∣ b := by
by_cases b0 : b = 0; Β· simp [b0] cases' e : a /. b with n d h c rw [mk'_eq_divInt, divInt_eq_iff b0 (ne_of_gt (Int.natCast_pos.2 (Nat.pos_of_ne_zero h)))] at e refine Int.dvd_natAbs.1 <| Int.natCast_dvd_natCast.2 <| c.symm.dvd_of_dvd_mul_left ?_ rw [← Int.natAbs_mul, ← Int.natCast_dvd_natCast, Int.dvd_natAbs...
[ " (a /. b).num ∣ a", " { num := n, den := d, den_nz := h, reduced := c }.num ∣ a", " n.natAbs ∣ a.natAbs * d", " ↑(a /. b).den ∣ b", " ↑{ num := n, den := d, den_nz := h, reduced := c }.den ∣ b", " d ∣ n.natAbs * b.natAbs", " ↑d ∣ a * ↑d" ]
[ " (a /. b).num ∣ a", " { num := n, den := d, den_nz := h, reduced := c }.num ∣ a", " n.natAbs ∣ a.natAbs * d" ]
import Mathlib.Algebra.MvPolynomial.PDeriv import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Derivative import Mathlib.Data.Nat.Choose.Sum import Mathlib.LinearAlgebra.LinearIndependent import Mathlib.RingTheory.Polynomial.Pochhammer #align_import ring_theory.polynomial.bernstein from "le...
Mathlib/RingTheory/Polynomial/Bernstein.lean
146
161
theorem iterate_derivative_at_0_eq_zero_of_lt (n : β„•) {Ξ½ k : β„•} : k < Ξ½ β†’ (Polynomial.derivative^[k] (bernsteinPolynomial R n Ξ½)).eval 0 = 0 := by
cases' ν with ν · rintro ⟨⟩ · rw [Nat.lt_succ_iff] induction' k with k ih generalizing n ν · simp [eval_at_0] · simp only [derivative_succ, Int.natCast_eq_zero, mul_eq_zero, Function.comp_apply, Function.iterate_succ, Polynomial.iterate_derivative_sub, Polynomial.iterate_derivative_na...
[ " bernsteinPolynomial β„€ 3 2 = 3 * X ^ 2 - 3 * X ^ 3", " 3 * X ^ 2 * (1 - X) = 3 * X ^ 2 - 3 * X ^ 3", " bernsteinPolynomial R n Ξ½ = 0", " Polynomial.map f (bernsteinPolynomial R n Ξ½) = bernsteinPolynomial S n Ξ½", " (bernsteinPolynomial R n Ξ½).comp (1 - X) = bernsteinPolynomial R n (n - Ξ½)", " bernsteinPol...
[ " bernsteinPolynomial β„€ 3 2 = 3 * X ^ 2 - 3 * X ^ 3", " 3 * X ^ 2 * (1 - X) = 3 * X ^ 2 - 3 * X ^ 3", " bernsteinPolynomial R n Ξ½ = 0", " Polynomial.map f (bernsteinPolynomial R n Ξ½) = bernsteinPolynomial S n Ξ½", " (bernsteinPolynomial R n Ξ½).comp (1 - X) = bernsteinPolynomial R n (n - Ξ½)", " bernsteinPol...
import Mathlib.Topology.Sets.Opens #align_import topology.local_at_target from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open TopologicalSpace Set Filter open Topology Filter variable {Ξ± Ξ² : Type*} [TopologicalSpace Ξ±] [TopologicalSpace Ξ²] {f : Ξ± β†’ Ξ²} variable {s : Set Ξ²} {ΞΉ : Ty...
Mathlib/Topology/LocalAtTarget.lean
116
126
theorem isClosedMap_iff_isClosedMap_of_iSup_eq_top : IsClosedMap f ↔ βˆ€ i, IsClosedMap ((U i).1.restrictPreimage f) := by
refine ⟨fun h i => h.restrictPreimage _, ?_⟩ rintro H s hs rw [isClosed_iff_coe_preimage_of_iSup_eq_top hU] intro i convert H i _ ⟨⟨_, hs.1, eq_compl_comm.mpr rfl⟩⟩ ext ⟨x, hx⟩ suffices (βˆƒ y, y ∈ s ∧ f y = x) ↔ βˆƒ y, y ∈ s ∧ f y ∈ U i ∧ f y = x by simpa [Set.restrictPreimage, ← Subtype.coe_inj] exac...
[ " Inducing (s.restrictPreimage f)", " βˆ€ (x : ↑(f ⁻¹' s)), 𝓝 x = comap Subtype.val (comap f (𝓝 (f ↑x)))", " 𝓝 a = comap Subtype.val (comap f (𝓝 (f ↑a)))", " IsClosedMap (s.restrictPreimage f)", " IsClosed t β†’ IsClosed (s.restrictPreimage f '' t)", " βˆ€ (u : Set Ξ±), IsClosed u β†’ Subtype.val ⁻¹' u = t β†’ βˆƒ...
[ " Inducing (s.restrictPreimage f)", " βˆ€ (x : ↑(f ⁻¹' s)), 𝓝 x = comap Subtype.val (comap f (𝓝 (f ↑x)))", " 𝓝 a = comap Subtype.val (comap f (𝓝 (f ↑a)))", " IsClosedMap (s.restrictPreimage f)", " IsClosed t β†’ IsClosed (s.restrictPreimage f '' t)", " βˆ€ (u : Set Ξ±), IsClosed u β†’ Subtype.val ⁻¹' u = t β†’ βˆƒ...
import Mathlib.Algebra.Group.Commutator import Mathlib.Algebra.Group.Subgroup.Finite import Mathlib.Data.Bracket import Mathlib.GroupTheory.Subgroup.Centralizer import Mathlib.Tactic.Group #align_import group_theory.commutator from "leanprover-community/mathlib"@"4be589053caf347b899a494da75410deb55fb3ef" variable...
Mathlib/GroupTheory/Commutator.lean
108
116
theorem commutator_commutator_eq_bot_of_rotate (h1 : ⁅⁅Hβ‚‚, H₃⁆, H₁⁆ = βŠ₯) (h2 : ⁅⁅H₃, H₁⁆, H₂⁆ = βŠ₯) : ⁅⁅H₁, H₂⁆, H₃⁆ = βŠ₯ := by
simp_rw [commutator_eq_bot_iff_le_centralizer, commutator_le, mem_centralizer_iff_commutator_eq_one, ← commutatorElement_def] at h1 h2 ⊒ intro x hx y hy z hz trans x * z * ⁅y, ⁅z⁻¹, x⁻¹⁆⁆⁻¹ * z⁻¹ * y * ⁅x⁻¹, ⁅y⁻¹, z⁆⁆⁻¹ * y⁻¹ * x⁻¹ Β· group Β· rw [h1 _ (Hβ‚‚.inv_mem hy) _ hz _ (H₁.inv_mem hx), h2 _ (H₃.inv_m...
[ " ⁅g₁, g₂⁆ = 1 ↔ g₁ * gβ‚‚ = gβ‚‚ * g₁", " ⁅g₁, g₂⁆⁻¹ = ⁅gβ‚‚, g₁⁆", " f ⁅g₁, g₂⁆ = ⁅f g₁, f g₂⁆", " ⁅H₁, H₂⁆ = βŠ₯ ↔ H₁ ≀ centralizer ↑Hβ‚‚", " (βˆ€ g₁ ∈ H₁, βˆ€ gβ‚‚ ∈ Hβ‚‚, ⁅g₁, g₂⁆ ∈ βŠ₯) ↔ H₁ ≀ centralizer ↑Hβ‚‚", " ⁅p, q⁆ ∈ βŠ₯ ↔ q * p = p * q", " ⁅⁅H₁, H₂⁆, H₃⁆ = βŠ₯", " βˆ€ g₁ ∈ H₁, βˆ€ gβ‚‚ ∈ Hβ‚‚, βˆ€ h ∈ ↑H₃, ⁅h, ⁅g₁, g₂⁆⁆ = ...
[ " ⁅g₁, g₂⁆ = 1 ↔ g₁ * gβ‚‚ = gβ‚‚ * g₁", " ⁅g₁, g₂⁆⁻¹ = ⁅gβ‚‚, g₁⁆", " f ⁅g₁, g₂⁆ = ⁅f g₁, f g₂⁆", " ⁅H₁, H₂⁆ = βŠ₯ ↔ H₁ ≀ centralizer ↑Hβ‚‚", " (βˆ€ g₁ ∈ H₁, βˆ€ gβ‚‚ ∈ Hβ‚‚, ⁅g₁, g₂⁆ ∈ βŠ₯) ↔ H₁ ≀ centralizer ↑Hβ‚‚", " ⁅p, q⁆ ∈ βŠ₯ ↔ q * p = p * q" ]
import Mathlib.AlgebraicGeometry.AffineScheme import Mathlib.RingTheory.Nilpotent.Lemmas import Mathlib.Topology.Sheaves.SheafCondition.Sites import Mathlib.Algebra.Category.Ring.Constructions import Mathlib.RingTheory.LocalProperties #align_import algebraic_geometry.properties from "leanprover-community/mathlib"@"88...
Mathlib/AlgebraicGeometry/Properties.lean
115
119
theorem isReducedOfIsAffineIsReduced [IsAffine X] [h : _root_.IsReduced (X.presheaf.obj (op ⊀))] : IsReduced X := haveI : IsReduced (Scheme.Spec.obj (op (Scheme.Ξ“.obj (op X)))) := by
rw [affine_isReduced_iff]; exact h isReducedOfOpenImmersion X.isoSpec.hom
[ " T0Space ↑↑X.toPresheafedSpace", " βˆƒ s, x ∈ s ∧ IsOpen s ∧ T0Space ↑s", " QuasiSober ↑↑X.toPresheafedSpace", " βˆ€ (s : ↑(Set.range fun x => Set.range ⇑(X.affineCover.map x).val.base)), IsOpen ↑s", " IsOpen β†‘βŸ¨(fun x => Set.range ⇑(X.affineCover.map x).val.base) i, β‹―βŸ©", " βˆ€ (s : ↑(Set.range fun x => Set.ran...
[ " T0Space ↑↑X.toPresheafedSpace", " βˆƒ s, x ∈ s ∧ IsOpen s ∧ T0Space ↑s", " QuasiSober ↑↑X.toPresheafedSpace", " βˆ€ (s : ↑(Set.range fun x => Set.range ⇑(X.affineCover.map x).val.base)), IsOpen ↑s", " IsOpen β†‘βŸ¨(fun x => Set.range ⇑(X.affineCover.map x).val.base) i, β‹―βŸ©", " βˆ€ (s : ↑(Set.range fun x => Set.ran...
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Algebra.BigOperators.Ring import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Ring.Opposite import Mathlib.Tactic.Abel #align_import algebra.geom_sum fro...
Mathlib/Algebra/GeomSum.lean
76
76
theorem one_geom_sum (n : β„•) : βˆ‘ i ∈ range n, (1 : Ξ±) ^ i = n := by
simp
[ " βˆ‘ i ∈ range (n + 1), x ^ i = x * βˆ‘ i ∈ range n, x ^ i + 1", " βˆ‘ i ∈ range 1, x ^ i = 1", " βˆ‘ i ∈ range 2, x ^ i = x + 1", " βˆ‘ i ∈ range 0, 0 ^ i = if 0 = 0 then 0 else 1", " βˆ‘ i ∈ range 1, 0 ^ i = if 1 = 0 then 0 else 1", " βˆ‘ i ∈ range (n + 2), 0 ^ i = if n + 2 = 0 then 0 else 1", " 0 ^ (n + 1) + βˆ‘ i ...
[ " βˆ‘ i ∈ range (n + 1), x ^ i = x * βˆ‘ i ∈ range n, x ^ i + 1", " βˆ‘ i ∈ range 1, x ^ i = 1", " βˆ‘ i ∈ range 2, x ^ i = x + 1", " βˆ‘ i ∈ range 0, 0 ^ i = if 0 = 0 then 0 else 1", " βˆ‘ i ∈ range 1, 0 ^ i = if 1 = 0 then 0 else 1", " βˆ‘ i ∈ range (n + 2), 0 ^ i = if n + 2 = 0 then 0 else 1", " 0 ^ (n + 1) + βˆ‘ i ...
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
146
148
theorem ite_mul_one {P : Prop} [Decidable P] {a b : M} : ite P (a * b) 1 = ite P a 1 * ite P b 1 := by
by_cases h:P <;> simp [h]
[ " (if P then a * b else 1) = (if P then a else 1) * if P then b else 1" ]
[]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Derivative import Mathlib.Algebra.Polynomial.Module.AEval import Mathlib.RingTheory.Derivation.Basic noncomputable section namespace Polynomial section CommSemiring variable {R A : Type*} [CommSemiring R] @[simps] def derivative' : D...
Mathlib/Algebra/Polynomial/Derivation.lean
43
46
theorem C_smul_derivation_apply (D : Derivation R R[X] A) (a : R) (f : R[X]) : C a β€’ D f = a β€’ D f := by
have : C a β€’ D f = D (C a * f) := by simp rw [this, C_mul', D.map_smul]
[ " { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } (f * g) =\n f β€’ { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } g +\n g β€’ { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } f", " C a β€’ D f = a β€’ D f", " C a β€’ D f = D (C a * f)" ]
[ " { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } (f * g) =\n f β€’ { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } g +\n g β€’ { toFun := ⇑derivative, map_add' := β‹―, map_smul' := β‹― } f" ]
import Mathlib.Order.UpperLower.Basic import Mathlib.Data.Finset.Preimage #align_import combinatorics.young.young_diagram from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf" open Function @[ext] structure YoungDiagram where cells : Finset (β„• Γ— β„•) isLowerSet : IsLowerSet (cel...
Mathlib/Combinatorics/Young/YoungDiagram.lean
214
215
theorem mem_transpose {ΞΌ : YoungDiagram} {c : β„• Γ— β„•} : c ∈ ΞΌ.transpose ↔ c.swap ∈ ΞΌ := by
simp [transpose]
[ " ΞΌ = Ξ½", " x✝¹ ∈ ↑((Equiv.prodComm β„• β„•).finsetCongr ΞΌ.cells) β†’ x✝ ∈ ↑((Equiv.prodComm β„• β„•).finsetCongr ΞΌ.cells)", " (Equiv.prodComm β„• β„•).symm x✝¹ ∈ ΞΌ.cells β†’ (Equiv.prodComm β„• β„•).symm x✝ ∈ ΞΌ.cells", " (Equiv.prodComm β„• β„•).symm x✝ ∈ ΞΌ.cells", " (Equiv.prodComm β„• β„•).symm x✝ ≀ (Equiv.prodComm β„• β„•).symm x✝¹", ...
[ " ΞΌ = Ξ½", " x✝¹ ∈ ↑((Equiv.prodComm β„• β„•).finsetCongr ΞΌ.cells) β†’ x✝ ∈ ↑((Equiv.prodComm β„• β„•).finsetCongr ΞΌ.cells)", " (Equiv.prodComm β„• β„•).symm x✝¹ ∈ ΞΌ.cells β†’ (Equiv.prodComm β„• β„•).symm x✝ ∈ ΞΌ.cells", " (Equiv.prodComm β„• β„•).symm x✝ ∈ ΞΌ.cells", " (Equiv.prodComm β„• β„•).symm x✝ ≀ (Equiv.prodComm β„• β„•).symm x✝¹" ]
import Mathlib.CategoryTheory.GlueData import Mathlib.Topology.Category.TopCat.Limits.Pullbacks import Mathlib.Topology.Category.TopCat.Opens import Mathlib.Tactic.Generalize import Mathlib.CategoryTheory.Elementwise #align_import topology.gluing from "leanprover-community/mathlib"@"178a32653e369dce2da68dc6b2694e385d...
Mathlib/Topology/Gluing.lean
164
201
theorem eqvGen_of_Ο€_eq -- Porting note: was `{x y : ∐ D.U} (h : 𝖣.Ο€ x = 𝖣.Ο€ y)` {x y : sigmaObj (Ξ² := D.toGlueData.J) (C := TopCat) D.toGlueData.U} (h : 𝖣.Ο€ x = 𝖣.Ο€ y) : EqvGen -- Porting note: was (Types.CoequalizerRel 𝖣.diagram.fstSigmaMap 𝖣.diagram.sndSigmaMap) (Types.CoequalizerRel...
delta GlueData.Ο€ Multicoequalizer.sigmaΟ€ at h -- Porting note: inlined `inferInstance` instead of leaving as a side goal. replace h := (TopCat.mono_iff_injective (Multicoequalizer.isoCoequalizer 𝖣.diagram).inv).mp inferInstance h let diagram := parallelPair 𝖣.diagram.fstSigmaMap 𝖣.diagram.sndSigmaMap β‹™ ...
[ " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(D.ΞΉ i) ⁻¹' U)", " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(Multicoequalizer.Ο€ D.diagram i) ⁻¹' U)", " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(Sigma.ΞΉ D.diagram.right i ≫ Multicoequalizer.sigmaΟ€ D.diagram) ⁻¹' U)", " IsOpen (⇑(homeoOfIso (Multicoequalizer.isoCoequalizer D.diagram).symm) ...
[ " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(D.ΞΉ i) ⁻¹' U)", " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(Multicoequalizer.Ο€ D.diagram i) ⁻¹' U)", " IsOpen U ↔ βˆ€ (i : D.J), IsOpen (⇑(Sigma.ΞΉ D.diagram.right i ≫ Multicoequalizer.sigmaΟ€ D.diagram) ⁻¹' U)", " IsOpen (⇑(homeoOfIso (Multicoequalizer.isoCoequalizer D.diagram).symm) ...