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.Algebra.Category.MonCat.Basic import Mathlib.CategoryTheory.Limits.HasLimits import Mathlib.CategoryTheory.ConcreteCategory.Elementwise #align_import algebra.category.Mon.colimits from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe v open CategoryTheory open Ca...
Mathlib/Algebra/Category/MonCat/Colimits.lean
188
191
theorem cocone_naturality_components (j j' : J) (f : j ⟢ j') (x : F.obj j) : (coconeMorphism F j') (F.map f x) = (coconeMorphism F j) x := by
rw [← cocone_naturality F f] rfl
[ " Inhabited (ColimitType F)", " Inhabited (Quotient (colimitSetoid F))", " Monoid (ColimitType F)", " F.map f ≫ coconeMorphism F j' = coconeMorphism F j", " (F.map f ≫ coconeMorphism F j') x✝ = (coconeMorphism F j) x✝", " Setoid.r (Prequotient.of j' ((F.map f) x✝)) (Prequotient.of j x✝)", " (coconeMorph...
[ " Inhabited (ColimitType F)", " Inhabited (Quotient (colimitSetoid F))", " Monoid (ColimitType F)", " F.map f ≫ coconeMorphism F j' = coconeMorphism F j", " (F.map f ≫ coconeMorphism F j') x✝ = (coconeMorphism F j) x✝", " Setoid.r (Prequotient.of j' ((F.map f) x✝)) (Prequotient.of j x✝)" ]
import Mathlib.LinearAlgebra.Isomorphisms import Mathlib.LinearAlgebra.Projection import Mathlib.Order.JordanHolder import Mathlib.Order.CompactlyGenerated.Intervals import Mathlib.LinearAlgebra.FiniteDimensional #align_import ring_theory.simple_module from "leanprover-community/mathlib"@"cce7f68a7eaadadf74c82bbac207...
Mathlib/RingTheory/SimpleModule.lean
91
94
theorem isSimpleModule_iff_isCoatom : IsSimpleModule R (M β§Έ m) ↔ IsCoatom m := by
rw [← Set.isSimpleOrder_Ici_iff_isCoatom] apply OrderIso.isSimpleOrder_iff exact Submodule.comapMkQRelIso m
[ " βˆƒ y, 0 β‰  y", " βŠ₯ = ⊀", " x ∈ βŠ₯ ↔ x ∈ ⊀", " IsSimpleModule R β†₯m ↔ IsAtom m", " IsSimpleModule R β†₯m ↔ IsSimpleOrder ↑(Set.Iic m)", " IsSimpleModule R (M β§Έ m) ↔ IsCoatom m", " IsSimpleModule R (M β§Έ m) ↔ IsSimpleOrder ↑(Set.Ici m)", " Submodule R (M β§Έ m) ≃o ↑(Set.Ici m)" ]
[ " βˆƒ y, 0 β‰  y", " βŠ₯ = ⊀", " x ∈ βŠ₯ ↔ x ∈ ⊀", " IsSimpleModule R β†₯m ↔ IsAtom m", " IsSimpleModule R β†₯m ↔ IsSimpleOrder ↑(Set.Iic m)" ]
import Mathlib.Algebra.Lie.Abelian import Mathlib.Algebra.Lie.IdealOperations import Mathlib.Order.Hom.Basic #align_import algebra.lie.solvable from "leanprover-community/mathlib"@"a50170a88a47570ed186b809ca754110590f9476" universe u v w w₁ wβ‚‚ variable (R : Type u) (L : Type v) (M : Type w) {L' : Type w₁} variab...
Mathlib/Algebra/Lie/Solvable.lean
116
124
theorem derivedSeriesOfIdeal_add_le_add (J : LieIdeal R L) (k l : β„•) : D (k + l) (I + J) ≀ D k I + D l J := by
let D₁ : LieIdeal R L β†’o LieIdeal R L := { toFun := fun I => ⁅I, I⁆ monotone' := fun I J h => LieSubmodule.mono_lie I J I J h h } have h₁ : βˆ€ I J : LieIdeal R L, D₁ (I βŠ” J) ≀ D₁ I βŠ” J := by simp [D₁, LieSubmodule.lie_le_right, LieSubmodule.lie_le_left, le_sup_of_le_right] rw [← D₁.iterate_sup_le_su...
[ " D (k + l) I = D k (D l I)", " D (0 + l) I = D 0 (D l I)", " D (k + 1 + l) I = D (k + 1) (D l I)", " D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k β†’ D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ 0 β†’ D 0 I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k + 1 β†’ D (k + 1) I ≀ D l J", " D 0 I ≀ D l J", " I ≀ D 0 J", " D (k + 1) I ≀ D l J", "...
[ " D (k + l) I = D k (D l I)", " D (0 + l) I = D 0 (D l I)", " D (k + 1 + l) I = D (k + 1) (D l I)", " D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k β†’ D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ 0 β†’ D 0 I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k + 1 β†’ D (k + 1) I ≀ D l J", " D 0 I ≀ D l J", " I ≀ D 0 J", " D (k + 1) I ≀ D l J", "...
import Mathlib.Data.Finset.Prod import Mathlib.Data.Set.Finite #align_import data.finset.n_ary from "leanprover-community/mathlib"@"eba7871095e834365616b5e43c8c7bb0b37058d0" open Function Set variable {Ξ± Ξ±' Ξ² Ξ²' Ξ³ Ξ³' Ξ΄ Ξ΄' Ξ΅ Ξ΅' ΞΆ ΞΆ' Ξ½ : Type*} namespace Finset variable [DecidableEq Ξ±'] [DecidableEq Ξ²'] [Decidabl...
Mathlib/Data/Finset/NAry.lean
73
74
theorem mem_imageβ‚‚_iff (hf : Injective2 f) : f a b ∈ imageβ‚‚ f s t ↔ a ∈ s ∧ b ∈ t := by
rw [← mem_coe, coe_imageβ‚‚, mem_image2_iff hf, mem_coe, mem_coe]
[ " c ∈ imageβ‚‚ f s t ↔ βˆƒ a ∈ s, βˆƒ b ∈ t, f a b = c", " (imageβ‚‚ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s Γ—Λ’ ↑t)", " (imageβ‚‚ f s t).card = (s Γ—Λ’ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s Γ—Λ’ t)", " f a b ∈ imageβ‚‚ f s t ↔ a ∈ s ∧ b ∈ t" ]
[ " c ∈ imageβ‚‚ f s t ↔ βˆƒ a ∈ s, βˆƒ b ∈ t, f a b = c", " (imageβ‚‚ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s Γ—Λ’ ↑t)", " (imageβ‚‚ f s t).card = (s Γ—Λ’ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s Γ—Λ’ t)" ]
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285b...
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
144
151
theorem add (hf : IsBoundedLinearMap π•œ f) (hg : IsBoundedLinearMap π•œ g) : IsBoundedLinearMap π•œ fun e => f e + g e := let ⟨hlf, Mf, _, hMf⟩ := hf let ⟨hlg, Mg, _, hMg⟩ := hg (hlf.mk' _ + hlg.mk' _).isLinear.with_bound (Mf + Mg) fun x => calc β€–f x + g xβ€– ≀ Mf * β€–xβ€– + Mg * β€–xβ€– := norm_add_le_of_le (...
rw [add_mul]
[ " βˆ€ (x : E), β€–0 xβ€– ≀ 0 * β€–xβ€–", " βˆ€ (x : E), β€–LinearMap.id xβ€– ≀ 1 * β€–xβ€–", " IsBoundedLinearMap π•œ fun x => x.1", " β€–(LinearMap.fst π•œ E F) xβ€– ≀ 1 * β€–xβ€–", " β€–(LinearMap.fst π•œ E F) xβ€– ≀ β€–xβ€–", " IsBoundedLinearMap π•œ fun x => x.2", " β€–(LinearMap.snd π•œ E F) xβ€– ≀ 1 * β€–xβ€–", " β€–(LinearMap.snd π•œ E F) xβ€– ≀ β€–...
[ " βˆ€ (x : E), β€–0 xβ€– ≀ 0 * β€–xβ€–", " βˆ€ (x : E), β€–LinearMap.id xβ€– ≀ 1 * β€–xβ€–", " IsBoundedLinearMap π•œ fun x => x.1", " β€–(LinearMap.fst π•œ E F) xβ€– ≀ 1 * β€–xβ€–", " β€–(LinearMap.fst π•œ E F) xβ€– ≀ β€–xβ€–", " IsBoundedLinearMap π•œ fun x => x.2", " β€–(LinearMap.snd π•œ E F) xβ€– ≀ 1 * β€–xβ€–", " β€–(LinearMap.snd π•œ E F) xβ€– ≀ β€–...
import Mathlib.Topology.MetricSpace.PseudoMetric import Mathlib.Topology.UniformSpace.Equicontinuity #align_import topology.metric_space.equicontinuity from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Filter Topology Uniformity variable {Ξ± Ξ² ΞΉ : Type*} [PseudoMetricSpace Ξ±] na...
Mathlib/Topology/MetricSpace/Equicontinuity.lean
103
114
theorem uniformEquicontinuous_of_continuity_modulus {ΞΉ : Type*} [PseudoMetricSpace Ξ²] (b : ℝ β†’ ℝ) (b_lim : Tendsto b (𝓝 0) (𝓝 0)) (F : ΞΉ β†’ Ξ² β†’ Ξ±) (H : βˆ€ (x y : Ξ²) (i), dist (F i x) (F i y) ≀ b (dist x y)) : UniformEquicontinuous F := by
rw [Metric.uniformEquicontinuous_iff] intro Ξ΅ Ξ΅0 rcases tendsto_nhds_nhds.1 b_lim Ξ΅ Ξ΅0 with ⟨δ, Ξ΄0, hδ⟩ refine ⟨δ, Ξ΄0, fun x y hxy i => ?_⟩ calc dist (F i x) (F i y) ≀ b (dist x y) := H x y i _ ≀ |b (dist x y)| := le_abs_self _ _ = dist (b (dist x y)) 0 := by simp [Real.dist_eq] _ < Ξ΅ := hΞ΄ (...
[ " EquicontinuousAt F xβ‚€ ↔ βˆ€ Ξ΅ > 0, βˆƒ U ∈ 𝓝 xβ‚€, βˆ€ x ∈ U, βˆ€ x' ∈ U, βˆ€ (i : ΞΉ), dist (F i x) (F i x') < Ξ΅", " (βˆ€ U ∈ 𝓀 Ξ±, βˆƒ V ∈ 𝓝 xβ‚€, βˆ€ x ∈ V, βˆ€ y ∈ V, βˆ€ (i : ΞΉ), (F i x, F i y) ∈ U) ↔\n βˆ€ Ξ΅ > 0, βˆƒ U ∈ 𝓝 xβ‚€, βˆ€ x ∈ U, βˆ€ x' ∈ U, βˆ€ (i : ΞΉ), dist (F i x) (F i x') < Ξ΅", " (βˆ€ U ∈ 𝓀 Ξ±, βˆƒ V ∈ 𝓝 xβ‚€, βˆ€ x ∈ V, βˆ€ y ∈...
[ " EquicontinuousAt F xβ‚€ ↔ βˆ€ Ξ΅ > 0, βˆƒ U ∈ 𝓝 xβ‚€, βˆ€ x ∈ U, βˆ€ x' ∈ U, βˆ€ (i : ΞΉ), dist (F i x) (F i x') < Ξ΅", " (βˆ€ U ∈ 𝓀 Ξ±, βˆƒ V ∈ 𝓝 xβ‚€, βˆ€ x ∈ V, βˆ€ y ∈ V, βˆ€ (i : ΞΉ), (F i x, F i y) ∈ U) ↔\n βˆ€ Ξ΅ > 0, βˆƒ U ∈ 𝓝 xβ‚€, βˆ€ x ∈ U, βˆ€ x' ∈ U, βˆ€ (i : ΞΉ), dist (F i x) (F i x') < Ξ΅", " (βˆ€ U ∈ 𝓀 Ξ±, βˆƒ V ∈ 𝓝 xβ‚€, βˆ€ x ∈ V, βˆ€ y ∈...
import Mathlib.Combinatorics.SetFamily.Shadow #align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1" open Finset variable {Ξ± : Type*} theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra Ξ±] (u v : Ξ±) : { x | Disjoint u x ∧ v ≀ x }....
Mathlib/Combinatorics/SetFamily/Compression/UV.lean
98
102
theorem compress_self (u a : Ξ±) : compress u u a = a := by
unfold compress split_ifs with h Β· exact h.1.symm.sup_sdiff_cancel_right Β· rfl
[ " Set.InjOn (fun x => (x βŠ” u) \\ v) {x | Disjoint u x ∧ v ≀ x}", " a = b", " ((a βŠ” u) \\ v) \\ u βŠ” v = ((b βŠ” u) \\ v) \\ u βŠ” v", " compress u v ((a βŠ” v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≀ a then (a βŠ” u) \\ u else a) = a", " (a βŠ” u) \\ u = a", " a = a" ]
[ " Set.InjOn (fun x => (x βŠ” u) \\ v) {x | Disjoint u x ∧ v ≀ x}", " a = b", " ((a βŠ” u) \\ v) \\ u βŠ” v = ((b βŠ” u) \\ v) \\ u βŠ” v", " compress u v ((a βŠ” v) \\ u) = a" ]
import Mathlib.Combinatorics.SimpleGraph.Connectivity #align_import combinatorics.simple_graph.prod from "leanprover-community/mathlib"@"2985fa3c31a27274aed06c433510bc14b73d6488" variable {Ξ± Ξ² Ξ³ : Type*} namespace SimpleGraph -- Porting note: pruned variables to keep things out of local contexts, which -- can im...
Mathlib/Combinatorics/SimpleGraph/Prod.lean
59
60
theorem boxProd_adj_left : (G β–‘ H).Adj (a₁, b) (aβ‚‚, b) ↔ G.Adj a₁ aβ‚‚ := by
simp only [boxProd_adj, and_true, SimpleGraph.irrefl, false_and, or_false]
[ " (fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) x y β†’\n (fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) y x", " Β¬(fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) x x", " (G β–‘ H).Adj (a₁, b) (aβ‚‚, b) ↔ G.Adj a₁ aβ‚‚" ]
[ " (fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) x y β†’\n (fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) y x", " Β¬(fun x y => G.Adj x.1 y.1 ∧ x.2 = y.2 ∨ H.Adj x.2 y.2 ∧ x.1 = y.1) x x" ]
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.Order.Invertible import Mathlib.Algebra.Order.Module.OrderedSMul import Mathlib.Algebra.Order.Group.Instances import Mathlib.LinearAlgebra.AffineSpace.Slope import Mathlib.LinearAlgebra.AffineSpace.Midpoint import Mathlib.Tactic.FieldSimp #align_import li...
Mathlib/LinearAlgebra/AffineSpace/Ordered.lean
52
54
theorem lineMap_mono_left (ha : a ≀ a') (hr : r ≀ 1) : lineMap a b r ≀ lineMap a' b r := by
simp only [lineMap_apply_module] exact add_le_add_right (smul_le_smul_of_nonneg_left ha (sub_nonneg.2 hr)) _
[ " (lineMap a b) r ≀ (lineMap a' b) r", " (1 - r) β€’ a + r β€’ b ≀ (1 - r) β€’ a' + r β€’ b" ]
[]
import Mathlib.CategoryTheory.Subobject.MonoOver import Mathlib.CategoryTheory.Skeletal import Mathlib.CategoryTheory.ConcreteCategory.Basic import Mathlib.Tactic.ApplyFun import Mathlib.Tactic.CategoryTheory.Elementwise #align_import category_theory.subobject.basic from "leanprover-community/mathlib"@"70fd9563a21e7b...
Mathlib/CategoryTheory/Subobject/Basic.lean
561
564
theorem pullback_comp (f : X ⟢ Y) (g : Y ⟢ Z) (x : Subobject Z) : (pullback (f ≫ g)).obj x = (pullback f).obj ((pullback g).obj x) := by
induction' x using Quotient.inductionOn' with t exact Quotient.sound ⟨(MonoOver.pullbackComp _ _).app t⟩
[ " PartialOrder (Subobject X)", " PartialOrder (ThinSkeleton (MonoOver X))", " 𝟭 (Subobject A) β‰… lower e.functor β‹™ lower e.inverse", " 𝟭 (Subobject A) = lower e.functor β‹™ lower e.inverse", " 𝟭 (Subobject A) = ThinSkeleton.map (𝟭 (MonoOver A))", " lower e.functor β‹™ lower e.inverse = ThinSkeleton.map (e....
[ " PartialOrder (Subobject X)", " PartialOrder (ThinSkeleton (MonoOver X))", " 𝟭 (Subobject A) β‰… lower e.functor β‹™ lower e.inverse", " 𝟭 (Subobject A) = lower e.functor β‹™ lower e.inverse", " 𝟭 (Subobject A) = ThinSkeleton.map (𝟭 (MonoOver A))", " lower e.functor β‹™ lower e.inverse = ThinSkeleton.map (e....
import Mathlib.Algebra.Group.Commute.Units import Mathlib.Algebra.Group.Int import Mathlib.Algebra.GroupWithZero.Semiconj import Mathlib.Data.Nat.GCD.Basic import Mathlib.Order.Bounds.Basic #align_import data.int.gcd from "leanprover-community/mathlib"@"47a1a73351de8dd6c8d3d32b569c8e434b03ca47" namespace Nat ...
Mathlib/Data/Int/GCD.lean
48
48
theorem xgcd_zero_left {s t r' s' t'} : xgcdAux 0 s t r' s' t' = (r', s', t') := by
simp [xgcdAux]
[ " (invImage\n (fun x =>\n PSigma.casesOn x fun a a_1 =>\n PSigma.casesOn a_1 fun a_2 a_3 =>\n PSigma.casesOn a_3 fun a_4 a_5 => PSigma.casesOn a_5 fun a_6 a_7 => PSigma.casesOn a_7 fun a_8 a_9 => a)\n instWellFoundedRelationOfSizeOf).1\n ⟨r' % k.succ, ⟨s' - ↑q * s, ...
[ " (invImage\n (fun x =>\n PSigma.casesOn x fun a a_1 =>\n PSigma.casesOn a_1 fun a_2 a_3 =>\n PSigma.casesOn a_3 fun a_4 a_5 => PSigma.casesOn a_5 fun a_6 a_7 => PSigma.casesOn a_7 fun a_8 a_9 => a)\n instWellFoundedRelationOfSizeOf).1\n ⟨r' % k.succ, ⟨s' - ↑q * s, ...
import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar import Mathlib.MeasureTheory.Integral.SetIntegral #align_import measure_theory.measure.haar.normed_space from "leanprover-community/mathlib"@"b84aee748341da06a6d78491367e2c0e9f15e8a5" noncomputable sect...
Mathlib/MeasureTheory/Measure/Haar/NormedSpace.lean
97
99
theorem integral_comp_inv_smul (f : E β†’ F) (R : ℝ) : ∫ x, f (R⁻¹ β€’ x) βˆ‚ΞΌ = |R ^ finrank ℝ E| β€’ ∫ x, f x βˆ‚ΞΌ := by
rw [integral_comp_smul μ f R⁻¹, inv_pow, inv_inv]
[ " NoAtoms ΞΌ", " ∫ (x : E), f (R β€’ x) βˆ‚ΞΌ = |(R ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " ∫ (x : E), f (0 β€’ x) βˆ‚ΞΌ = |(0 ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " (ΞΌ univ).toReal β€’ f 0 = |(0 ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " f = fun x => f 0", " f x = f 0", "E : Type u_1\ninst✝⁷ : NormedAddCommGrou...
[ " NoAtoms ΞΌ", " ∫ (x : E), f (R β€’ x) βˆ‚ΞΌ = |(R ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " ∫ (x : E), f (0 β€’ x) βˆ‚ΞΌ = |(0 ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " (ΞΌ univ).toReal β€’ f 0 = |(0 ^ finrank ℝ E)⁻¹| β€’ ∫ (x : E), f x βˆ‚ΞΌ", " f = fun x => f 0", " f x = f 0", "E : Type u_1\ninst✝⁷ : NormedAddCommGrou...
import Mathlib.Analysis.Convolution import Mathlib.Analysis.SpecialFunctions.Trigonometric.EulerSineProd import Mathlib.Analysis.SpecialFunctions.Gamma.BohrMollerup import Mathlib.Analysis.Analytic.IsolatedZeros import Mathlib.Analysis.Complex.CauchyIntegral #align_import analysis.special_functions.gamma.beta from "l...
Mathlib/Analysis/SpecialFunctions/Gamma/Beta.lean
530
534
theorem one_div_Gamma_eq_self_mul_one_div_Gamma_add_one (s : β„‚) : (Gamma s)⁻¹ = s * (Gamma (s + 1))⁻¹ := by
rcases ne_or_eq s 0 with (h | rfl) Β· rw [Gamma_add_one s h, mul_inv, mul_inv_cancel_leftβ‚€ h] Β· rw [zero_add, Gamma_zero, inv_zero, zero_mul]
[ " s.Gamma⁻¹ = s * (s + 1).Gamma⁻¹", " (Gamma 0)⁻¹ = 0 * (0 + 1).Gamma⁻¹" ]
[]
import Mathlib.Data.Set.Lattice import Mathlib.Data.Set.Pairwise.Basic #align_import data.set.pairwise.lattice from "leanprover-community/mathlib"@"c4c2ed622f43768eff32608d4a0f8a6cec1c047d" open Function Set Order variable {Ξ± Ξ² Ξ³ ΞΉ ΞΉ' : Type*} {ΞΊ : Sort*} {r p q : Ξ± β†’ Ξ± β†’ Prop} section Pairwise variable {f g : ...
Mathlib/Data/Set/Pairwise/Lattice.lean
147
153
theorem Set.PairwiseDisjoint.subset_of_biUnion_subset_biUnion (hβ‚€ : (s βˆͺ t).PairwiseDisjoint f) (h₁ : βˆ€ i ∈ s, (f i).Nonempty) (h : ⋃ i ∈ s, f i βŠ† ⋃ i ∈ t, f i) : s βŠ† t := by
rintro i hi obtain ⟨a, hai⟩ := h₁ i hi obtain ⟨j, hj, haj⟩ := mem_iUnionβ‚‚.1 (h <| mem_iUnionβ‚‚_of_mem hi hai) rwa [hβ‚€.eq (subset_union_left hi) (subset_union_right hj) (not_disjoint_iff.2 ⟨a, hai, haj⟩)]
[ " s βŠ† t", " i ∈ t" ]
[]
import Mathlib.Algebra.Category.ModuleCat.EpiMono import Mathlib.Algebra.Category.ModuleCat.Kernels import Mathlib.CategoryTheory.Subobject.WellPowered import Mathlib.CategoryTheory.Subobject.Limits #align_import algebra.category.Module.subobject from "leanprover-community/mathlib"@"6d584f1709bedbed9175bd9350df46599b...
Mathlib/Algebra/Category/ModuleCat/Subobject.lean
111
120
theorem cokernel_Ο€_imageSubobject_ext {L M N : ModuleCat.{v} R} (f : L ⟢ M) [HasImage f] (g : (imageSubobject f : ModuleCat.{v} R) ⟢ N) [HasCokernel g] {x y : N} (l : L) (w : x = y + g (factorThruImageSubobject f l)) : cokernel.Ο€ g x = cokernel.Ο€ g y := by
subst w -- Porting note: The proof from here used to just be `simp`. simp only [map_add, add_right_eq_self] change ((cokernel.Ο€ g) ∘ (g) ∘ (factorThruImageSubobject f)) l = 0 rw [← coe_comp, ← coe_comp, Category.assoc] simp only [cokernel.condition, comp_zero] rfl
[ " (fun S => LinearMap.range S.arrow) ((fun N => Subobject.mk (β†ΎN.subtype)) N) = N", " (fun S => LinearMap.range S.arrow) ((fun N => Subobject.mk (β†ΎN.subtype)) N) =\n LinearMap.range ((underlyingIso (β†ΎN.subtype)).inv ≫ (Subobject.mk (β†ΎN.subtype)).arrow)", " (underlyingIso (β†ΎN.subtype)).inv = ↑(underlyingIso (...
[ " (fun S => LinearMap.range S.arrow) ((fun N => Subobject.mk (β†ΎN.subtype)) N) = N", " (fun S => LinearMap.range S.arrow) ((fun N => Subobject.mk (β†ΎN.subtype)) N) =\n LinearMap.range ((underlyingIso (β†ΎN.subtype)).inv ≫ (Subobject.mk (β†ΎN.subtype)).arrow)", " (underlyingIso (β†ΎN.subtype)).inv = ↑(underlyingIso (...
import Mathlib.Algebra.Group.Commute.Basic import Mathlib.Data.Fintype.Card import Mathlib.GroupTheory.Perm.Basic #align_import group_theory.perm.support from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Equiv Finset namespace Equiv.Perm variable {Ξ± : Type*} section support s...
Mathlib/GroupTheory/Perm/Support.lean
270
271
theorem set_support_apply_mem {p : Perm Ξ±} {a : Ξ±} : p a ∈ { x | p x β‰  x } ↔ a ∈ { x | p x β‰  x } := by
simp
[ " {x | p⁻¹ x β‰  x} = {x | p x β‰  x}", " x ∈ {x | p⁻¹ x β‰  x} ↔ x ∈ {x | p x β‰  x}", " Β¬p⁻¹ x = x ↔ Β¬p x = x", " p a ∈ {x | p x β‰  x} ↔ a ∈ {x | p x β‰  x}" ]
[ " {x | p⁻¹ x β‰  x} = {x | p x β‰  x}", " x ∈ {x | p⁻¹ x β‰  x} ↔ x ∈ {x | p x β‰  x}", " Β¬p⁻¹ x = x ↔ Β¬p x = x" ]
import Mathlib.Algebra.Module.Equiv import Mathlib.Algebra.Module.Submodule.Basic import Mathlib.Algebra.PUnitInstances import Mathlib.Data.Set.Subsingleton #align_import algebra.module.submodule.lattice from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" universe v variable {R S M : Ty...
Mathlib/Algebra/Module/Submodule/Lattice.lean
131
132
theorem nontrivial_iff_ne_bot : Nontrivial p ↔ p β‰  βŠ₯ := by
rw [iff_not_comm, not_nontrivial_iff_subsingleton, subsingleton_iff_eq_bot]
[ " βˆ€ (c : R) {x : M},\n x ∈ { carrier := {0}, add_mem' := β‹―, zero_mem' := β‹― }.carrier β†’\n c β€’ x ∈ { carrier := {0}, add_mem' := β‹―, zero_mem' := β‹― }.carrier", " x ∈ βŠ₯ β†’ x ∈ p", " x = y", " ⟨x, xm⟩ = y", " ⟨x, xm⟩ = ⟨y, ym⟩", " 0 = y", " p β‰  βŠ₯ ↔ βˆƒ x ∈ p, x β‰  0", " Subsingleton β†₯p ↔ p = βŠ₯", " (βˆ€...
[ " βˆ€ (c : R) {x : M},\n x ∈ { carrier := {0}, add_mem' := β‹―, zero_mem' := β‹― }.carrier β†’\n c β€’ x ∈ { carrier := {0}, add_mem' := β‹―, zero_mem' := β‹― }.carrier", " x ∈ βŠ₯ β†’ x ∈ p", " x = y", " ⟨x, xm⟩ = y", " ⟨x, xm⟩ = ⟨y, ym⟩", " 0 = y", " p β‰  βŠ₯ ↔ βˆƒ x ∈ p, x β‰  0", " Subsingleton β†₯p ↔ p = βŠ₯", " (βˆ€...
import Mathlib.RingTheory.Nilpotent.Basic import Mathlib.RingTheory.UniqueFactorizationDomain #align_import algebra.squarefree from "leanprover-community/mathlib"@"00d163e35035c3577c1c79fa53b68de17781ffc1" variable {R : Type*} def Squarefree [Monoid R] (r : R) : Prop := βˆ€ x : R, x * x ∣ r β†’ IsUnit x #align sq...
Mathlib/Algebra/Squarefree/Basic.lean
154
163
theorem irreducible_sq_not_dvd_iff_eq_zero_and_no_irreducibles_or_squarefree (r : R) : (βˆ€ x : R, Irreducible x β†’ Β¬x * x ∣ r) ↔ (r = 0 ∧ βˆ€ x : R, Β¬Irreducible x) ∨ Squarefree r := by
refine ⟨fun h ↦ ?_, ?_⟩ Β· rcases eq_or_ne r 0 with (rfl | hr) Β· exact .inl (by simpa using h) Β· exact .inr ((squarefree_iff_no_irreducibles hr).mpr h) Β· rintro (⟨rfl, h⟩ | h) Β· simpa using h intro x hx t exact hx.not_unit (h x t)
[ " Β¬Squarefree 0", " βˆƒ x, Β¬(x * x ∣ 0 β†’ IsUnit x)", " Β¬(0 * 0 ∣ 0 β†’ IsUnit 0)", " m β‰  0", " False", " Squarefree x", " IsUnit y", " n = 0 ∨ n = 1", " IsUnit x", " 2 ≀ n", " x * x ∣ x ^ n", " x ^ 2 ∣ x ^ n", " Squarefree x ↔ βˆ€ (p : R), Irreducible p β†’ Β¬p * p ∣ x", " (βˆ€ (x : R), Irreducible x...
[ " Β¬Squarefree 0", " βˆƒ x, Β¬(x * x ∣ 0 β†’ IsUnit x)", " Β¬(0 * 0 ∣ 0 β†’ IsUnit 0)", " m β‰  0", " False", " Squarefree x", " IsUnit y", " n = 0 ∨ n = 1", " IsUnit x", " 2 ≀ n", " x * x ∣ x ^ n", " x ^ 2 ∣ x ^ n", " Squarefree x ↔ βˆ€ (p : R), Irreducible p β†’ Β¬p * p ∣ x" ]
import Mathlib.Analysis.Calculus.ContDiff.Basic import Mathlib.Analysis.NormedSpace.FiniteDimension #align_import analysis.calculus.bump_function_inner from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" noncomputable section open Function Set Filter open scoped Topology Filter variable...
Mathlib/Analysis/Calculus/BumpFunction/Basic.lean
154
157
theorem one_of_mem_closedBall (hx : x ∈ closedBall c f.rIn) : f x = 1 := by
apply ContDiffBumpBase.eq_one _ _ f.one_lt_rOut_div_rIn simpa only [norm_smul, Real.norm_eq_abs, abs_inv, abs_of_nonneg f.rIn_pos.le, ← div_eq_inv_mul, div_le_one f.rIn_pos] using mem_closedBall_iff_norm.1 hx
[ " 1 < f.rOut / f.rIn", " f.rIn < f.rOut", " ↑f (c - x) = ↑f (c + x)", " ↑f (-x) = ↑f x", " ↑f x = 1", " β€–(fun x => f.rIn⁻¹ β€’ (x - c)) xβ€– ≀ 1" ]
[ " 1 < f.rOut / f.rIn", " f.rIn < f.rOut", " ↑f (c - x) = ↑f (c + x)", " ↑f (-x) = ↑f x" ]
import Mathlib.Topology.PartialHomeomorph import Mathlib.Analysis.Normed.Group.AddTorsor import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Data.Real.Sqrt #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Set Metric Pointwise var...
Mathlib/Analysis/NormedSpace/HomeomorphBall.lean
144
146
theorem univBall_symm_apply_center (c : P) (r : ℝ) : (univBall c r).symm c = 0 := by
have : 0 ∈ (univBall c r).source := by simp simpa only [univBall_apply_zero] using (univBall c r).left_inv this
[ " (fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) x ∈ ball 0 1", " 0 < 1 + β€–xβ€– ^ 2", " β€–xβ€– ^ 2 < 1 + β€–xβ€– ^ 2", " (fun y => (√(1 - β€–yβ€– ^ 2))⁻¹ β€’ y) ((fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) x) = x", " (fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) ((fun y => (√(1 - β€–yβ€– ^ 2))⁻¹ β€’ y) y) = y", " 0 < 1 - β€–yβ€– ^ 2", " ContinuousOn\n ↑{ toFu...
[ " (fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) x ∈ ball 0 1", " 0 < 1 + β€–xβ€– ^ 2", " β€–xβ€– ^ 2 < 1 + β€–xβ€– ^ 2", " (fun y => (√(1 - β€–yβ€– ^ 2))⁻¹ β€’ y) ((fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) x) = x", " (fun x => (√(1 + β€–xβ€– ^ 2))⁻¹ β€’ x) ((fun y => (√(1 - β€–yβ€– ^ 2))⁻¹ β€’ y) y) = y", " 0 < 1 - β€–yβ€– ^ 2", " ContinuousOn\n ↑{ toFu...
import Mathlib.Topology.Order.IsLUB open Set Filter TopologicalSpace Topology Function open OrderDual (toDual ofDual) variable {Ξ± Ξ² Ξ³ : Type*} section ConditionallyCompleteLinearOrder variable [ConditionallyCompleteLinearOrder Ξ±] [TopologicalSpace Ξ±] [OrderTopology Ξ±] [ConditionallyCompleteLinearOrder Ξ²] [Top...
Mathlib/Topology/Order/Monotone.lean
282
292
theorem Monotone.tendsto_nhdsWithin_Iio {Ξ± Ξ² : Type*} [LinearOrder Ξ±] [TopologicalSpace Ξ±] [OrderTopology Ξ±] [ConditionallyCompleteLinearOrder Ξ²] [TopologicalSpace Ξ²] [OrderTopology Ξ²] {f : Ξ± β†’ Ξ²} (Mf : Monotone f) (x : Ξ±) : Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x))) := by
rcases eq_empty_or_nonempty (Iio x) with (h | h); Β· simp [h] refine tendsto_order.2 ⟨fun l hl => ?_, fun m hm => ?_⟩ Β· obtain ⟨z, zx, lz⟩ : βˆƒ a : Ξ±, a < x ∧ l < f a := by simpa only [mem_image, exists_prop, exists_exists_and_eq_and] using exists_lt_of_lt_csSup (h.image _) hl exact mem_of_supers...
[ " f (sSup s) = sSup (f '' s)", " IsLUB (f '' s) (f (sSup s))", " Tendsto f (𝓝[s] sSup s) (𝓝 (f (sSup s)))", " f (⨆ i, g i) = ⨆ i, f (g i)", " sSup (range (f ∘ fun i => g i)) = sSup (range fun i => f (g i))", " Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))", " βˆ€αΆ  (b : Ξ±) in 𝓝[<] x, l < f b", " βˆƒ a < ...
[ " f (sSup s) = sSup (f '' s)", " IsLUB (f '' s) (f (sSup s))", " Tendsto f (𝓝[s] sSup s) (𝓝 (f (sSup s)))", " f (⨆ i, g i) = ⨆ i, f (g i)", " sSup (range (f ∘ fun i => g i)) = sSup (range fun i => f (g i))" ]
import Mathlib.RingTheory.RingHomProperties import Mathlib.RingTheory.IntegralClosure #align_import ring_theory.ring_hom.integral from "leanprover-community/mathlib"@"a7c017d750512a352b623b1824d75da5998457d0" namespace RingHom open scoped TensorProduct open TensorProduct Algebra.TensorProduct theorem isIntegra...
Mathlib/RingTheory/RingHom/Integral.lean
35
41
theorem isIntegral_stableUnderBaseChange : StableUnderBaseChange fun f => f.IsIntegral := by
refine StableUnderBaseChange.mk _ isIntegral_respectsIso ?_ introv h x refine TensorProduct.induction_on x ?_ ?_ ?_ Β· apply isIntegral_zero Β· intro x y; exact IsIntegral.tmul x (h y) Β· intro x y hx hy; exact IsIntegral.add hx hy
[ " StableUnderComposition fun {R S} [CommRing R] [CommRing S] f => f.IsIntegral", " (g.comp f).IsIntegral", " RespectsIso fun {R S} [CommRing R] [CommRing S] f => f.IsIntegral", " βˆ€ {R S : Type u_1} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S), e.toRingHom.IsIntegral", " e.toRingHom.IsIntegralElem...
[ " StableUnderComposition fun {R S} [CommRing R] [CommRing S] f => f.IsIntegral", " (g.comp f).IsIntegral", " RespectsIso fun {R S} [CommRing R] [CommRing S] f => f.IsIntegral", " βˆ€ {R S : Type u_1} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S), e.toRingHom.IsIntegral", " e.toRingHom.IsIntegralElem...
import Mathlib.Algebra.MonoidAlgebra.Support import Mathlib.Algebra.Polynomial.Basic import Mathlib.Algebra.Regular.Basic import Mathlib.Data.Nat.Choose.Sum #align_import data.polynomial.coeff from "leanprover-community/mathlib"@"2651125b48fc5c170ab1111afd0817c903b1fc6c" set_option linter.uppercaseLean3 false no...
Mathlib/Algebra/Polynomial/Coeff.lean
69
74
theorem card_support_mul_le : (p * q).support.card ≀ p.support.card * q.support.card := by
calc (p * q).support.card _ = (p.toFinsupp * q.toFinsupp).support.card := by rw [← support_toFinsupp, toFinsupp_mul] _ ≀ (p.toFinsupp.support + q.toFinsupp.support).card := Finset.card_le_card (AddMonoidAlgebra.support_mul p.toFinsupp q.toFinsupp) _ ≀ p.support.card * q.support.card := Finset.card_image...
[ " (p + q).coeff n = p.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝ } + q).coeff n = { toFinsupp := toFinsupp✝ }.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝¹ } + { toFinsupp := toFinsupp✝ }).coeff n =\n { toFinsupp := toFinsupp✝¹ }.coeff n + { toFinsupp := toFinsupp✝ }.coeff n", " (toFinsupp✝¹ ...
[ " (p + q).coeff n = p.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝ } + q).coeff n = { toFinsupp := toFinsupp✝ }.coeff n + q.coeff n", " ({ toFinsupp := toFinsupp✝¹ } + { toFinsupp := toFinsupp✝ }).coeff n =\n { toFinsupp := toFinsupp✝¹ }.coeff n + { toFinsupp := toFinsupp✝ }.coeff n", " (toFinsupp✝¹ ...
import Mathlib.Algebra.BigOperators.Ring import Mathlib.Data.Fintype.Basic import Mathlib.Data.Int.GCD import Mathlib.RingTheory.Coprime.Basic #align_import ring_theory.coprime.lemmas from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" universe u v section RelPrime variable {Ξ± I} [Comm...
Mathlib/RingTheory/Coprime/Lemmas.lean
306
309
theorem pow_left_iff (hm : 0 < m) : IsRelPrime (x ^ m) y ↔ IsRelPrime x y := by
refine ⟨fun h ↦ ?_, IsRelPrime.pow_left⟩ rw [← Finset.card_range m, ← Finset.prod_const] at h exact h.of_prod_left 0 (Finset.mem_range.mpr hm)
[ " (βˆ€ i ∈ t, IsRelPrime (s i) x) β†’ IsRelPrime (∏ i ∈ t, s i) x", " IsRelPrime (∏ i ∈ insert b t, s i) x", " IsRelPrime (s b * ∏ x ∈ t, s x) x", " (βˆ€ i ∈ t, IsRelPrime x (s i)) β†’ IsRelPrime x (∏ i ∈ t, s i)", " IsRelPrime (∏ i ∈ t, s i) x ↔ βˆ€ i ∈ t, IsRelPrime (s i) x", " x✝ ∈ βˆ… β†’ IsRelPrime (s x✝) x", " ...
[ " (βˆ€ i ∈ t, IsRelPrime (s i) x) β†’ IsRelPrime (∏ i ∈ t, s i) x", " IsRelPrime (∏ i ∈ insert b t, s i) x", " IsRelPrime (s b * ∏ x ∈ t, s x) x", " (βˆ€ i ∈ t, IsRelPrime x (s i)) β†’ IsRelPrime x (∏ i ∈ t, s i)", " IsRelPrime (∏ i ∈ t, s i) x ↔ βˆ€ i ∈ t, IsRelPrime (s i) x", " x✝ ∈ βˆ… β†’ IsRelPrime (s x✝) x", " ...
import Mathlib.MeasureTheory.Covering.VitaliFamily import Mathlib.MeasureTheory.Measure.Regular import Mathlib.MeasureTheory.Function.AEMeasurableOrder import Mathlib.MeasureTheory.Integral.Lebesgue import Mathlib.MeasureTheory.Integral.Average import Mathlib.MeasureTheory.Decomposition.Lebesgue #align_import measure...
Mathlib/MeasureTheory/Covering/Differentiation.lean
97
113
theorem ae_eventually_measure_pos [SecondCountableTopology Ξ±] : βˆ€α΅ x βˆ‚ΞΌ, βˆ€αΆ  a in v.filterAt x, 0 < ΞΌ a := by
set s := {x | Β¬βˆ€αΆ  a in v.filterAt x, 0 < ΞΌ a} with hs simp (config := { zeta := false }) only [not_lt, not_eventually, nonpos_iff_eq_zero] at hs change ΞΌ s = 0 let f : Ξ± β†’ Set (Set Ξ±) := fun _ => {a | ΞΌ a = 0} have h : v.FineSubfamilyOn f s := by intro x hx Ξ΅ Ξ΅pos rw [hs] at hx simp only [frequen...
[ " βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, βˆ€αΆ  (a : Set Ξ±) in v.filterAt x, 0 < ΞΌ a", " ΞΌ s = 0", " v.FineSubfamilyOn f s", " βˆƒ a ∈ v.setsAt x ∩ f x, a βŠ† closedBall x Ξ΅", " ΞΌ s ≀ 0", " βˆ‘' (x : ↑h.index), ΞΌ (h.covering ↑x) = βˆ‘' (x : ↑h.index), 0", " (fun x => ΞΌ (h.covering ↑x)) = fun x => 0", " ΞΌ (h.covering ↑x) = 0", " βˆ‘' (x ...
[]
import Mathlib.Data.Finsupp.Defs #align_import data.finsupp.fin from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" noncomputable section namespace Finsupp variable {n : β„•} (i : Fin n) {M : Type*} [Zero M] (y : M) (t : Fin (n + 1) β†’β‚€ M) (s : Fin n β†’β‚€ M) def tail (s : Fin (n + 1) β†’β‚€ ...
Mathlib/Data/Finsupp/Fin.lean
68
73
theorem cons_zero_zero : cons 0 (0 : Fin n β†’β‚€ M) = 0 := by
ext a by_cases c : a = 0 Β· simp [c] Β· rw [← Fin.succ_pred a c, cons_succ] simp
[ " (cons y s).tail k = s k", " cons (t 0) t.tail = t", " (cons (t 0) t.tail) a = t a", " cons 0 0 = 0", " (cons 0 0) a = 0 a", " 0 (a.pred c) = 0 (a.pred c).succ" ]
[ " (cons y s).tail k = s k", " cons (t 0) t.tail = t", " (cons (t 0) t.tail) a = t a" ]
import Mathlib.RingTheory.AdicCompletion.Basic import Mathlib.Algebra.Module.Torsion open Submodule variable {R : Type*} [CommRing R] (I : Ideal R) variable {M : Type*} [AddCommGroup M] [Module R M] namespace AdicCompletion attribute [-simp] smul_eq_mul Algebra.id.smul_eq_mul @[local simp] theorem transitionMap...
Mathlib/RingTheory/AdicCompletion/Algebra.lean
133
139
theorem smul_mk {m n : β„•} (hmn : m ≀ n) (r : AdicCauchySequence I R) (x : AdicCauchySequence I M) : r.val n β€’ Submodule.Quotient.mk (p := (I ^ m β€’ ⊀ : Submodule R M)) (x.val n) = r.val m β€’ Submodule.Quotient.mk (p := (I ^ m β€’ ⊀ : Submodule R M)) (x.val m) := by
rw [← Submodule.Quotient.mk_smul, ← Module.Quotient.mk_smul_mk, AdicCauchySequence.mk_eq_mk hmn, Ideal.mk_eq_mk I hmn, Module.Quotient.mk_smul_mk, Submodule.Quotient.mk_smul]
[ " (transitionMap I R x✝) (1 n✝) = 1 m✝", " (transitionMap I R hmn) ((x * y) n) = (x * y) m", " I ^ n β€’ ⊀ = I ^ n", " x ∈ I ^ n β€’ ⊀ ↔ x ∈ I ^ n", " (evalₐ I n) ((mk I R) x) = (Ideal.Quotient.mk (I ^ n)) (↑x n)", " 1 m ≑ 1 n [SMOD I ^ m β€’ ⊀]", " 1 ≑ 1 [SMOD I ^ m]", " (x * y) m ≑ (x * y) n [SMOD I ^ m β€’...
[ " (transitionMap I R x✝) (1 n✝) = 1 m✝", " (transitionMap I R hmn) ((x * y) n) = (x * y) m", " I ^ n β€’ ⊀ = I ^ n", " x ∈ I ^ n β€’ ⊀ ↔ x ∈ I ^ n", " (evalₐ I n) ((mk I R) x) = (Ideal.Quotient.mk (I ^ n)) (↑x n)", " 1 m ≑ 1 n [SMOD I ^ m β€’ ⊀]", " 1 ≑ 1 [SMOD I ^ m]", " (x * y) m ≑ (x * y) n [SMOD I ^ m β€’...
import Mathlib.Algebra.Polynomial.Expand import Mathlib.Algebra.Polynomial.Laurent import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic import Mathlib.LinearAlgebra.Matrix.Reindex import Mathlib.RingTheory.Polynomial.Nilpotent #align_import linear_algebra.matrix.charpoly.coeff from "leanprover-community/mathlib"@"9745b...
Mathlib/LinearAlgebra/Matrix/Charpoly/Coeff.lean
81
86
theorem charpoly_coeff_eq_prod_coeff_of_le {k : β„•} (h : Fintype.card n - 1 ≀ k) : M.charpoly.coeff k = (∏ i : n, (X - C (M i i))).coeff k := by
apply eq_of_sub_eq_zero; rw [← coeff_sub] apply Polynomial.coeff_eq_zero_of_degree_lt apply lt_of_lt_of_le (charpoly_sub_diagonal_degree_lt M) ?_ rw [Nat.cast_le]; apply h
[ " (M.charmatrix i j).natDegree = if i = j then 1 else 0", " (M.charmatrix i j).natDegree ≀ if i = j then 1 else 0", " (M.charmatrix i j).natDegree ≀ 1", " (M.charmatrix i j).natDegree ≀ 0", " (M.charpoly - ∏ i : n, (X - C (M i i))).degree < ↑(Fintype.card n - 1)", " (βˆ‘ x ∈ univ.erase (Equiv.refl n), ↑↑(Eq...
[ " (M.charmatrix i j).natDegree = if i = j then 1 else 0", " (M.charmatrix i j).natDegree ≀ if i = j then 1 else 0", " (M.charmatrix i j).natDegree ≀ 1", " (M.charmatrix i j).natDegree ≀ 0", " (M.charpoly - ∏ i : n, (X - C (M i i))).degree < ↑(Fintype.card n - 1)", " (βˆ‘ x ∈ univ.erase (Equiv.refl n), ↑↑(Eq...
import Mathlib.Data.Finset.Sum import Mathlib.Data.Sum.Order import Mathlib.Order.Interval.Finset.Defs #align_import data.sum.interval from "leanprover-community/mathlib"@"48a058d7e39a80ed56858505719a0b2197900999" open Function Sum namespace Finset variable {α₁ Ξ±β‚‚ β₁ Ξ²β‚‚ γ₁ Ξ³β‚‚ : Type*} section SumLiftβ‚‚ variabl...
Mathlib/Data/Sum/Interval.lean
91
95
theorem sumLiftβ‚‚_nonempty : (sumLiftβ‚‚ f g a b).Nonempty ↔ (βˆƒ a₁ b₁, a = inl a₁ ∧ b = inl b₁ ∧ (f a₁ b₁).Nonempty) ∨ βˆƒ aβ‚‚ bβ‚‚, a = inr aβ‚‚ ∧ b = inr bβ‚‚ ∧ (g aβ‚‚ bβ‚‚).Nonempty := by
simp only [nonempty_iff_ne_empty, Ne, sumLiftβ‚‚_eq_empty, not_and_or, not_forall, exists_prop]
[ " c ∈ sumLiftβ‚‚ f g a b ↔\n (βˆƒ a₁ b₁ c₁, a = inl a₁ ∧ b = inl b₁ ∧ c = inl c₁ ∧ c₁ ∈ f a₁ b₁) ∨\n βˆƒ aβ‚‚ bβ‚‚ cβ‚‚, a = inr aβ‚‚ ∧ b = inr bβ‚‚ ∧ c = inr cβ‚‚ ∧ cβ‚‚ ∈ g aβ‚‚ bβ‚‚", " c ∈ sumLiftβ‚‚ f g a b β†’\n (βˆƒ a₁ b₁ c₁, a = inl a₁ ∧ b = inl b₁ ∧ c = inl c₁ ∧ c₁ ∈ f a₁ b₁) ∨\n βˆƒ aβ‚‚ bβ‚‚ cβ‚‚, a = inr aβ‚‚ ∧ b = inr bβ‚‚ ∧ ...
[ " c ∈ sumLiftβ‚‚ f g a b ↔\n (βˆƒ a₁ b₁ c₁, a = inl a₁ ∧ b = inl b₁ ∧ c = inl c₁ ∧ c₁ ∈ f a₁ b₁) ∨\n βˆƒ aβ‚‚ bβ‚‚ cβ‚‚, a = inr aβ‚‚ ∧ b = inr bβ‚‚ ∧ c = inr cβ‚‚ ∧ cβ‚‚ ∈ g aβ‚‚ bβ‚‚", " c ∈ sumLiftβ‚‚ f g a b β†’\n (βˆƒ a₁ b₁ c₁, a = inl a₁ ∧ b = inl b₁ ∧ c = inl c₁ ∧ c₁ ∈ f a₁ b₁) ∨\n βˆƒ aβ‚‚ bβ‚‚ cβ‚‚, a = inr aβ‚‚ ∧ b = inr bβ‚‚ ∧ ...
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
162
163
theorem first_numerator_eq {gp : Pair K} (zeroth_s_eq : g.s.get? 0 = some gp) : g.numerators 1 = gp.b * g.h + gp.a := by
simp [num_eq_conts_a, 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" ]
[ " βˆƒ 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 }" ]
import Mathlib.Data.List.Chain import Mathlib.Data.List.Enum import Mathlib.Data.List.Nodup import Mathlib.Data.List.Pairwise import Mathlib.Data.List.Zip #align_import data.list.range from "leanprover-community/mathlib"@"7b78d1776212a91ecc94cf601f83bdcc46b04213" set_option autoImplicit true universe u open Nat...
Mathlib/Data/List/Range.lean
104
112
theorem chain'_range_succ (r : β„• β†’ β„• β†’ Prop) (n : β„•) : Chain' r (range n.succ) ↔ βˆ€ m < n, r m m.succ := by
rw [range_succ] induction' n with n hn Β· simp Β· rw [range_succ] simp only [append_assoc, singleton_append, chain'_append_cons_cons, chain'_singleton, and_true_iff] rw [hn, forall_lt_succ]
[ " (range' n m).nthLe i H = n + i", " Pairwise (fun x x_1 => x < x_1) (range n)", " take m (range n) = range (min m n)", " (take m (range n)).length = (range (min m n)).length", " βˆ€ (n_1 : β„•) (h₁ : n_1 < (take m (range n)).length) (hβ‚‚ : n_1 < (range (min m n)).length),\n (take m (range n)).get ⟨n_1, hβ‚βŸ© =...
[ " (range' n m).nthLe i H = n + i", " Pairwise (fun x x_1 => x < x_1) (range n)", " take m (range n) = range (min m n)", " (take m (range n)).length = (range (min m n)).length", " βˆ€ (n_1 : β„•) (h₁ : n_1 < (take m (range n)).length) (hβ‚‚ : n_1 < (range (min m n)).length),\n (take m (range n)).get ⟨n_1, hβ‚βŸ© =...
import Mathlib.LinearAlgebra.Dimension.Finrank import Mathlib.LinearAlgebra.InvariantBasisNumber #align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5" noncomputable section universe u v w w' variable {R : Type u} {M : Type v} [Ring R] [AddCommGroup...
Mathlib/LinearAlgebra/Dimension/StrongRankCondition.lean
58
83
theorem mk_eq_mk_of_basis (v : Basis ΞΉ R M) (v' : Basis ΞΉ' R M) : Cardinal.lift.{w'} #ΞΉ = Cardinal.lift.{w} #ΞΉ' := by
classical haveI := nontrivial_of_invariantBasisNumber R cases fintypeOrInfinite ΞΉ Β· -- `v` is a finite basis, so by `basis_finite_of_finite_spans` so is `v'`. -- haveI : Finite (range v) := Set.finite_range v haveI := basis_finite_of_finite_spans _ (Set.finite_range v) v.span_eq v' cases nonempty_f...
[ " lift.{w', w} #ΞΉ = lift.{w, w'} #ΞΉ'", " lift.{w', w} ↑(Fintype.card ΞΉ) = lift.{w, w'} ↑(Fintype.card ΞΉ')", " Fintype.card ΞΉ = Fintype.card ΞΉ'", " (ΞΉ β†’ R) ≃ₗ[R] ΞΉ' β†’ R" ]
[]
import Mathlib.Algebra.Group.Subgroup.Basic import Mathlib.Deprecated.Submonoid #align_import deprecated.subgroup from "leanprover-community/mathlib"@"f93c11933efbc3c2f0299e47b8ff83e9b539cbf6" open Set Function variable {G : Type*} {H : Type*} {A : Type*} {a a₁ aβ‚‚ b c : G} section Group variable [Group G] [Add...
Mathlib/Deprecated/Subgroup.lean
57
58
theorem IsSubgroup.div_mem {s : Set G} (hs : IsSubgroup s) {x y : G} (hx : x ∈ s) (hy : y ∈ s) : x / y ∈ s := by
simpa only [div_eq_mul_inv] using hs.mul_mem hx (hs.inv_mem hy)
[ " x / y ∈ s" ]
[]
import Mathlib.Algebra.Bounds import Mathlib.Algebra.Order.Field.Basic -- Porting note: `LinearOrderedField`, etc import Mathlib.Data.Set.Pointwise.SMul #align_import algebra.order.pointwise from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Set open Pointwise variable ...
Mathlib/Algebra/Order/Pointwise.lean
89
89
theorem sSup_div : sSup (s / t) = sSup s / sInf t := by
simp_rw [div_eq_mul_inv, sSup_mul, sSup_inv]
[ " sSup s⁻¹ = (sInf s)⁻¹", " ⨆ a ∈ s, a⁻¹ = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " β¨… a ∈ s, a⁻¹ = (sSup s)⁻¹", " sSup (s / t) = sSup s / sInf t" ]
[ " sSup s⁻¹ = (sInf s)⁻¹", " ⨆ a ∈ s, a⁻¹ = (sInf s)⁻¹", " sInf s⁻¹ = (sSup s)⁻¹", " β¨… a ∈ s, a⁻¹ = (sSup s)⁻¹" ]
import Mathlib.Data.List.Infix #align_import data.list.rdrop from "leanprover-community/mathlib"@"26f081a2fb920140ed5bc5cc5344e84bcc7cb2b2" -- Make sure we don't import algebra assert_not_exists Monoid variable {Ξ± : Type*} (p : Ξ± β†’ Bool) (l : List Ξ±) (n : β„•) namespace List def rdrop : List Ξ± := l.take (l.leng...
Mathlib/Data/List/DropRight.lean
47
47
theorem rdrop_nil : rdrop ([] : List Ξ±) n = [] := by
simp [rdrop]
[ " [].rdrop n = []" ]
[]
import Mathlib.Topology.Metrizable.Basic import Mathlib.Topology.Algebra.GroupWithZero import Mathlib.Topology.Instances.Real def preCantorSet : β„• β†’ Set ℝ | 0 => Set.Icc 0 1 | n + 1 => (Β· / 3) '' preCantorSet n βˆͺ (fun x ↦ (2 + x) / 3) '' preCantorSet n @[simp] lemma preCantorSet_zero : preCantorSet 0 = Set.Ic...
Mathlib/Topology/Instances/CantorSet.lean
75
75
theorem zero_mem_cantorSet : 0 ∈ cantorSet := by
simp [cantorSet, zero_mem_preCantorSet]
[ " 1 / 4 ∈ preCantorSet n ∧ 3 / 4 ∈ preCantorSet n", " 1 / 4 ∈ preCantorSet 0 ∧ 3 / 4 ∈ preCantorSet 0", " 1 / 4 ∈ Set.Icc 0 1 ∧ 3 / 4 ∈ Set.Icc 0 1", " 0 ≀ 1 / 4", " 1 / 4 ≀ 1", " 0 ≀ 3 / 4", " 3 / 4 ≀ 1", " 1 / 4 ∈ preCantorSet (n + 1) ∧ 3 / 4 ∈ preCantorSet (n + 1)", " 1 / 4 ∈ preCantorSet (n + 1)...
[ " 1 / 4 ∈ preCantorSet n ∧ 3 / 4 ∈ preCantorSet n", " 1 / 4 ∈ preCantorSet 0 ∧ 3 / 4 ∈ preCantorSet 0", " 1 / 4 ∈ Set.Icc 0 1 ∧ 3 / 4 ∈ Set.Icc 0 1", " 0 ≀ 1 / 4", " 1 / 4 ≀ 1", " 0 ≀ 3 / 4", " 3 / 4 ≀ 1", " 1 / 4 ∈ preCantorSet (n + 1) ∧ 3 / 4 ∈ preCantorSet (n + 1)", " 1 / 4 ∈ preCantorSet (n + 1)...
import Mathlib.LinearAlgebra.Matrix.Symmetric import Mathlib.LinearAlgebra.Matrix.Orthogonal import Mathlib.Data.Matrix.Kronecker #align_import linear_algebra.matrix.is_diag from "leanprover-community/mathlib"@"55e2dfde0cff928ce5c70926a3f2c7dee3e2dd99" namespace Matrix variable {Ξ± Ξ² R n m : Type*} open Function...
Mathlib/LinearAlgebra/Matrix/IsDiag.lean
152
155
theorem IsDiag.isSymm [Zero Ξ±] {A : Matrix n n Ξ±} (h : A.IsDiag) : A.IsSymm := by
ext i j by_cases g : i = j; Β· rw [g, transpose_apply] simp [h g, h (Ne.symm g)]
[ " diagonal A.diag i j = A i j", " diagonal A.diag i i = A i i", " (A.map f).IsDiag", " A.map f i j = 0", " (-A).IsDiag", " (-A) i j = 0", " (A + B).IsDiag", " (A + B) i j = 0", " (A - B).IsDiag", " (A - B) i j = 0", " (k β€’ A).IsDiag", " (k β€’ A) i j = 0", " A.IsDiag", " A = Aα΄΄α΄΄", " (krone...
[ " diagonal A.diag i j = A i j", " diagonal A.diag i i = A i i", " (A.map f).IsDiag", " A.map f i j = 0", " (-A).IsDiag", " (-A) i j = 0", " (A + B).IsDiag", " (A + B) i j = 0", " (A - B).IsDiag", " (A - B) i j = 0", " (k β€’ A).IsDiag", " (k β€’ A) i j = 0", " A.IsDiag", " A = Aα΄΄α΄΄", " (krone...
import Mathlib.Data.Finsupp.Defs #align_import data.finsupp.indicator from "leanprover-community/mathlib"@"842328d9df7e96fd90fc424e115679c15fb23a71" noncomputable section open Finset Function variable {ΞΉ Ξ± : Type*} namespace Finsupp variable [Zero Ξ±] {s : Finset ΞΉ} (f : βˆ€ i ∈ s, Ξ±) {i : ΞΉ} def indicator (s ...
Mathlib/Data/Finsupp/Indicator.lean
66
70
theorem support_indicator_subset : ((indicator s f).support : Set ΞΉ) βŠ† s := by
intro i hi rw [mem_coe, mem_support_iff] at hi by_contra h exact hi (indicator_of_not_mem h _)
[ " i ∈ map (Embedding.subtype fun x => x ∈ s) (filter (fun i => f ↑i β‹― β‰  0) s.attach) ↔\n (fun i => if H : i ∈ s then f i H else 0) i β‰  0", " (indicator s f) i = if hi : i ∈ s then f i hi else 0", " (if H : i ∈ s then f i H else 0) = if hi : i ∈ s then f i hi else 0", " Injective fun f => indicator s f", ...
[ " i ∈ map (Embedding.subtype fun x => x ∈ s) (filter (fun i => f ↑i β‹― β‰  0) s.attach) ↔\n (fun i => if H : i ∈ s then f i H else 0) i β‰  0", " (indicator s f) i = if hi : i ∈ s then f i hi else 0", " (if H : i ∈ s then f i H else 0) = if hi : i ∈ s then f i hi else 0", " Injective fun f => indicator s f", ...
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Data.Rat.Denumerable import Mathlib.Data.Set.Pointwise.Interval import Mathlib.SetTheory.Cardinal.Continuum #align_import data.real.cardinality from "leanprover-community/mathlib"@"7e7aaccf9b0182576cabdde36cf1b5ad3585b70d" open Nat Set open Cardinal no...
Mathlib/Data/Real/Cardinality.lean
86
90
theorem cantorFunctionAux_succ (f : β„• β†’ Bool) : (fun n => cantorFunctionAux c f (n + 1)) = fun n => c * cantorFunctionAux c (fun n => f (n + 1)) n := by
ext n cases h : f (n + 1) <;> simp [h, _root_.pow_succ']
[ " cantorFunctionAux c f n = c ^ n", " cantorFunctionAux c f n = 0", " 0 ≀ cantorFunctionAux c f n", " 0 ≀ c ^ n", " cantorFunctionAux c f n = cantorFunctionAux c g n", " cantorFunctionAux c f 0 = bif f 0 then 1 else 0", " cantorFunctionAux c f 0 = bif false then 1 else 0", " cantorFunctionAux c f 0 = ...
[ " cantorFunctionAux c f n = c ^ n", " cantorFunctionAux c f n = 0", " 0 ≀ cantorFunctionAux c f n", " 0 ≀ c ^ n", " cantorFunctionAux c f n = cantorFunctionAux c g n", " cantorFunctionAux c f 0 = bif f 0 then 1 else 0", " cantorFunctionAux c f 0 = bif false then 1 else 0", " cantorFunctionAux c f 0 = ...
import Mathlib.Data.List.Basic import Mathlib.Order.MinMax import Mathlib.Order.WithBot #align_import data.list.min_max from "leanprover-community/mathlib"@"6d0adfa76594f304b4650d098273d4366edeb61b" namespace List variable {Ξ± Ξ² : Type*} section ArgAux variable (r : Ξ± β†’ Ξ± β†’ Prop) [DecidableRel r] {l : List Ξ±} {o...
Mathlib/Data/List/MinMax.lean
69
86
theorem not_of_mem_foldl_argAux (hrβ‚€ : Irreflexive r) (hr₁ : Transitive r) : βˆ€ {a m : Ξ±} {o : Option Ξ±}, a ∈ l β†’ m ∈ foldl (argAux r) o l β†’ Β¬r a m := by
induction' l using List.reverseRecOn with tl a ih Β· simp intro b m o hb ho rw [foldl_append, foldl_cons, foldl_nil, argAux] at ho cases' hf : foldl (argAux r) o tl with c Β· rw [hf] at ho rw [foldl_argAux_eq_none] at hf simp_all [hf.1, hf.2, hrβ‚€ _] rw [hf, Option.mem_def] at ho dsimp only at ho ...
[ " foldl (argAux r) o [] = none ↔ [] = [] ∧ o = none", " (foldl (argAux r) o tl = none ↔ tl = [] ∧ o = none) β†’\n (foldl (argAux r) o (tl ++ [hd]) = none ↔ tl ++ [hd] = [] ∧ o = none)", " (foldl (argAux r) o tl = none ↔ tl = [] ∧ o = none) β†’\n Β¬Option.rec (some hd) (fun val => if r hd val then some hd else ...
[ " foldl (argAux r) o [] = none ↔ [] = [] ∧ o = none", " (foldl (argAux r) o tl = none ↔ tl = [] ∧ o = none) β†’\n (foldl (argAux r) o (tl ++ [hd]) = none ↔ tl ++ [hd] = [] ∧ o = none)", " (foldl (argAux r) o tl = none ↔ tl = [] ∧ o = none) β†’\n Β¬Option.rec (some hd) (fun val => if r hd val then some hd else ...
import Mathlib.LinearAlgebra.TensorAlgebra.Basic import Mathlib.LinearAlgebra.TensorPower #align_import linear_algebra.tensor_algebra.to_tensor_power from "leanprover-community/mathlib"@"d97a0c9f7a7efe6d76d652c5a6b7c9c634b70e0a" suppress_compilation open scoped DirectSum TensorProduct variable {R M : Type*} [Com...
Mathlib/LinearAlgebra/TensorAlgebra/ToTensorPower.lean
44
64
theorem toTensorAlgebra_gMul {i j} (a : (⨂[R]^i) M) (b : (⨂[R]^j) M) : TensorPower.toTensorAlgebra (@GradedMonoid.GMul.mul _ (fun n => ⨂[R]^n M) _ _ _ _ a b) = TensorPower.toTensorAlgebra a * TensorPower.toTensorAlgebra b := by
-- change `a` and `b` to `tprod R a` and `tprod R b` rw [TensorPower.gMul_eq_coe_linearMap, ← LinearMap.comprβ‚‚_apply, ← @LinearMap.mul_apply' R, ← LinearMap.complβ‚‚_apply, ← LinearMap.comp_apply] refine LinearMap.congr_fun (LinearMap.congr_fun ?_ a) b clear! a b ext (a b) -- Porting note: pulled the nex...
[ " toTensorAlgebra (GradedMonoid.GMul.mul a b) = toTensorAlgebra a * toTensorAlgebra b", " ((((TensorProduct.mk R (⨂[R]^i M) (⨂[R]^j M)).comprβ‚‚ ↑mulEquiv).comprβ‚‚ toTensorAlgebra) a) b =\n (((LinearMap.mul R (TensorAlgebra R M)).complβ‚‚ toTensorAlgebra βˆ˜β‚— toTensorAlgebra) a) b", " ((TensorProduct.mk R (⨂[R]^i M...
[]
import Mathlib.Order.Filter.Bases #align_import order.filter.pi from "leanprover-community/mathlib"@"ce64cd319bb6b3e82f31c2d38e79080d377be451" open Set Function open scoped Classical open Filter namespace Filter variable {ΞΉ : Type*} {Ξ± : ΞΉ β†’ Type*} {f f₁ fβ‚‚ : (i : ΞΉ) β†’ Filter (Ξ± i)} {s : (i : ΞΉ) β†’ Set (Ξ± i)} ...
Mathlib/Order/Filter/Pi.lean
74
77
theorem pi_mem_pi {I : Set ΞΉ} (hI : I.Finite) (h : βˆ€ i ∈ I, s i ∈ f i) : I.pi s ∈ pi f := by
rw [pi_def, biInter_eq_iInter] refine mem_iInf_of_iInter hI (fun i => ?_) Subset.rfl exact preimage_mem_comap (h i i.2)
[ " Tendsto m l (pi f) ↔ βˆ€ (i : ΞΉ), Tendsto (fun x => m x i) l (f i)", " (βˆ€ (i : ΞΉ), Tendsto (eval i ∘ m) l (f i)) ↔ βˆ€ (i : ΞΉ), Tendsto (fun x => m x i) l (f i)", " I.pi s ∈ pi f", " β‹‚ x, eval ↑x ⁻¹' s ↑x ∈ pi f", " eval ↑i ⁻¹' s ↑i ∈ comap (eval ↑i) (f ↑i)" ]
[ " Tendsto m l (pi f) ↔ βˆ€ (i : ΞΉ), Tendsto (fun x => m x i) l (f i)", " (βˆ€ (i : ΞΉ), Tendsto (eval i ∘ m) l (f i)) ↔ βˆ€ (i : ΞΉ), Tendsto (fun x => m x i) l (f i)" ]
import Mathlib.GroupTheory.FreeGroup.Basic import Mathlib.GroupTheory.QuotientGroup #align_import group_theory.presented_group from "leanprover-community/mathlib"@"d90e4e186f1d18e375dcd4e5b5f6364b01cb3e46" variable {Ξ± : Type*} def PresentedGroup (rels : Set (FreeGroup Ξ±)) := FreeGroup Ξ± β§Έ Subgroup.normalClosu...
Mathlib/GroupTheory/PresentedGroup.lean
93
97
theorem toGroup.unique (g : PresentedGroup rels β†’* G) (hg : βˆ€ x : Ξ±, g (PresentedGroup.of x) = f x) : βˆ€ {x}, g x = toGroup h x := by
intro x refine QuotientGroup.induction_on x ?_ exact fun _ ↦ FreeGroup.lift.unique (g.comp (QuotientGroup.mk' _)) hg
[ " Subgroup.closure (Set.range of) = ⊀", " (QuotientGroup.mk' (Subgroup.normalClosure rels)).range = ⊀", " βˆ€ {x : PresentedGroup rels}, g x = (toGroup h) x", " g x = (toGroup h) x", " βˆ€ (z : FreeGroup Ξ±), g ↑z = (toGroup h) ↑z" ]
[ " Subgroup.closure (Set.range of) = ⊀", " (QuotientGroup.mk' (Subgroup.normalClosure rels)).range = ⊀" ]
import Mathlib.Data.Nat.Choose.Central import Mathlib.Data.Nat.Factorization.Basic import Mathlib.Data.Nat.Multiplicity #align_import data.nat.choose.factorization from "leanprover-community/mathlib"@"dc9db541168768af03fe228703e758e649afdbfc" namespace Nat variable {p n k : β„•}
Mathlib/Data/Nat/Choose/Factorization.lean
36
45
theorem factorization_choose_le_log : (choose n k).factorization p ≀ log p n := by
by_cases h : (choose n k).factorization p = 0 Β· simp [h] have hp : p.Prime := Not.imp_symm (choose n k).factorization_eq_zero_of_non_prime h have hkn : k ≀ n := by refine le_of_not_lt fun hnk => h ?_ simp [choose_eq_zero_of_lt hnk] rw [factorization_def _ hp, @padicValNat_def _ ⟨hp⟩ _ (choose_pos hkn...
[ " (n.choose k).factorization p ≀ p.log n", " k ≀ n", " (n.choose k).factorization p = 0", " (multiplicity p (n.choose k)).get β‹― ≀ p.log n", " (Finset.filter (fun i => p ^ i ≀ k % p ^ i + (n - k) % p ^ i) (Finset.Ico 1 (p.log n + 1))).card ≀ p.log n" ]
[]
import Mathlib.NumberTheory.NumberField.Embeddings #align_import number_theory.number_field.units from "leanprover-community/mathlib"@"00f91228655eecdcd3ac97a7fd8dbcb139fe990a" open scoped NumberField noncomputable section open NumberField Units variable (K : Type*) [Field K] namespace NumberField.Units secti...
Mathlib/NumberTheory/NumberField/Units/Basic.lean
78
79
theorem coe_pow (x : (π“ž K)Λ£) (n : β„•) : ((x ^ n : (π“ž K)Λ£) : K) = (x : K) ^ n := by
rw [← map_pow, ← val_pow_eq_pow_val]
[ " (algebraMap (π“ž K) K) ↑(x ^ n) = (algebraMap (π“ž K) K) ↑x ^ n" ]
[]
import Mathlib.NumberTheory.ZetaValues import Mathlib.NumberTheory.LSeries.RiemannZeta open Complex Real Set open scoped Nat namespace HurwitzZeta variable {k : β„•} {x : ℝ}
Mathlib/NumberTheory/LSeries/HurwitzZetaValues.lean
49
67
theorem cosZeta_two_mul_nat (hk : k β‰  0) (hx : x ∈ Icc 0 1) : cosZeta x (2 * k) = (-1) ^ (k + 1) * (2 * Ο€) ^ (2 * k) / 2 / (2 * k)! * ((Polynomial.bernoulli (2 * k)).map (algebraMap β„š β„‚)).eval (x : β„‚) := by
rw [← (hasSum_nat_cosZeta x (?_ : 1 < re (2 * k))).tsum_eq] refine Eq.trans ?_ <| (congr_arg ofReal' (hasSum_one_div_nat_pow_mul_cos hk hx).tsum_eq).trans ?_ Β· rw [ofReal_tsum] refine tsum_congr fun n ↦ ?_ rw [mul_comm (1 / _), mul_one_div, ofReal_div, mul_assoc (2 * Ο€), mul_comm x n, ← mul_assoc, ...
[ " cosZeta (↑x) (2 * ↑k) =\n (-1) ^ (k + 1) * (2 * ↑π) ^ (2 * k) / 2 / ↑(2 * k)! *\n Polynomial.eval (↑x) (Polynomial.map (algebraMap β„š β„‚) (Polynomial.bernoulli (2 * k)))", " 1 < (2 * ↑k).re", " βˆ‘' (b : β„•), ↑(2 * Ο€ * x * ↑b).cos / ↑b ^ (2 * ↑k) = ↑(βˆ‘' (b : β„•), 1 / ↑b ^ (2 * k) * (2 * Ο€ * ↑b * x).cos)", ...
[]
import Mathlib.Data.List.OfFn import Mathlib.Data.List.Range #align_import data.list.fin_range from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" universe u namespace List variable {Ξ± : Type u} @[simp]
Mathlib/Data/List/FinRange.lean
25
27
theorem map_coe_finRange (n : β„•) : ((finRange n) : List (Fin n)).map (Fin.val) = List.range n := by
simp_rw [finRange, map_pmap, pmap_eq_map] exact List.map_id _
[ " map Fin.val (finRange n) = range n", " map (fun a => a) (range n) = range n" ]
[]
import Mathlib.LinearAlgebra.Quotient import Mathlib.LinearAlgebra.Prod #align_import linear_algebra.projection from "leanprover-community/mathlib"@"6d584f1709bedbed9175bd9350df46599bdd7213" noncomputable section Ring variable {R : Type*} [Ring R] {E : Type*} [AddCommGroup E] [Module R E] variable {F : Type*} [Ad...
Mathlib/LinearAlgebra/Projection.lean
131
135
theorem prodEquivOfIsCompl_symm_apply_fst_eq_zero (h : IsCompl p q) {x : E} : ((prodEquivOfIsCompl p q h).symm x).1 = 0 ↔ x ∈ q := by
conv_rhs => rw [← (prodEquivOfIsCompl p q h).apply_symm_apply x] rw [coe_prodEquivOfIsCompl', Submodule.add_mem_iff_left _ (Submodule.coe_mem _), mem_right_iff_eq_zero_of_disjoint h.disjoint]
[ " Function.Injective ⇑(p.mkQ βˆ˜β‚— q.subtype)", " Function.Surjective ⇑(p.mkQ βˆ˜β‚— q.subtype)", " (β†₯p Γ— β†₯q) ≃ₗ[R] E", " Function.Bijective ⇑(p.subtype.coprod q.subtype)", " Function.Injective ⇑(p.subtype.coprod q.subtype)", " Disjoint (range p.subtype) (range q.subtype)", " Disjoint p q", " Function.Surjec...
[ " Function.Injective ⇑(p.mkQ βˆ˜β‚— q.subtype)", " Function.Surjective ⇑(p.mkQ βˆ˜β‚— q.subtype)", " (β†₯p Γ— β†₯q) ≃ₗ[R] E", " Function.Bijective ⇑(p.subtype.coprod q.subtype)", " Function.Injective ⇑(p.subtype.coprod q.subtype)", " Disjoint (range p.subtype) (range q.subtype)", " Disjoint p q", " Function.Surjec...
import Mathlib.Topology.MetricSpace.PseudoMetric open Filter open scoped Uniformity Topology universe u v w variable {Ξ± : Type u} {Ξ² : Type v} {X ΞΉ : Type*} variable [PseudoMetricSpace Ξ±] theorem Metric.complete_of_convergent_controlled_sequences (B : β„• β†’ Real) (hB : βˆ€ n, 0 < B n) (H : βˆ€ u : β„• β†’ Ξ±, (βˆ€ N n m...
Mathlib/Topology/MetricSpace/Cauchy.lean
72
91
theorem Metric.uniformCauchySeqOn_iff {Ξ³ : Type*} {F : Ξ² β†’ Ξ³ β†’ Ξ±} {s : Set Ξ³} : UniformCauchySeqOn F atTop s ↔ βˆ€ Ξ΅ > (0 : ℝ), βˆƒ N : Ξ², βˆ€ m β‰₯ N, βˆ€ n β‰₯ N, βˆ€ x ∈ s, dist (F m x) (F n x) < Ξ΅ := by
constructor Β· intro h Ξ΅ hΞ΅ let u := { a : Ξ± Γ— Ξ± | dist a.fst a.snd < Ξ΅ } have hu : u ∈ 𝓀 Ξ± := Metric.mem_uniformity_dist.mpr ⟨Ρ, hΞ΅, by simp [u]⟩ rw [← @Filter.eventually_atTop_prod_self' _ _ _ fun m => βˆ€ x ∈ s, dist (F m.fst x) (F m.snd x) < Ξ΅] specialize h u hu rw [prod_atTop_atTop_eq]...
[ " UniformCauchySeqOn F atTop s ↔ βˆ€ Ξ΅ > 0, βˆƒ N, βˆ€ m β‰₯ N, βˆ€ n β‰₯ N, βˆ€ x ∈ s, dist (F m x) (F n x) < Ξ΅", " UniformCauchySeqOn F atTop s β†’ βˆ€ Ξ΅ > 0, βˆƒ N, βˆ€ m β‰₯ N, βˆ€ n β‰₯ N, βˆ€ x ∈ s, dist (F m x) (F n x) < Ξ΅", " βˆƒ N, βˆ€ m β‰₯ N, βˆ€ n β‰₯ N, βˆ€ x ∈ s, dist (F m x) (F n x) < Ξ΅", " βˆ€ {a b : Ξ±}, dist a b < Ξ΅ β†’ (a, b) ∈ u", " ...
[]
import Mathlib.Data.Multiset.Nodup import Mathlib.Data.List.NatAntidiagonal #align_import data.multiset.nat_antidiagonal from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" namespace Multiset namespace Nat def antidiagonal (n : β„•) : Multiset (β„• Γ— β„•) := List.Nat.antidiagonal n #align...
Mathlib/Data/Multiset/NatAntidiagonal.lean
64
67
theorem antidiagonal_succ' {n : β„•} : antidiagonal (n + 1) = (n + 1, 0) ::β‚˜ (antidiagonal n).map (Prod.map id Nat.succ) := by
rw [antidiagonal, List.Nat.antidiagonal_succ', ← coe_add, add_comm, antidiagonal, map_coe, coe_add, List.singleton_append, cons_coe]
[ " x ∈ antidiagonal n ↔ x.1 + x.2 = n", " card (antidiagonal n) = n + 1", " antidiagonal (n + 1) = (0, n + 1) ::β‚˜ map (Prod.map Nat.succ id) (antidiagonal n)", " antidiagonal (n + 1) = (n + 1, 0) ::β‚˜ map (Prod.map id Nat.succ) (antidiagonal n)" ]
[ " x ∈ antidiagonal n ↔ x.1 + x.2 = n", " card (antidiagonal n) = n + 1", " antidiagonal (n + 1) = (0, n + 1) ::β‚˜ map (Prod.map Nat.succ id) (antidiagonal n)" ]
import Mathlib.Algebra.Lie.Abelian import Mathlib.Algebra.Lie.IdealOperations import Mathlib.Order.Hom.Basic #align_import algebra.lie.solvable from "leanprover-community/mathlib"@"a50170a88a47570ed186b809ca754110590f9476" universe u v w w₁ wβ‚‚ variable (R : Type u) (L : Type v) (M : Type w) {L' : Type w₁} variab...
Mathlib/Algebra/Lie/Solvable.lean
89
97
theorem derivedSeriesOfIdeal_le {I J : LieIdeal R L} {k l : β„•} (h₁ : I ≀ J) (hβ‚‚ : l ≀ k) : D k I ≀ D l J := by
revert l; induction' k with k ih <;> intro l hβ‚‚ Β· rw [le_zero_iff] at hβ‚‚; rw [hβ‚‚, derivedSeriesOfIdeal_zero]; exact h₁ Β· have h : l = k.succ ∨ l ≀ k := by rwa [le_iff_eq_or_lt, Nat.lt_succ_iff] at hβ‚‚ cases' h with h h Β· rw [h, derivedSeriesOfIdeal_succ, derivedSeriesOfIdeal_succ] exact LieSubmodule...
[ " D (k + l) I = D k (D l I)", " D (0 + l) I = D 0 (D l I)", " D (k + 1 + l) I = D (k + 1) (D l I)", " D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k β†’ D k I ≀ D l J", " βˆ€ {l : β„•}, l ≀ 0 β†’ D 0 I ≀ D l J", " βˆ€ {l : β„•}, l ≀ k + 1 β†’ D (k + 1) I ≀ D l J", " D 0 I ≀ D l J", " I ≀ D 0 J", " D (k + 1) I ≀ D l J", "...
[ " D (k + l) I = D k (D l I)", " D (0 + l) I = D 0 (D l I)", " D (k + 1 + l) I = D (k + 1) (D l I)" ]
import Mathlib.Order.Interval.Set.Image import Mathlib.Order.CompleteLatticeIntervals import Mathlib.Topology.Order.DenselyOrdered import Mathlib.Topology.Order.Monotone #align_import topology.algebra.order.intermediate_value from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" open Filt...
Mathlib/Topology/Order/IntermediateValue.lean
70
75
theorem intermediate_value_univβ‚‚ [PreconnectedSpace X] {a b : X} {f g : X β†’ Ξ±} (hf : Continuous f) (hg : Continuous g) (ha : f a ≀ g a) (hb : g b ≀ f b) : βˆƒ x, f x = g x := by
obtain ⟨x, _, hfg, hgf⟩ : (univ ∩ { x | f x ≀ g x ∧ g x ≀ f x }).Nonempty := isPreconnected_closed_iff.1 PreconnectedSpace.isPreconnected_univ _ _ (isClosed_le hf hg) (isClosed_le hg hf) (fun _ _ => le_total _ _) ⟨a, trivial, ha⟩ ⟨b, trivial, hb⟩ exact ⟨x, le_antisymm hfg hgf⟩
[ " βˆƒ x, f x = g x" ]
[]
import Mathlib.Algebra.CharP.ExpChar import Mathlib.GroupTheory.OrderOfElement #align_import algebra.char_p.two from "leanprover-community/mathlib"@"7f1ba1a333d66eed531ecb4092493cd1b6715450" variable {R ΞΉ : Type*} namespace CharTwo section CommSemiring variable [CommSemiring R] [CharP R 2] theorem add_sq (x y...
Mathlib/Algebra/CharP/Two.lean
99
100
theorem list_sum_mul_self (l : List R) : l.sum * l.sum = (List.map (fun x => x * x) l).sum := by
simp_rw [← pow_two, list_sum_sq]
[ " (x + y) * (x + y) = x * x + y * y", " l.sum * l.sum = (List.map (fun x => x * x) l).sum" ]
[ " (x + y) * (x + y) = x * x + y * y" ]
import Mathlib.Analysis.SpecialFunctions.Complex.Log #align_import analysis.special_functions.pow.complex from "leanprover-community/mathlib"@"4fa54b337f7d52805480306db1b1439c741848c8" open scoped Classical open Real Topology Filter ComplexConjugate Finset Set namespace Complex noncomputable def cpow (x y : β„‚) ...
Mathlib/Analysis/SpecialFunctions/Pow/Complex.lean
45
45
theorem cpow_zero (x : β„‚) : x ^ (0 : β„‚) = 1 := by
simp [cpow_def]
[ " x ^ 0 = 1" ]
[]
import Mathlib.Algebra.Ring.Semiconj import Mathlib.Algebra.Ring.Units import Mathlib.Algebra.Group.Commute.Defs import Mathlib.Data.Bracket #align_import algebra.ring.commute from "leanprover-community/mathlib"@"70d50ecfd4900dd6d328da39ab7ebd516abe4025" universe u v w x variable {Ξ± : Type u} {Ξ² : Type v} {Ξ³ : T...
Mathlib/Algebra/Ring/Commute.lean
72
74
theorem mul_self_sub_mul_self_eq [NonUnitalNonAssocRing R] {a b : R} (h : Commute a b) : a * a - b * b = (a + b) * (a - b) := by
rw [add_mul, mul_sub, mul_sub, h.eq, sub_add_sub_cancel]
[ " a * a - b * b = (a + b) * (a - b)" ]
[]
import Mathlib.Algebra.Group.Commute.Basic import Mathlib.GroupTheory.GroupAction.Basic import Mathlib.Dynamics.PeriodicPts import Mathlib.Data.Set.Pointwise.SMul namespace MulAction open Pointwise variable {Ξ± : Type*} variable {G : Type*} [Group G] [MulAction G Ξ±] variable {M : Type*} [Monoid M] [MulAction M Ξ±] ...
Mathlib/GroupTheory/GroupAction/FixedPoints.lean
124
126
theorem set_mem_fixedBy_iff (s : Set Ξ±) (g : G) : s ∈ fixedBy (Set Ξ±) g ↔ βˆ€ x, g β€’ x ∈ s ↔ x ∈ s := by
simp_rw [mem_fixedBy, ← eq_inv_smul_iff, Set.ext_iff, Set.mem_inv_smul_set_iff, Iff.comm]
[ " s ∈ fixedBy (Set Ξ±) g ↔ βˆ€ (x : Ξ±), g β€’ x ∈ s ↔ x ∈ s" ]
[]
import Mathlib.Data.Multiset.Bind #align_import data.multiset.fold from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" namespace Multiset variable {Ξ± Ξ² : Type*} section Fold variable (op : Ξ± β†’ Ξ± β†’ Ξ±) [hc : Std.Commutative op] [ha : Std.Associative op] local notation a " * " b => ...
Mathlib/Data/Multiset/Fold.lean
67
68
theorem fold_cons'_right (b a : Ξ±) (s : Multiset Ξ±) : (a ::β‚˜ s).fold op b = s.fold op (b * a) := by
rw [fold_eq_foldl, foldl_cons, ← fold_eq_foldl]
[ " List.foldl (fun x y => op y x) b l = List.foldl op b l", " fold op b (a ::β‚˜ s) = op (fold op b s) a", " fold op b (a ::β‚˜ s) = fold op (op b a) s" ]
[ " List.foldl (fun x y => op y x) b l = List.foldl op b l", " fold op b (a ::β‚˜ s) = op (fold op b s) a" ]
import Mathlib.MeasureTheory.Measure.Regular import Mathlib.Topology.Semicontinuous import Mathlib.MeasureTheory.Integral.Bochner import Mathlib.Topology.Instances.EReal #align_import measure_theory.integral.vitali_caratheodory from "leanprover-community/mathlib"@"57ac39bd365c2f80589a700f9fbb664d3a1a30c2" open sc...
Mathlib/MeasureTheory/Integral/VitaliCaratheodory.lean
164
195
theorem exists_le_lowerSemicontinuous_lintegral_ge (f : Ξ± β†’ ℝβ‰₯0∞) (hf : Measurable f) {Ξ΅ : ℝβ‰₯0∞} (Ξ΅pos : Ξ΅ β‰  0) : βˆƒ g : Ξ± β†’ ℝβ‰₯0∞, (βˆ€ x, f x ≀ g x) ∧ LowerSemicontinuous g ∧ (∫⁻ x, g x βˆ‚ΞΌ) ≀ (∫⁻ x, f x βˆ‚ΞΌ) + Ξ΅ := by
rcases ENNReal.exists_pos_sum_of_countable' Ξ΅pos β„• with ⟨δ, Ξ΄pos, hδ⟩ have : βˆ€ n, βˆƒ g : Ξ± β†’ ℝβ‰₯0, (βˆ€ x, SimpleFunc.eapproxDiff f n x ≀ g x) ∧ LowerSemicontinuous g ∧ (∫⁻ x, g x βˆ‚ΞΌ) ≀ (∫⁻ x, SimpleFunc.eapproxDiff f n x βˆ‚ΞΌ) + Ξ΄ n := fun n => SimpleFunc.exists_le_lowerS...
[ " βˆƒ g, (βˆ€ (x : Ξ±), ↑f x ≀ g x) ∧ LowerSemicontinuous g ∧ ∫⁻ (x : Ξ±), ↑(g x) βˆ‚ΞΌ ≀ ∫⁻ (x : Ξ±), ↑(↑f x) βˆ‚ΞΌ + Ξ΅", " βˆƒ g,\n (βˆ€ (x : Ξ±), ↑(piecewise s hs (const Ξ± c) (const Ξ± 0)) x ≀ g x) ∧\n LowerSemicontinuous g ∧ ∫⁻ (x : Ξ±), ↑(g x) βˆ‚ΞΌ ≀ ∫⁻ (x : Ξ±), ↑(↑(piecewise s hs (const Ξ± c) (const Ξ± 0)) x) βˆ‚ΞΌ + Ξ΅", " ...
[ " βˆƒ g, (βˆ€ (x : Ξ±), ↑f x ≀ g x) ∧ LowerSemicontinuous g ∧ ∫⁻ (x : Ξ±), ↑(g x) βˆ‚ΞΌ ≀ ∫⁻ (x : Ξ±), ↑(↑f x) βˆ‚ΞΌ + Ξ΅", " βˆƒ g,\n (βˆ€ (x : Ξ±), ↑(piecewise s hs (const Ξ± c) (const Ξ± 0)) x ≀ g x) ∧\n LowerSemicontinuous g ∧ ∫⁻ (x : Ξ±), ↑(g x) βˆ‚ΞΌ ≀ ∫⁻ (x : Ξ±), ↑(↑(piecewise s hs (const Ξ± c) (const Ξ± 0)) x) βˆ‚ΞΌ + Ξ΅", " ...
import Mathlib.Analysis.InnerProductSpace.Basic import Mathlib.Analysis.NormedSpace.Dual import Mathlib.MeasureTheory.Function.StronglyMeasurable.Lp import Mathlib.MeasureTheory.Integral.SetIntegral #align_import measure_theory.function.ae_eq_of_integral from "leanprover-community/mathlib"@"915591b2bb3ea303648db07284...
Mathlib/MeasureTheory/Function/AEEqOfIntegral.lean
164
221
theorem ae_le_of_forall_set_lintegral_le_of_sigmaFinite [SigmaFinite ΞΌ] {f g : Ξ± β†’ ℝβ‰₯0∞} (hf : Measurable f) (hg : Measurable g) (h : βˆ€ s, MeasurableSet s β†’ ΞΌ s < ∞ β†’ (∫⁻ x in s, f x βˆ‚ΞΌ) ≀ ∫⁻ x in s, g x βˆ‚ΞΌ) : f ≀ᡐ[ΞΌ] g := by
have A : βˆ€ (Ξ΅ N : ℝβ‰₯0) (p : β„•), 0 < Ξ΅ β†’ ΞΌ ({x | g x + Ξ΅ ≀ f x ∧ g x ≀ N} ∩ spanningSets ΞΌ p) = 0 := by intro Ξ΅ N p Ξ΅pos let s := {x | g x + Ξ΅ ≀ f x ∧ g x ≀ N} ∩ spanningSets ΞΌ p have s_meas : MeasurableSet s := by have A : MeasurableSet {x | g x + Ξ΅ ≀ f x} := measurableSet_le (hg.add measurable...
[ " (βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, c ≀ f x) ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | Β¬c ≀ f a} = 0 ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | f a < c} = 0 ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | f a < c} = 0 β†’ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {x | f x ≀ b} = 0", " (βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0) β†’ ΞΌ {a | f a < c} = 0",...
[ " (βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, c ≀ f x) ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | Β¬c ≀ f a} = 0 ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | f a < c} = 0 ↔ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {a | f a < c} = 0 β†’ βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0", " ΞΌ {x | f x ≀ b} = 0", " (βˆ€ b < c, ΞΌ {x | f x ≀ b} = 0) β†’ ΞΌ {a | f a < c} = 0",...
import Mathlib.Combinatorics.SimpleGraph.Basic namespace SimpleGraph variable {V : Type*} (G : SimpleGraph V) structure Dart extends V Γ— V where adj : G.Adj fst snd deriving DecidableEq #align simple_graph.dart SimpleGraph.Dart initialize_simps_projections Dart (+toProd, -fst, -snd) attribute [simp] Dart.a...
Mathlib/Combinatorics/SimpleGraph/Dart.lean
112
115
theorem dart_edge_eq_mk'_iff : βˆ€ {d : G.Dart} {p : V Γ— V}, d.edge = Sym2.mk p ↔ d.toProd = p ∨ d.toProd = p.swap := by
rintro ⟨p, h⟩ apply Sym2.mk_eq_mk_iff
[ " d₁ = dβ‚‚ ↔ d₁.toProd = dβ‚‚.toProd", " { toProd := toProd✝, adj := adj✝ } = dβ‚‚ ↔ { toProd := toProd✝, adj := adj✝ }.toProd = dβ‚‚.toProd", " { toProd := toProd✝¹, adj := adj✝¹ } = { toProd := toProd✝, adj := adj✝ } ↔\n { toProd := toProd✝¹, adj := adj✝¹ }.toProd = { toProd := toProd✝, adj := adj✝ }.toProd", "...
[ " d₁ = dβ‚‚ ↔ d₁.toProd = dβ‚‚.toProd", " { toProd := toProd✝, adj := adj✝ } = dβ‚‚ ↔ { toProd := toProd✝, adj := adj✝ }.toProd = dβ‚‚.toProd", " { toProd := toProd✝¹, adj := adj✝¹ } = { toProd := toProd✝, adj := adj✝ } ↔\n { toProd := toProd✝¹, adj := adj✝¹ }.toProd = { toProd := toProd✝, adj := adj✝ }.toProd", "...
import Mathlib.Algebra.Quotient import Mathlib.Algebra.Group.Subgroup.Actions import Mathlib.Algebra.Group.Subgroup.MulOpposite import Mathlib.GroupTheory.GroupAction.Basic import Mathlib.SetTheory.Cardinal.Finite #align_import group_theory.coset from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce4...
Mathlib/GroupTheory/Coset.lean
111
112
theorem rightCoset_assoc (s : Set Ξ±) (a b : Ξ±) : op b β€’ op a β€’ s = op (a * b) β€’ s := by
simp [← image_smul, (image_comp _ _ _).symm, Function.comp, mul_assoc]
[ " a β€’ b β€’ s = (a * b) β€’ s", " op b β€’ op a β€’ s = op (a * b) β€’ s" ]
[ " a β€’ b β€’ s = (a * b) β€’ s" ]
import Mathlib.Data.Finsupp.Defs #align_import data.finsupp.indicator from "leanprover-community/mathlib"@"842328d9df7e96fd90fc424e115679c15fb23a71" noncomputable section open Finset Function variable {ΞΉ Ξ± : Type*} namespace Finsupp variable [Zero Ξ±] {s : Finset ΞΉ} (f : βˆ€ i ∈ s, Ξ±) {i : ΞΉ} def indicator (s ...
Mathlib/Data/Finsupp/Indicator.lean
54
56
theorem indicator_apply [DecidableEq ι] : indicator s f i = if hi : i ∈ s then f i hi else 0 := by
simp only [indicator, ne_eq, coe_mk] congr
[ " i ∈ map (Embedding.subtype fun x => x ∈ s) (filter (fun i => f ↑i β‹― β‰  0) s.attach) ↔\n (fun i => if H : i ∈ s then f i H else 0) i β‰  0", " (indicator s f) i = if hi : i ∈ s then f i hi else 0", " (if H : i ∈ s then f i H else 0) = if hi : i ∈ s then f i hi else 0" ]
[ " i ∈ map (Embedding.subtype fun x => x ∈ s) (filter (fun i => f ↑i β‹― β‰  0) s.attach) ↔\n (fun i => if H : i ∈ s then f i H else 0) i β‰  0" ]
import Mathlib.Algebra.Polynomial.Degree.Definitions import Mathlib.Algebra.Polynomial.Eval import Mathlib.Algebra.Polynomial.Monic import Mathlib.Algebra.Polynomial.RingDivision import Mathlib.Tactic.Abel #align_import ring_theory.polynomial.pochhammer from "leanprover-community/mathlib"@"53b216bcc1146df1c4a0a868778...
Mathlib/RingTheory/Polynomial/Pochhammer.lean
137
140
theorem ascPochhammer_succ_eval {S : Type*} [Semiring S] (n : β„•) (k : S) : (ascPochhammer S (n + 1)).eval k = (ascPochhammer S n).eval k * (k + n) := by
rw [ascPochhammer_succ_right, mul_add, eval_add, eval_mul_X, ← Nat.cast_comm, ← C_eq_natCast, eval_C_mul, Nat.cast_comm, ← mul_add]
[ " ascPochhammer S 1 = X", " ascPochhammer S (n + 1) = X * (ascPochhammer S n).comp (X + 1)", " (ascPochhammer S n).Monic", " (ascPochhammer S 0).Monic", " (ascPochhammer S (n + 1)).Monic", " map f (ascPochhammer S n) = ascPochhammer T n", " map f (ascPochhammer S 0) = ascPochhammer T 0", " map f (ascP...
[ " ascPochhammer S 1 = X", " ascPochhammer S (n + 1) = X * (ascPochhammer S n).comp (X + 1)", " (ascPochhammer S n).Monic", " (ascPochhammer S 0).Monic", " (ascPochhammer S (n + 1)).Monic", " map f (ascPochhammer S n) = ascPochhammer T n", " map f (ascPochhammer S 0) = ascPochhammer T 0", " map f (ascP...
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
34
38
theorem banach_steinhaus {ΞΉ : Type*} [CompleteSpace E] {g : ΞΉ β†’ E β†’SL[σ₁₂] F} (h : βˆ€ x, βˆƒ C, βˆ€ i, β€–g i xβ€– ≀ C) : βˆƒ C', βˆ€ i, β€–g iβ€– ≀ C' := by
rw [show (βˆƒ C, βˆ€ i, β€–g iβ€– ≀ C) ↔ _ from (NormedSpace.equicontinuous_TFAE g).out 5 2] refine (norm_withSeminorms π•œβ‚‚ F).banach_steinhaus (fun _ x ↦ ?_) simpa [bddAbove_def, forall_mem_range] using h x
[ " βˆƒ C', βˆ€ (i : ΞΉ), β€–g iβ€– ≀ C'", " UniformEquicontinuous (DFunLike.coe ∘ g)", " BddAbove (range fun i => (normSeminorm π•œβ‚‚ F) ((g i) x))" ]
[]
import Mathlib.SetTheory.Cardinal.Finite #align_import data.set.ncard from "leanprover-community/mathlib"@"74c2af38a828107941029b03839882c5c6f87a04" namespace Set variable {Ξ± Ξ² : Type*} {s t : Set Ξ±} noncomputable def encard (s : Set Ξ±) : β„•βˆž := PartENat.withTopEquiv (PartENat.card s) @[simp] theorem encard_uni...
Mathlib/Data/Set/Card.lean
73
76
theorem Finite.encard_eq_coe_toFinset_card (h : s.Finite) : s.encard = h.toFinset.card := by
have := h.fintype rw [encard, PartENat.card_eq_coe_fintype_card, PartENat.withTopEquiv_natCast, toFinite_toFinset, toFinset_card]
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card Ξ±)", " s.encard = ↑h.toFinset.card" ]
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card Ξ±)" ]
import Mathlib.Analysis.NormedSpace.Exponential import Mathlib.Analysis.NormedSpace.ProdLp import Mathlib.Topology.Instances.TrivSqZeroExt #align_import analysis.normed_space.triv_sq_zero_ext from "leanprover-community/mathlib"@"88a563b158f59f2983cfad685664da95502e8cdd" variable (π•œ : Type*) {S R M : Type*} loca...
Mathlib/Analysis/NormedSpace/TrivSqZeroExt.lean
214
217
theorem norm_def (x : tsze R M) : β€–xβ€– = β€–fst xβ€– + β€–snd xβ€– := by
rw [WithLp.prod_norm_eq_add (by norm_num)] simp only [ENNReal.one_toReal, Real.rpow_one, div_one] rfl
[ " β€–xβ€– = β€–x.fstβ€– + β€–x.sndβ€–", " 0 < ENNReal.toReal 1", " (β€–x.1β€– ^ ENNReal.toReal 1 + β€–x.2β€– ^ ENNReal.toReal 1) ^ (1 / ENNReal.toReal 1) = β€–x.fstβ€– + β€–x.sndβ€–", " β€–x.1β€– + β€–x.2β€– = β€–x.fstβ€– + β€–x.sndβ€–" ]
[]
import Mathlib.GroupTheory.GroupAction.ConjAct import Mathlib.GroupTheory.GroupAction.Quotient import Mathlib.GroupTheory.QuotientGroup import Mathlib.Topology.Algebra.Monoid import Mathlib.Topology.Algebra.Constructions #align_import topology.algebra.group.basic from "leanprover-community/mathlib"@"3b1890e71632be9e3...
Mathlib/Topology/Algebra/Group/Basic.lean
114
117
theorem Homeomorph.mulRight_symm (a : G) : (Homeomorph.mulRight a).symm = Homeomorph.mulRight a⁻¹ := by
ext rfl
[ " (Homeomorph.mulLeft a).symm = Homeomorph.mulLeft a⁻¹", " (Homeomorph.mulLeft a).symm x✝ = (Homeomorph.mulLeft a⁻¹) x✝", " (Homeomorph.mulRight a).symm = Homeomorph.mulRight a⁻¹", " (Homeomorph.mulRight a).symm x✝ = (Homeomorph.mulRight a⁻¹) x✝" ]
[ " (Homeomorph.mulLeft a).symm = Homeomorph.mulLeft a⁻¹", " (Homeomorph.mulLeft a).symm x✝ = (Homeomorph.mulLeft a⁻¹) x✝" ]
import Mathlib.Analysis.Normed.Group.Basic import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace import Mathlib.LinearAlgebra.AffineSpace.Midpoint #align_import analysis.normed.group.add_torsor from "leanprover-community/mathlib"@"837f72de63ad6cd96519cde5f1ffd5ed8d280ad0" noncomputable section open NNReal Topo...
Mathlib/Analysis/Normed/Group/AddTorsor.lean
125
125
theorem dist_vadd_right (v : V) (x : P) : dist x (v +α΅₯ x) = β€–vβ€– := by
rw [dist_comm, dist_vadd_left]
[ " dist (c +α΅₯ x) (c +α΅₯ y) = dist x y", " dist (v₁ +α΅₯ x) (vβ‚‚ +α΅₯ x) = dist v₁ vβ‚‚", " dist (v +α΅₯ x) x = β€–vβ€–", " dist x (v +α΅₯ x) = β€–vβ€–" ]
[ " dist (c +α΅₯ x) (c +α΅₯ y) = dist x y", " dist (v₁ +α΅₯ x) (vβ‚‚ +α΅₯ x) = dist v₁ vβ‚‚", " dist (v +α΅₯ x) x = β€–vβ€–" ]
import Mathlib.Algebra.Category.MonCat.Basic import Mathlib.CategoryTheory.Limits.HasLimits import Mathlib.CategoryTheory.ConcreteCategory.Elementwise #align_import algebra.category.Mon.colimits from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe v open CategoryTheory open Ca...
Mathlib/Algebra/Category/MonCat/Colimits.lean
179
183
theorem cocone_naturality {j j' : J} (f : j ⟢ j') : F.map f ≫ coconeMorphism F j' = coconeMorphism F j := by
ext apply Quot.sound apply Relation.map
[ " Inhabited (ColimitType F)", " Inhabited (Quotient (colimitSetoid F))", " Monoid (ColimitType F)", " F.map f ≫ coconeMorphism F j' = coconeMorphism F j", " (F.map f ≫ coconeMorphism F j') x✝ = (coconeMorphism F j) x✝", " Setoid.r (Prequotient.of j' ((F.map f) x✝)) (Prequotient.of j x✝)" ]
[ " Inhabited (ColimitType F)", " Inhabited (Quotient (colimitSetoid F))", " Monoid (ColimitType F)" ]
import Mathlib.Dynamics.Ergodic.MeasurePreserving import Mathlib.Dynamics.Minimal import Mathlib.GroupTheory.GroupAction.Hom import Mathlib.MeasureTheory.Group.MeasurableEquiv import Mathlib.MeasureTheory.Measure.Regular #align_import measure_theory.group.action from "leanprover-community/mathlib"@"f2ce6086713c78a7f8...
Mathlib/MeasureTheory/Group/Action.lean
114
126
theorem smulInvariantMeasure_map [SMul M Ξ±] [SMul M Ξ²] [MeasurableSMul M Ξ²] (ΞΌ : Measure Ξ±) [SMulInvariantMeasure M Ξ± ΞΌ] (f : Ξ± β†’ Ξ²) (hsmul : βˆ€ (m : M) a, f (m β€’ a) = m β€’ f a) (hf : Measurable f) : SMulInvariantMeasure M Ξ² (map f ΞΌ) where measure_preimage_smul m S hS := calc map f ΞΌ ((m β€’ Β·) ⁻¹' S...
rw [preimage_preimage] _ = ΞΌ ((f <| m β€’ Β·) ⁻¹' S) := by simp_rw [hsmul] _ = ΞΌ ((m β€’ Β·) ⁻¹' (f ⁻¹' S)) := by rw [← preimage_preimage] _ = ΞΌ (f ⁻¹' S) := by rw [SMulInvariantMeasure.measure_preimage_smul m (hS.preimage hf)] _ = map f ΞΌ S := (map_apply hf hS).symm
[ " ΞΌ (f ⁻¹' ((fun x => m β€’ x) ⁻¹' S)) = ΞΌ ((fun x => m β€’ f x) ⁻¹' S)", " ΞΌ ((fun x => m β€’ f x) ⁻¹' S) = ΞΌ ((fun x => f (m β€’ x)) ⁻¹' S)", " ΞΌ ((fun x => f (m β€’ x)) ⁻¹' S) = ΞΌ ((fun x => m β€’ x) ⁻¹' (f ⁻¹' S))", " ΞΌ ((fun x => m β€’ x) ⁻¹' (f ⁻¹' S)) = ΞΌ (f ⁻¹' S)" ]
[]
import Mathlib.Algebra.Algebra.Bilinear import Mathlib.RingTheory.Localization.Basic #align_import algebra.module.localized_module from "leanprover-community/mathlib"@"831c494092374cfe9f50591ed0ac81a25efc5b86" section IsLocalizedModule universe u v variable {R : Type*} [CommSemiring R] (S : Submonoid R) variabl...
Mathlib/Algebra/Module/LocalizedModule.lean
599
610
theorem isLocalizedModule_iff_isLocalization {A Aβ‚›} [CommSemiring A] [Algebra R A] [CommSemiring Aβ‚›] [Algebra A Aβ‚›] [Algebra R Aβ‚›] [IsScalarTower R A Aβ‚›] : IsLocalizedModule S (IsScalarTower.toAlgHom R A Aβ‚›).toLinearMap ↔ IsLocalization (Algebra.algebraMapSubmonoid A S) Aβ‚› := by
rw [isLocalizedModule_iff, isLocalization_iff] refine and_congr ?_ (and_congr (forall_congr' fun _ ↦ ?_) (forallβ‚‚_congr fun _ _ ↦ ?_)) Β· simp_rw [← (Algebra.lmul R Aβ‚›).commutes, Algebra.lmul_isUnit_iff, Subtype.forall, Algebra.algebraMapSubmonoid, ← SetLike.mem_coe, Submonoid.coe_map, Set.forall_mem_...
[ " f x₁ = f xβ‚‚", " IsUnit ((algebraMap R (Module.End R M'')) ↑s)", " (algebraMap R (Module.End R M'')) ↑s = ↑e βˆ˜β‚— (algebraMap R (Module.End R M')) ↑s βˆ˜β‚— ↑e.symm", " ((algebraMap R (Module.End R M'')) ↑s) x✝ = (↑e βˆ˜β‚— (algebraMap R (Module.End R M')) ↑s βˆ˜β‚— ↑e.symm) x✝", " Function.Bijective ⇑((algebraMap R (Mo...
[ " f x₁ = f xβ‚‚", " IsUnit ((algebraMap R (Module.End R M'')) ↑s)", " (algebraMap R (Module.End R M'')) ↑s = ↑e βˆ˜β‚— (algebraMap R (Module.End R M')) ↑s βˆ˜β‚— ↑e.symm", " ((algebraMap R (Module.End R M'')) ↑s) x✝ = (↑e βˆ˜β‚— (algebraMap R (Module.End R M')) ↑s βˆ˜β‚— ↑e.symm) x✝", " Function.Bijective ⇑((algebraMap R (Mo...
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
74
74
theorem Eq.congr_right {x y z : Ξ±} (h : x = y) : z = x ↔ z = y := by
rw [h]
[ " 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" ]
[ " 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" ]
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.Deriv.Slope import Mathlib.Analysis.NormedSpace.FiniteDimension import Mathlib.MeasureTheory.Constructions.BorelSpace.ContinuousLinearMap import Mathlib.MeasureTheory.Function.StronglyMeasurable.Basic #align_import analysis.calculus.fderiv_...
Mathlib/Analysis/Calculus/FDeriv/Measurable.lean
154
159
theorem le_of_mem_A {r Ξ΅ : ℝ} {L : E β†’L[π•œ] F} {x : E} (hx : x ∈ A f L r Ξ΅) {y z : E} (hy : y ∈ closedBall x (r / 2)) (hz : z ∈ closedBall x (r / 2)) : β€–f z - f y - L (z - y)β€– ≀ Ξ΅ * r := by
rcases hx with ⟨r', r'mem, hr'⟩ apply le_of_lt exact hr' _ ((mem_closedBall.1 hy).trans_lt r'mem.1) _ ((mem_closedBall.1 hz).trans_lt r'mem.1)
[ " IsOpen (A f L r Ξ΅)", " βˆ€ x ∈ A f L r Ξ΅, βˆƒ Ξ΅_1 > 0, ball x Ξ΅_1 βŠ† A f L r Ξ΅", " βˆƒ Ξ΅_1 > 0, ball x Ξ΅_1 βŠ† A f L r Ξ΅", " r' - s > 0", " βˆ€ y ∈ ball x' s, βˆ€ z ∈ ball x' s, β€–f z - f y - L (z - y)β€– < Ξ΅ * r", " β€–f z - f y - L (z - y)β€– < Ξ΅ * r", " IsOpen (B f K r s Ξ΅)", " A f L r Ξ΅ βŠ† A f L r Ξ΄", " x ∈ A f L ...
[ " IsOpen (A f L r Ξ΅)", " βˆ€ x ∈ A f L r Ξ΅, βˆƒ Ξ΅_1 > 0, ball x Ξ΅_1 βŠ† A f L r Ξ΅", " βˆƒ Ξ΅_1 > 0, ball x Ξ΅_1 βŠ† A f L r Ξ΅", " r' - s > 0", " βˆ€ y ∈ ball x' s, βˆ€ z ∈ ball x' s, β€–f z - f y - L (z - y)β€– < Ξ΅ * r", " β€–f z - f y - L (z - y)β€– < Ξ΅ * r", " IsOpen (B f K r s Ξ΅)", " A f L r Ξ΅ βŠ† A f L r Ξ΄", " x ∈ A f L ...
import Mathlib.Data.Finset.Sort import Mathlib.Data.Fin.VecNotation import Mathlib.Data.Sign import Mathlib.LinearAlgebra.AffineSpace.Combination import Mathlib.LinearAlgebra.AffineSpace.AffineEquiv import Mathlib.LinearAlgebra.Basis.VectorSpace #align_import linear_algebra.affine_space.independent from "leanprover-c...
Mathlib/LinearAlgebra/AffineSpace/Independent.lean
86
134
theorem affineIndependent_iff_linearIndependent_vsub (p : ΞΉ β†’ P) (i1 : ΞΉ) : AffineIndependent k p ↔ LinearIndependent k fun i : { x // x β‰  i1 } => (p i -α΅₯ p i1 : V) := by
classical constructor Β· intro h rw [linearIndependent_iff'] intro s g hg i hi set f : ΞΉ β†’ k := fun x => if hx : x = i1 then -βˆ‘ y ∈ s, g y else g ⟨x, hx⟩ with hfdef let s2 : Finset ΞΉ := insert i1 (s.map (Embedding.subtype _)) have hfg : βˆ€ x : { x // x β‰  i1 }, g x = f x := by ...
[ " AffineIndependent k p ↔ βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0", " AffineIndependent k p β†’ βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0", " (βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0) β†’ A...
[ " AffineIndependent k p ↔ βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0", " AffineIndependent k p β†’ βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0", " (βˆ€ (w : ΞΉ β†’ k), βˆ‘ i : ΞΉ, w i = 0 β†’ (univ.weightedVSub p) w = 0 β†’ βˆ€ (i : ΞΉ), w i = 0) β†’ A...
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
104
113
theorem hyperoperation_ge_three_one (n : β„•) : βˆ€ k : β„•, hyperoperation (n + 3) 1 k = 1 := by
induction' n with nn nih Β· intro k rw [hyperoperation_three] dsimp rw [one_pow] Β· intro k cases k Β· rw [hyperoperation_ge_three_eq_one] Β· rw [hyperoperation_recursion, nih]
[ " hyperoperation 0 m k = k.succ", " hyperoperation (n + 3) m 0 = 1", " hyperoperation (n + 1) m (k + 1) = hyperoperation n m (hyperoperation (n + 1) m k)", " hyperoperation 1 = fun x x_1 => x + x_1", " hyperoperation 1 m k = m + k", " hyperoperation 1 m 0 = m + 0", " hyperoperation 1 m (bn + 1) = m + (b...
[ " hyperoperation 0 m k = k.succ", " hyperoperation (n + 3) m 0 = 1", " hyperoperation (n + 1) m (k + 1) = hyperoperation n m (hyperoperation (n + 1) m k)", " hyperoperation 1 = fun x x_1 => x + x_1", " hyperoperation 1 m k = m + k", " hyperoperation 1 m 0 = m + 0", " hyperoperation 1 m (bn + 1) = m + (b...
import Mathlib.Order.Filter.CountableInter set_option autoImplicit true open Function Set Filter class HasCountableSeparatingOn (Ξ± : Type*) (p : Set Ξ± β†’ Prop) (t : Set Ξ±) : Prop where exists_countable_separating : βˆƒ S : Set (Set Ξ±), S.Countable ∧ (βˆ€ s ∈ S, p s) ∧ βˆ€ x ∈ t, βˆ€ y ∈ t, (βˆ€ s ∈ S, x ∈ s ↔ y ∈ s) ...
Mathlib/Order/Filter/CountableSeparatingOn.lean
103
109
theorem exists_seq_separating (Ξ± : Type*) {p : Set Ξ± β†’ Prop} {sβ‚€} (hp : p sβ‚€) (t : Set Ξ±) [HasCountableSeparatingOn Ξ± p t] : βˆƒ S : β„• β†’ Set Ξ±, (βˆ€ n, p (S n)) ∧ βˆ€ x ∈ t, βˆ€ y ∈ t, (βˆ€ n, x ∈ S n ↔ y ∈ S n) β†’ x = y := by
rcases exists_nonempty_countable_separating α hp t with ⟨S, hSne, hSc, hS⟩ rcases hSc.exists_eq_range hSne with ⟨S, rfl⟩ use S simpa only [forall_mem_range] using hS
[ " βˆƒ S, (βˆ€ (n : β„•), p (S n)) ∧ βˆ€ x ∈ t, βˆ€ y ∈ t, (βˆ€ (n : β„•), x ∈ S n ↔ y ∈ S n) β†’ x = y", " (βˆ€ (n : β„•), p (S n)) ∧ βˆ€ x ∈ t, βˆ€ y ∈ t, (βˆ€ (n : β„•), x ∈ S n ↔ y ∈ S n) β†’ x = y" ]
[]
import Mathlib.RingTheory.FiniteType #align_import ring_theory.rees_algebra from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe u v variable {R M : Type u} [CommRing R] [AddCommGroup M] [Module R M] (I : Ideal R) open Polynomial open Polynomial def reesAlgebra : Subalgebra...
Mathlib/RingTheory/ReesAlgebra.lean
82
95
theorem monomial_mem_adjoin_monomial {I : Ideal R} {n : β„•} {r : R} (hr : r ∈ I ^ n) : monomial n r ∈ Algebra.adjoin R (Submodule.map (monomial 1 : R β†’β‚—[R] R[X]) I : Set R[X]) := by
induction' n with n hn generalizing r · exact Subalgebra.algebraMap_mem _ _ · rw [pow_succ'] at hr apply Submodule.smul_induction_on -- Porting note: did not need help with motive previously (p := fun r => (monomial (Nat.succ n)) r ∈ Algebra.adjoin R (Submodule.map (monomial 1) I)) hr · intro...
[ " (a✝ * b✝).coeff i ∈ I ^ i", " βˆ‘ x ∈ Finset.antidiagonal i, a✝.coeff x.1 * b✝.coeff x.2 ∈ I ^ i", " βˆ€ c ∈ Finset.antidiagonal i, a✝.coeff c.1 * b✝.coeff c.2 ∈ I ^ i", " a✝.coeff (j, k).1 * b✝.coeff (j, k).2 ∈ I ^ i", " a✝.coeff (j, k).1 * b✝.coeff (j, k).2 ∈ I ^ (j, k).1 * I ^ (j, k).2", " coeff 1 i ∈ I ...
[ " (a✝ * b✝).coeff i ∈ I ^ i", " βˆ‘ x ∈ Finset.antidiagonal i, a✝.coeff x.1 * b✝.coeff x.2 ∈ I ^ i", " βˆ€ c ∈ Finset.antidiagonal i, a✝.coeff c.1 * b✝.coeff c.2 ∈ I ^ i", " a✝.coeff (j, k).1 * b✝.coeff (j, k).2 ∈ I ^ i", " a✝.coeff (j, k).1 * b✝.coeff (j, k).2 ∈ I ^ (j, k).1 * I ^ (j, k).2", " coeff 1 i ∈ I ...
import Mathlib.Algebra.Group.Subsemigroup.Basic #align_import group_theory.subsemigroup.membership from "leanprover-community/mathlib"@"6cb77a8eaff0ddd100e87b1591c6d3ad319514ff" assert_not_exists MonoidWithZero variable {ΞΉ : Sort*} {M A B : Type*} section NonAssoc variable [Mul M] open Set namespace Subsemigr...
Mathlib/Algebra/Group/Subsemigroup/Membership.lean
123
128
theorem iSup_induction (S : ΞΉ β†’ Subsemigroup M) {C : M β†’ Prop} {x₁ : M} (hx₁ : x₁ ∈ ⨆ i, S i) (mem : βˆ€ i, βˆ€ xβ‚‚ ∈ S i, C xβ‚‚) (mul : βˆ€ x y, C x β†’ C y β†’ C (x * y)) : C x₁ := by
rw [iSup_eq_closure] at hx₁ refine closure_induction hx₁ (fun xβ‚‚ hxβ‚‚ => ?_) mul obtain ⟨i, hi⟩ := Set.mem_iUnion.mp hxβ‚‚ exact mem _ _ hi
[ " x ∈ ⨆ i, S i ↔ βˆƒ i, x ∈ S i", " x ∈ ⨆ i, S i β†’ βˆƒ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) β†’ βˆƒ i, x ∈ S i", " βˆ€ (x y : M), (βˆƒ i, x ∈ S i) β†’ (βˆƒ i, y ∈ S i) β†’ βˆƒ i, x * y ∈ S i", " βˆƒ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ βˆƒ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
[ " x ∈ ⨆ i, S i ↔ βˆƒ i, x ∈ S i", " x ∈ ⨆ i, S i β†’ βˆƒ i, x ∈ S i", " x ∈ closure (⋃ i, ↑(S i)) β†’ βˆƒ i, x ∈ S i", " βˆ€ (x y : M), (βˆƒ i, x ∈ S i) β†’ (βˆƒ i, y ∈ S i) β†’ βˆƒ i, x * y ∈ S i", " βˆƒ i, x * y ∈ S i", " x ∈ ↑(⨆ i, S i) ↔ x ∈ ⋃ i, ↑(S i)", " x ∈ sSup S ↔ βˆƒ s ∈ S, x ∈ s", " x ∈ ↑(sSup S) ↔ x ∈ ⋃ s ∈ S, ↑s"...
import Mathlib.Order.ConditionallyCompleteLattice.Basic #align_import order.monotone.extension from "leanprover-community/mathlib"@"422e70f7ce183d2900c586a8cda8381e788a0c62" open Set variable {Ξ± Ξ² : Type*} [LinearOrder Ξ±] [ConditionallyCompleteLinearOrder Ξ²] {f : Ξ± β†’ Ξ²} {s : Set Ξ±} {a b : Ξ±}
Mathlib/Order/Monotone/Extension.lean
25
48
theorem MonotoneOn.exists_monotone_extension (h : MonotoneOn f s) (hl : BddBelow (f '' s)) (hu : BddAbove (f '' s)) : βˆƒ g : Ξ± β†’ Ξ², Monotone g ∧ EqOn f g s := by
classical /- The extension is defined by `f x = f a` for `x ≀ a`, and `f x` is the supremum of the values of `f` to the left of `x` for `x β‰₯ a`. -/ rcases hl with ⟨a, ha⟩ have hu' : βˆ€ x, BddAbove (f '' (Iic x ∩ s)) := fun x => hu.mono (image_subset _ inter_subset_right) let g : Ξ± β†’ Ξ² := f...
[ " βˆƒ g, Monotone g ∧ EqOn f g s", " EqOn f g s", " f x = g x", " f x = if Disjoint (Iic x) s then a else sSup (f '' (Iic x ∩ s))", " g x ≀ g y", " a ≀ sSup (f '' (Iic y ∩ s))", " sSup (f '' (Iic x ∩ s)) ≀ a", " sSup (f '' (Iic x ∩ s)) ≀ sSup (f '' (Iic y ∩ s))", " Iic x ∩ s βŠ† Iic y ∩ s" ]
[]
import Mathlib.Algebra.ContinuedFractions.Computation.Approximations import Mathlib.Algebra.ContinuedFractions.Computation.CorrectnessTerminating import Mathlib.Data.Rat.Floor #align_import algebra.continued_fractions.computation.terminates_iff_rat from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b3...
Mathlib/Algebra/ContinuedFractions/Computation/TerminatesIffRat.lean
129
135
theorem exists_rat_eq_of_terminates (terminates : (of v).Terminates) : βˆƒ q : β„š, v = ↑q := by
obtain ⟨n, v_eq_conv⟩ : βˆƒ n, v = (of v).convergents n := of_correctness_of_terminates terminates obtain ⟨q, conv_eq_q⟩ : βˆƒ q : β„š, (of v).convergents n = (↑q : K) := exists_rat_eq_nth_convergent v n have : v = (↑q : K) := Eq.trans v_eq_conv conv_eq_q use q, this
[ " βˆ€ (n : β„•),\n (βˆ€ m < n, βˆƒ conts, (of v).continuantsAux m = Pair.map Rat.cast conts) β†’\n βˆƒ conts, (of v).continuantsAux n = Pair.map Rat.cast conts", " βˆƒ conts, (of v).continuantsAux n = Pair.map Rat.cast conts", " βˆƒ conts, (of v).continuantsAux 0 = Pair.map Rat.cast conts", " βˆƒ gp, { a := 1, b := 0 }...
[ " βˆ€ (n : β„•),\n (βˆ€ m < n, βˆƒ conts, (of v).continuantsAux m = Pair.map Rat.cast conts) β†’\n βˆƒ conts, (of v).continuantsAux n = Pair.map Rat.cast conts", " βˆƒ conts, (of v).continuantsAux n = Pair.map Rat.cast conts", " βˆƒ conts, (of v).continuantsAux 0 = Pair.map Rat.cast conts", " βˆƒ gp, { a := 1, b := 0 }...
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Topology.Algebra.InfiniteSum.Order import Mathlib.Topology.Instances.Real import Mathlib.Topology.Instances.ENNReal #align_import topology.algebra.infinite_sum.real from "leanprover-community/mathlib"@"9a59dcb7a2d06bf55da57b9030169219980660cd" open Filte...
Mathlib/Topology/Algebra/InfiniteSum/Real.lean
26
31
theorem cauchySeq_of_dist_le_of_summable (d : β„• β†’ ℝ) (hf : βˆ€ n, dist (f n) (f n.succ) ≀ d n) (hd : Summable d) : CauchySeq f := by
lift d to β„• β†’ ℝβ‰₯0 using fun n ↦ dist_nonneg.trans (hf n) apply cauchySeq_of_edist_le_of_summable d (Ξ± := Ξ±) (f := f) Β· exact_mod_cast hf Β· exact_mod_cast hd
[ " CauchySeq f", " βˆ€ (n : β„•), edist (f n) (f n.succ) ≀ ↑(d n)", " Summable d" ]
[]
import Mathlib.Topology.Algebra.UniformConvergence #align_import topology.algebra.module.strong_topology from "leanprover-community/mathlib"@"8905e5ed90859939681a725b00f6063e65096d95" open scoped Topology UniformConvergence section General variable {π•œβ‚ π•œβ‚‚ : Type*} [NormedField π•œβ‚] [NormedField π•œβ‚‚] (Οƒ : π•œ...
Mathlib/Topology/Algebra/Module/StrongTopology.lean
113
115
theorem uniformSpace_eq [UniformSpace F] [UniformAddGroup F] (𝔖 : Set (Set E)) : instUniformSpace Οƒ F 𝔖 = UniformSpace.comap DFunLike.coe (UniformOnFun.uniformSpace E F 𝔖) := by
rw [instUniformSpace, UniformSpace.replaceTopology_eq]
[ " instTopologicalSpace Οƒ F 𝔖 = TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖)", " TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖) =\n TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖)", " TopologicalAddGroup.toUniformSpace...
[ " instTopologicalSpace Οƒ F 𝔖 = TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖)", " TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖) =\n TopologicalSpace.induced DFunLike.coe (UniformOnFun.topologicalSpace E F 𝔖)", " TopologicalAddGroup.toUniformSpace...
import Mathlib.Algebra.Order.Monoid.Unbundled.MinMax import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Finset.Image import Mathlib.Data.Multiset.Fold #align_import data.finset.fold from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" -- TODO: -- assert_not_exists OrderedComm...
Mathlib/Data/Finset/Fold.lean
124
129
theorem fold_insert_idem [DecidableEq Ξ±] [hi : Std.IdempotentOp op] : (insert a s).fold op b f = f a * s.fold op b f := by
by_cases h : a ∈ s Β· rw [← insert_erase h] simp [← ha.assoc, hi.idempotent] Β· apply fold_insert h
[ " fold op b f (cons a s h) = op (f a) (fold op b f s)", " Multiset.fold op b (Multiset.map f (cons a s h).val) = op (f a) (Multiset.fold op b (Multiset.map f s.val))", " fold op b f (insert a s) = op (f a) (fold op b f s)", " Multiset.fold op b (Multiset.map f (insert a s).val) = op (f a) (Multiset.fold op b ...
[ " fold op b f (cons a s h) = op (f a) (fold op b f s)", " Multiset.fold op b (Multiset.map f (cons a s h).val) = op (f a) (Multiset.fold op b (Multiset.map f s.val))", " fold op b f (insert a s) = op (f a) (fold op b f s)", " Multiset.fold op b (Multiset.map f (insert a s).val) = op (f a) (Multiset.fold op b ...
import Mathlib.Analysis.SpecialFunctions.Complex.Arg import Mathlib.Analysis.SpecialFunctions.Log.Basic #align_import analysis.special_functions.complex.log from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section namespace Complex open Set Filter Bornology open scop...
Mathlib/Analysis/SpecialFunctions/Complex/Log.lean
45
49
theorem exp_log {x : β„‚} (hx : x β‰  0) : exp (log x) = x := by
rw [log, exp_add_mul_I, ← ofReal_sin, sin_arg, ← ofReal_cos, cos_arg hx, ← ofReal_exp, Real.exp_log (abs.pos hx), mul_add, ofReal_div, ofReal_div, mul_div_cancelβ‚€ _ (ofReal_ne_zero.2 <| abs.ne_zero hx), ← mul_assoc, mul_div_cancelβ‚€ _ (ofReal_ne_zero.2 <| abs.ne_zero hx), re_add_im]
[ " x.log.re = (abs x).log", " x.log.im = x.arg", " -Ο€ < x.log.im", " x.log.im ≀ Ο€", " cexp x.log = x" ]
[ " x.log.re = (abs x).log", " x.log.im = x.arg", " -Ο€ < x.log.im", " x.log.im ≀ Ο€" ]
import Mathlib.LinearAlgebra.TensorProduct.Basic import Mathlib.RingTheory.Finiteness open scoped TensorProduct open Submodule variable {R M N : Type*} variable [CommSemiring R] [AddCommMonoid M] [AddCommMonoid N] [Module R M] [Module R N] variable {M₁ Mβ‚‚ : Submodule R M} {N₁ Nβ‚‚ : Submodule R N} namespace Tens...
Mathlib/LinearAlgebra/TensorProduct/Finiteness.lean
131
136
theorem exists_finite_submodule_right_of_finite (s : Set (M βŠ—[R] N)) (hs : s.Finite) : βˆƒ N' : Submodule R N, Module.Finite R N' ∧ s βŠ† LinearMap.range (N'.subtype.lTensor M) := by
obtain ⟨_, N', _, hfin, h⟩ := exists_finite_submodule_of_finite s hs refine ⟨N', hfin, ?_⟩ rw [mapIncl, ← LinearMap.lTensor_comp_rTensor] at h exact h.trans (LinearMap.range_comp_le_range _ _)
[ " βˆƒ S, x = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " βˆƒ S, 0 = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " 0 = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) 0).sum", " βˆƒ S, x βŠ—β‚œ[R] y = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " x βŠ—β‚œ[R] y = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) {(x, y)}).sum", ...
[ " βˆƒ S, x = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " βˆƒ S, 0 = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " 0 = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) 0).sum", " βˆƒ S, x βŠ—β‚œ[R] y = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) S).sum", " x βŠ—β‚œ[R] y = (Multiset.map (fun i => i.1 βŠ—β‚œ[R] i.2) {(x, y)}).sum", ...
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
125
126
theorem closure_inv (s : Set G) : closure s⁻¹ = closure s := by
simp only [← toSubmonoid_eq, closure_toSubmonoid, inv_inv, union_comm]
[ " 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.MeasureTheory.Measure.MeasureSpaceDef #align_import measure_theory.measure.ae_disjoint from "leanprover-community/mathlib"@"bc7d81beddb3d6c66f71449c5bc76c38cb77cf9e" open Set Function namespace MeasureTheory variable {ΞΉ Ξ± : Type*} {m : MeasurableSpace Ξ±} (ΞΌ : Measure Ξ±) def AEDisjoint (s t : Se...
Mathlib/MeasureTheory/Measure/AEDisjoint.lean
34
46
theorem exists_null_pairwise_disjoint_diff [Countable ΞΉ] {s : ΞΉ β†’ Set Ξ±} (hd : Pairwise (AEDisjoint ΞΌ on s)) : βˆƒ t : ΞΉ β†’ Set Ξ±, (βˆ€ i, MeasurableSet (t i)) ∧ (βˆ€ i, ΞΌ (t i) = 0) ∧ Pairwise (Disjoint on fun i => s i \ t i) := by
refine ⟨fun i => toMeasurable ΞΌ (s i ∩ ⋃ j ∈ ({i}ᢜ : Set ΞΉ), s j), fun i => measurableSet_toMeasurable _ _, fun i => ?_, ?_⟩ Β· simp only [measure_toMeasurable, inter_iUnion] exact (measure_biUnion_null_iff <| to_countable _).2 fun j hj => hd (Ne.symm hj) Β· simp only [Pairwise, disjoint_left, onFun, mem_d...
[ " βˆƒ t, (βˆ€ (i : ΞΉ), MeasurableSet (t i)) ∧ (βˆ€ (i : ΞΉ), ΞΌ (t i) = 0) ∧ Pairwise (Disjoint on fun i => s i \\ t i)", " ΞΌ ((fun i => toMeasurable ΞΌ (s i ∩ ⋃ j ∈ {i}ᢜ, s j)) i) = 0", " ΞΌ (⋃ i_1 ∈ {i}ᢜ, s i ∩ s i_1) = 0", " Pairwise (Disjoint on fun i => s i \\ (fun i => toMeasurable ΞΌ (s i ∩ ⋃ j ∈ {i}ᢜ, s j)) i)",...
[]
import Mathlib.Algebra.Associated import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Ring.Divisibility.Basic #align_import ring_theory.prime from "leanprover-community/mathlib"@"008205aa645b3f194c1da47025c5f110c8406eab" section CancelCommMonoidWithZero ...
Mathlib/RingTheory/Prime.lean
51
56
theorem mul_eq_mul_prime_pow {x y a p : R} {n : β„•} (hp : Prime p) (hx : x * y = a * p ^ n) : βˆƒ (i j : β„•) (b c : R), i + j = n ∧ a = b * c ∧ x = b * p ^ i ∧ y = c * p ^ j := by
rcases mul_eq_mul_prime_prod (fun _ _ ↦ hp) (show x * y = a * (range n).prod fun _ ↦ p by simpa) with ⟨t, u, b, c, htus, htu, rfl, rfl, rfl⟩ exact ⟨t.card, u.card, b, c, by rw [← card_union_of_disjoint htu, htus, card_range], by simp⟩
[ " βˆƒ t u b c, t βˆͺ u = s ∧ Disjoint t u ∧ a = b * c ∧ x = b * ∏ i ∈ t, p i ∧ y = c * ∏ i ∈ u, p i", " βˆƒ t u b c, t βˆͺ u = βˆ… ∧ Disjoint t u ∧ a = b * c ∧ x = b * ∏ i ∈ t, p i ∧ y = c * ∏ i ∈ u, p i", " βˆ… βˆͺ βˆ… = βˆ… ∧ Disjoint βˆ… βˆ… ∧ a = x * y ∧ x = x * ∏ i ∈ βˆ…, p i ∧ y = y * ∏ i ∈ βˆ…, p i", " βˆƒ t u b c, t βˆͺ u = insert...
[ " βˆƒ t u b c, t βˆͺ u = s ∧ Disjoint t u ∧ a = b * c ∧ x = b * ∏ i ∈ t, p i ∧ y = c * ∏ i ∈ u, p i", " βˆƒ t u b c, t βˆͺ u = βˆ… ∧ Disjoint t u ∧ a = b * c ∧ x = b * ∏ i ∈ t, p i ∧ y = c * ∏ i ∈ u, p i", " βˆ… βˆͺ βˆ… = βˆ… ∧ Disjoint βˆ… βˆ… ∧ a = x * y ∧ x = x * ∏ i ∈ βˆ…, p i ∧ y = y * ∏ i ∈ βˆ…, p i", " βˆƒ t u b c, t βˆͺ u = insert...
import Mathlib.Algebra.ContinuedFractions.Computation.Approximations import Mathlib.Algebra.ContinuedFractions.Computation.CorrectnessTerminating import Mathlib.Data.Rat.Floor #align_import algebra.continued_fractions.computation.terminates_iff_rat from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b3...
Mathlib/Algebra/ContinuedFractions/Computation/TerminatesIffRat.lean
174
194
theorem coe_stream_nth_rat_eq : ((IntFractPair.stream q n).map (mapFr (↑)) : Option <| IntFractPair K) = IntFractPair.stream v n := by
induction n with | zero => -- Porting note: was -- simp [IntFractPair.stream, coe_of_rat_eq v_eq_q] simp only [IntFractPair.stream, Option.map_some', coe_of_rat_eq v_eq_q] | succ n IH => rw [v_eq_q] at IH cases stream_q_nth_eq : IntFractPair.stream q n with | none => simp [IntFractPair.st...
[ " mapFr Rat.cast (IntFractPair.of q) = IntFractPair.of v", " Option.map (mapFr Rat.cast) (IntFractPair.stream q n) = IntFractPair.stream v n", " Option.map (mapFr Rat.cast) (IntFractPair.stream q 0) = IntFractPair.stream v 0", " Option.map (mapFr Rat.cast) (IntFractPair.stream q (n + 1)) = IntFractPair.stream...
[ " mapFr Rat.cast (IntFractPair.of q) = IntFractPair.of v" ]
import Mathlib.NumberTheory.Divisors import Mathlib.Data.Nat.Digits import Mathlib.Data.Nat.MaxPowDiv import Mathlib.Data.Nat.Multiplicity import Mathlib.Tactic.IntervalCases #align_import number_theory.padics.padic_val from "leanprover-community/mathlib"@"60fa54e778c9e85d930efae172435f42fb0d71f7" universe u ope...
Mathlib/NumberTheory/Padics/PadicVal.lean
133
146
theorem padicValNat_eq_maxPowDiv : @padicValNat = @maxPowDiv := by
ext p n by_cases h : 1 < p ∧ 0 < n · dsimp [padicValNat] rw [dif_pos ⟨Nat.ne_of_gt h.1,h.2⟩, maxPowDiv_eq_multiplicity_get h.1 h.2] · simp only [not_and_or,not_gt_eq,Nat.le_zero] at h apply h.elim · intro h interval_cases p · simp [Classical.em] · dsimp [padicValNat, maxPowDiv] ...
[ " padicValNat p 0 = 0", " padicValNat p 1 = 0", " (if h : p β‰  1 ∧ 0 < 1 then (multiplicity p 1).get β‹― else 0) = 0", " (multiplicity p 1).get β‹― = 0", " 0 = 0", " padicValNat p p = 1", " padicValNat p n = 0 ↔ p = 1 ∨ n = 0 ∨ Β¬p ∣ n", " ↑(p.maxPowDiv n) = multiplicity p n", " Β¬p ^ (p.maxPowDiv n + 1) ∣...
[ " padicValNat p 0 = 0", " padicValNat p 1 = 0", " (if h : p β‰  1 ∧ 0 < 1 then (multiplicity p 1).get β‹― else 0) = 0", " (multiplicity p 1).get β‹― = 0", " 0 = 0", " padicValNat p p = 1", " padicValNat p n = 0 ↔ p = 1 ∨ n = 0 ∨ Β¬p ∣ n", " ↑(p.maxPowDiv n) = multiplicity p n", " Β¬p ^ (p.maxPowDiv n + 1) ∣...
import Mathlib.CategoryTheory.Sites.Grothendieck import Mathlib.CategoryTheory.Sites.Pretopology import Mathlib.CategoryTheory.Limits.Lattice import Mathlib.Topology.Sets.Opens #align_import category_theory.sites.spaces from "leanprover-community/mathlib"@"b6fa3beb29f035598cf0434d919694c5e98091eb" universe u nam...
Mathlib/CategoryTheory/Sites/Spaces.lean
78
86
theorem pretopology_ofGrothendieck : Pretopology.ofGrothendieck _ (Opens.grothendieckTopology T) = Opens.pretopology T := by
apply le_antisymm Β· intro X R hR x hx rcases hR x hx with ⟨U, f, ⟨V, g₁, gβ‚‚, hgβ‚‚, _⟩, hU⟩ exact ⟨V, gβ‚‚, hgβ‚‚, g₁.le hU⟩ Β· intro X R hR x hx rcases hR x hx with ⟨U, f, hf, hU⟩ exact ⟨U, f, Sieve.le_generate R U hf, hU⟩
[ " βˆƒ U f_1, (Sieve.pullback f S).arrows f_1 ∧ y ∈ U", " (Sieve.pullback f S).arrows (homOfLE β‹―)", " βˆƒ U f, R.arrows f ∧ x ∈ U", " βˆƒ U f_1, Presieve.pullbackArrows f S f_1 ∧ x ∈ U", " x ∈ pullback g f", " βˆƒ U f, S.bind Ti f ∧ x ∈ U", " Pretopology.ofGrothendieck (Opens T) (grothendieckTopology T) = pretop...
[ " βˆƒ U f_1, (Sieve.pullback f S).arrows f_1 ∧ y ∈ U", " (Sieve.pullback f S).arrows (homOfLE β‹―)", " βˆƒ U f, R.arrows f ∧ x ∈ U", " βˆƒ U f_1, Presieve.pullbackArrows f S f_1 ∧ x ∈ U", " x ∈ pullback g f", " βˆƒ U f, S.bind Ti f ∧ x ∈ U" ]
import Mathlib.Algebra.Algebra.Quasispectrum import Mathlib.FieldTheory.IsAlgClosed.Spectrum import Mathlib.Analysis.Complex.Liouville import Mathlib.Analysis.Complex.Polynomial import Mathlib.Analysis.Analytic.RadiusLiminf import Mathlib.Topology.Algebra.Module.CharacterSpace import Mathlib.Analysis.NormedSpace.Expon...
Mathlib/Analysis/NormedSpace/Spectrum.lean
84
86
theorem spectralRadius_zero : spectralRadius π•œ (0 : A) = 0 := by
nontriviality A simp [spectralRadius]
[ " spectralRadius π•œ a = 0", " spectralRadius π•œ 0 = 0" ]
[ " spectralRadius π•œ a = 0" ]
import Mathlib.Combinatorics.SimpleGraph.Dart import Mathlib.Data.FunLike.Fintype open Function namespace SimpleGraph variable {V W X : Type*} (G : SimpleGraph V) (G' : SimpleGraph W) {u v : V} protected def map (f : V β†ͺ W) (G : SimpleGraph V) : SimpleGraph W where Adj := Relation.Map G.Adj f f symm a b...
Mathlib/Combinatorics/SimpleGraph/Maps.lean
154
155
theorem map_comap_le (f : V β†ͺ W) (G : SimpleGraph W) : (G.comap f).map f ≀ G := by
rw [map_le_iff_le_comap]
[ " Relation.Map G.Adj (⇑f) (⇑f) a b β†’ Relation.Map G.Adj (⇑f) (⇑f) b a", " Relation.Map G.Adj (⇑f) (⇑f) (f w) (f v)", " Β¬Relation.Map G.Adj (⇑f) (⇑f) a a", " False", " (SimpleGraph.map f G).Adj (f a) (f b) ↔ G.Adj a b", " Monotone (SimpleGraph.map f)", " (SimpleGraph.map f G').Adj (f u) (f v)", " Simpl...
[ " Relation.Map G.Adj (⇑f) (⇑f) a b β†’ Relation.Map G.Adj (⇑f) (⇑f) b a", " Relation.Map G.Adj (⇑f) (⇑f) (f w) (f v)", " Β¬Relation.Map G.Adj (⇑f) (⇑f) a a", " False", " (SimpleGraph.map f G).Adj (f a) (f b) ↔ G.Adj a b", " Monotone (SimpleGraph.map f)", " (SimpleGraph.map f G').Adj (f u) (f v)", " Simpl...
import Mathlib.Combinatorics.SimpleGraph.Dart import Mathlib.Data.FunLike.Fintype open Function namespace SimpleGraph variable {V W X : Type*} (G : SimpleGraph V) (G' : SimpleGraph W) {u v : V} protected def map (f : V β†ͺ W) (G : SimpleGraph V) : SimpleGraph W where Adj := Relation.Map G.Adj f f symm a b...
Mathlib/Combinatorics/SimpleGraph/Maps.lean
76
78
theorem map_monotone (f : V β†ͺ W) : Monotone (SimpleGraph.map f) := by
rintro G G' h _ _ ⟨u, v, ha, rfl, rfl⟩ exact ⟨_, _, h ha, rfl, rfl⟩
[ " Relation.Map G.Adj (⇑f) (⇑f) a b β†’ Relation.Map G.Adj (⇑f) (⇑f) b a", " Relation.Map G.Adj (⇑f) (⇑f) (f w) (f v)", " Β¬Relation.Map G.Adj (⇑f) (⇑f) a a", " False", " (SimpleGraph.map f G).Adj (f a) (f b) ↔ G.Adj a b", " Monotone (SimpleGraph.map f)", " (SimpleGraph.map f G').Adj (f u) (f v)" ]
[ " Relation.Map G.Adj (⇑f) (⇑f) a b β†’ Relation.Map G.Adj (⇑f) (⇑f) b a", " Relation.Map G.Adj (⇑f) (⇑f) (f w) (f v)", " Β¬Relation.Map G.Adj (⇑f) (⇑f) a a", " False", " (SimpleGraph.map f G).Adj (f a) (f b) ↔ G.Adj a b" ]
import Mathlib.Dynamics.Ergodic.Ergodic import Mathlib.MeasureTheory.Function.AEEqFun open Function Set Filter MeasureTheory Topology TopologicalSpace variable {Ξ± X : Type*} [MeasurableSpace Ξ±] {ΞΌ : MeasureTheory.Measure Ξ±} theorem QuasiErgodic.ae_eq_const_of_ae_eq_comp_of_ae_rangeβ‚€ [Nonempty X] [MeasurableSpace...
Mathlib/Dynamics/Ergodic/Function.lean
77
82
theorem ae_eq_const_of_ae_eq_comp_ae {g : Ξ± β†’ X} (h : QuasiErgodic f ΞΌ) (hgm : AEStronglyMeasurable g ΞΌ) (hg_eq : g ∘ f =ᡐ[ΞΌ] g) : βˆƒ c, g =ᡐ[ΞΌ] const Ξ± c := by
borelize X rcases hgm.isSeparable_ae_range with ⟨t, ht, hgt⟩ haveI := ht.secondCountableTopology exact h.ae_eq_const_of_ae_eq_comp_of_ae_rangeβ‚€ hgt hgm.aemeasurable.nullMeasurable hg_eq
[ " βˆƒ c, g =αΆ [ae ΞΌ] const Ξ± c", " βˆ€ (U : Set X), MeasurableSet U β†’ (βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x ∈ U) ∨ βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x βˆ‰ U", " f ⁻¹' (g ⁻¹' U) =αΆ [ae ΞΌ] g ⁻¹' U", " x ∈ f ⁻¹' (g ⁻¹' U) ↔ x ∈ g ⁻¹' U" ]
[ " βˆƒ c, g =αΆ [ae ΞΌ] const Ξ± c", " βˆ€ (U : Set X), MeasurableSet U β†’ (βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x ∈ U) ∨ βˆ€α΅ (x : Ξ±) βˆ‚ΞΌ, g x βˆ‰ U", " f ⁻¹' (g ⁻¹' U) =αΆ [ae ΞΌ] g ⁻¹' U", " x ∈ f ⁻¹' (g ⁻¹' U) ↔ x ∈ g ⁻¹' U" ]
import Mathlib.Data.Finset.Prod import Mathlib.Data.Set.Finite #align_import data.finset.n_ary from "leanprover-community/mathlib"@"eba7871095e834365616b5e43c8c7bb0b37058d0" open Function Set variable {Ξ± Ξ±' Ξ² Ξ²' Ξ³ Ξ³' Ξ΄ Ξ΄' Ξ΅ Ξ΅' ΞΆ ΞΆ' Ξ½ : Type*} namespace Finset variable [DecidableEq Ξ±'] [DecidableEq Ξ²'] [Decidabl...
Mathlib/Data/Finset/NAry.lean
108
109
theorem imageβ‚‚_subset_iff_left : imageβ‚‚ f s t βŠ† u ↔ βˆ€ a ∈ s, (t.image fun b => f a b) βŠ† u := by
simp_rw [imageβ‚‚_subset_iff, image_subset_iff]
[ " c ∈ imageβ‚‚ f s t ↔ βˆƒ a ∈ s, βˆƒ b ∈ t, f a b = c", " (imageβ‚‚ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s Γ—Λ’ ↑t)", " (imageβ‚‚ f s t).card = (s Γ—Λ’ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s Γ—Λ’ t)", " f a b ∈ imageβ‚‚ f s t ↔ a ∈ s ∧ b ∈ t", " imageβ‚‚ f s t βŠ† imageβ‚‚ f s' t'", " image2 f ↑s ↑t βŠ† ...
[ " c ∈ imageβ‚‚ f s t ↔ βˆƒ a ∈ s, βˆƒ b ∈ t, f a b = c", " (imageβ‚‚ f s t).card = s.card * t.card ↔ InjOn (fun x => f x.1 x.2) (↑s Γ—Λ’ ↑t)", " (imageβ‚‚ f s t).card = (s Γ—Λ’ t).card ↔ InjOn (fun x => f x.1 x.2) ↑(s Γ—Λ’ t)", " f a b ∈ imageβ‚‚ f s t ↔ a ∈ s ∧ b ∈ t", " imageβ‚‚ f s t βŠ† imageβ‚‚ f s' t'", " image2 f ↑s ↑t βŠ† ...
import Mathlib.Init.Function #align_import data.option.n_ary from "leanprover-community/mathlib"@"995b47e555f1b6297c7cf16855f1023e355219fb" universe u open Function namespace Option variable {Ξ± Ξ² Ξ³ Ξ΄ : Type*} {f : Ξ± β†’ Ξ² β†’ Ξ³} {a : Option Ξ±} {b : Option Ξ²} {c : Option Ξ³} def mapβ‚‚ (f : Ξ± β†’ Ξ² β†’ Ξ³) (a : Option Ξ±) ...
Mathlib/Data/Option/NAry.lean
87
88
theorem mapβ‚‚_swap (f : Ξ± β†’ Ξ² β†’ Ξ³) (a : Option Ξ±) (b : Option Ξ²) : mapβ‚‚ f a b = mapβ‚‚ (fun a b => f b a) b a := by
cases a <;> cases b <;> rfl
[ " mapβ‚‚ f a b = Seq.seq (f <$> a) fun x => b", " mapβ‚‚ f none b = Seq.seq (f <$> none) fun x => b", " mapβ‚‚ f (some val✝) b = Seq.seq (f <$> some val✝) fun x => b", " mapβ‚‚ f a none = none", " mapβ‚‚ f none none = none", " mapβ‚‚ f (some val✝) none = none", " mapβ‚‚ f a (some b) = Option.map (fun a => f a b) a", ...
[ " mapβ‚‚ f a b = Seq.seq (f <$> a) fun x => b", " mapβ‚‚ f none b = Seq.seq (f <$> none) fun x => b", " mapβ‚‚ f (some val✝) b = Seq.seq (f <$> some val✝) fun x => b", " mapβ‚‚ f a none = none", " mapβ‚‚ f none none = none", " mapβ‚‚ f (some val✝) none = none", " mapβ‚‚ f a (some b) = Option.map (fun a => f a b) a", ...
import Mathlib.Geometry.Manifold.ContMDiff.Basic open Set Function Filter ChartedSpace SmoothManifoldWithCorners open scoped Topology Manifold variable {π•œ : Type*} [NontriviallyNormedField π•œ] -- declare a smooth manifold `M` over the pair `(E, H)`. {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {H ...
Mathlib/Geometry/Manifold/ContMDiff/Product.lean
59
63
theorem ContMDiffWithinAt.prod_mk {f : M β†’ M'} {g : M β†’ N'} (hf : ContMDiffWithinAt I I' n f s x) (hg : ContMDiffWithinAt I J' n g s x) : ContMDiffWithinAt I (I'.prod J') n (fun x => (f x, g x)) s x := by
rw [contMDiffWithinAt_iff] at * exact ⟨hf.1.prod hg.1, hf.2.prod hg.2⟩
[ " ContMDiffWithinAt I (I'.prod J') n (fun x => (f x, g x)) s x", " ContinuousWithinAt (fun x => (f x, g x)) s x ∧\n ContDiffWithinAt π•œ n (↑(extChartAt (I'.prod J') (f x, g x)) ∘ (fun x => (f x, g x)) ∘ ↑(extChartAt I x).symm)\n (↑(extChartAt I x).symm ⁻¹' s ∩ range ↑I) (↑(extChartAt I x) x)" ]
[]
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
123
125
theorem hasFiniteIntegral_iff_ofReal {f : Ξ± β†’ ℝ} (h : 0 ≀ᡐ[ΞΌ] f) : HasFiniteIntegral f ΞΌ ↔ (∫⁻ a, ENNReal.ofReal (f a) βˆ‚ΞΌ) < ∞ := by
rw [HasFiniteIntegral, lintegral_nnnorm_eq_of_ae_nonneg h]
[ " ∫⁻ (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.Order.Interval.Set.Basic import Mathlib.Order.Hom.Set #align_import data.set.intervals.order_iso from "leanprover-community/mathlib"@"d012cd09a9b256d870751284dd6a29882b0be105" open Set namespace OrderIso section Preorder variable {Ξ± Ξ² : Type*} [Preorder Ξ±] [Preorder Ξ²] @[simp] theorem preimage_I...
Mathlib/Order/Interval/Set/OrderIso.lean
36
38
theorem preimage_Iio (e : Ξ± ≃o Ξ²) (b : Ξ²) : e ⁻¹' Iio b = Iio (e.symm b) := by
ext x simp [← e.lt_iff_lt]
[ " ⇑e ⁻¹' Iic b = Iic (e.symm b)", " x ∈ ⇑e ⁻¹' Iic b ↔ x ∈ Iic (e.symm b)", " ⇑e ⁻¹' Ici b = Ici (e.symm b)", " x ∈ ⇑e ⁻¹' Ici b ↔ x ∈ Ici (e.symm b)", " ⇑e ⁻¹' Iio b = Iio (e.symm b)", " x ∈ ⇑e ⁻¹' Iio b ↔ x ∈ Iio (e.symm b)" ]
[ " ⇑e ⁻¹' Iic b = Iic (e.symm b)", " x ∈ ⇑e ⁻¹' Iic b ↔ x ∈ Iic (e.symm b)", " ⇑e ⁻¹' Ici b = Ici (e.symm b)", " x ∈ ⇑e ⁻¹' Ici b ↔ x ∈ Ici (e.symm b)" ]