Context
stringlengths
57
6.04k
file_name
stringlengths
21
79
start
int64
14
1.49k
end
int64
18
1.5k
theorem
stringlengths
25
1.55k
proof
stringlengths
5
7.36k
goals
listlengths
0
224
goals_before
listlengths
0
220
import Mathlib.Analysis.Fourier.AddCircle import Mathlib.Analysis.Fourier.FourierTransform import Mathlib.Analysis.PSeries import Mathlib.Analysis.Distribution.SchwartzSpace import Mathlib.MeasureTheory.Measure.Lebesgue.Integral #align_import analysis.fourier.poisson_summation from "leanprover-community/mathlib"@"fd5...
Mathlib/Analysis/Fourier/PoissonSummation.lean
131
157
theorem isBigO_norm_Icc_restrict_atTop {f : C(ℝ, E)} {b : ℝ} (hb : 0 < b) (hf : f =O[atTop] fun x : ℝ => |x| ^ (-b)) (R S : ℝ) : (fun x : ℝ => ‖f.restrict (Icc (x + R) (x + S))‖) =O[atTop] fun x : ℝ => |x| ^ (-b) := by
-- First establish an explicit estimate on decay of inverse powers. -- This is logically independent of the rest of the proof, but of no mathematical interest in -- itself, so it is proved in-line rather than being formulated as a separate lemma. have claim : ∀ x : ℝ, max 0 (-2 * R) < x → ∀ y : ℝ, x + R ≤ y → ...
[ " fourierCoeff ⋯.lift m = 𝓕 ⇑f ↑m", " ∀ (K : Compacts ℝ) (g : C(ℝ, ℂ)), ‖ContinuousMap.restrict (↑K) (e * g)‖ = ‖ContinuousMap.restrict (↑K) g‖", " ‖ContinuousMap.restrict (↑K) (e * g)‖ = ‖ContinuousMap.restrict (↑K) g‖", " ∀ (n : ℤ), e.comp (ContinuousMap.addRight ↑n) = e", " e.comp (ContinuousMap.addRigh...
[ " fourierCoeff ⋯.lift m = 𝓕 ⇑f ↑m", " ∀ (K : Compacts ℝ) (g : C(ℝ, ℂ)), ‖ContinuousMap.restrict (↑K) (e * g)‖ = ‖ContinuousMap.restrict (↑K) g‖", " ‖ContinuousMap.restrict (↑K) (e * g)‖ = ‖ContinuousMap.restrict (↑K) g‖", " ∀ (n : ℤ), e.comp (ContinuousMap.addRight ↑n) = e", " e.comp (ContinuousMap.addRigh...
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section Real variable {a b c d : ℝ≥0∞} {r p q : ℝ≥0} theorem toReal_add (ha : a ≠ ∞) (hb : b ≠ ∞) : (a + b).toReal = a.toReal ...
Mathlib/Data/ENNReal/Real.lean
94
97
theorem toReal_lt_toReal (ha : a ≠ ∞) (hb : b ≠ ∞) : a.toReal < b.toReal ↔ a < b := by
lift a to ℝ≥0 using ha lift b to ℝ≥0 using hb norm_cast
[ " (a + b).toReal = a.toReal + b.toReal", " (↑a + b).toReal = (↑a).toReal + b.toReal", " (↑a + ↑b).toReal = (↑a).toReal + (↑b).toReal", " (a - b).toReal = a.toReal - b.toReal", " (a - ↑b).toReal = a.toReal - (↑b).toReal", " (↑a - ↑b).toReal = (↑a).toReal - (↑b).toReal", " a.toReal - b.toReal ≤ (a - b).to...
[ " (a + b).toReal = a.toReal + b.toReal", " (↑a + b).toReal = (↑a).toReal + b.toReal", " (↑a + ↑b).toReal = (↑a).toReal + (↑b).toReal", " (a - b).toReal = a.toReal - b.toReal", " (a - ↑b).toReal = a.toReal - (↑b).toReal", " (↑a - ↑b).toReal = (↑a).toReal - (↑b).toReal", " a.toReal - b.toReal ≤ (a - b).to...
import Mathlib.LinearAlgebra.CliffordAlgebra.Conjugation import Mathlib.LinearAlgebra.CliffordAlgebra.Even import Mathlib.LinearAlgebra.QuadraticForm.Prod import Mathlib.Tactic.LiftLets #align_import linear_algebra.clifford_algebra.even_equiv from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36d...
Mathlib/LinearAlgebra/CliffordAlgebra/EvenEquiv.lean
82
86
theorem neg_e0_mul_v (m : M) : -(e0 Q * v Q m) = v Q m * e0 Q := by
refine neg_eq_of_add_eq_zero_right ((ι_mul_ι_add_swap _ _).trans ?_) dsimp [QuadraticForm.polar] simp only [add_zero, mul_zero, mul_one, zero_add, neg_zero, QuadraticForm.map_zero, add_sub_cancel_right, sub_self, map_zero, zero_sub]
[ " (ι (Q' Q)) (m, r) = (v Q) m + r • e0 Q", " (algebraMap R (CliffordAlgebra (Q' Q))) ((Q' Q) (0, 1)) = -1", " (algebraMap R (CliffordAlgebra (Q' Q))) ((Q' Q) ((LinearMap.inl R M R) m)) =\n (algebraMap R (CliffordAlgebra (Q' Q))) (Q m)", " -(e0 Q * (v Q) m) = (v Q) m * e0 Q", " (algebraMap R (CliffordAlge...
[ " (ι (Q' Q)) (m, r) = (v Q) m + r • e0 Q", " (algebraMap R (CliffordAlgebra (Q' Q))) ((Q' Q) (0, 1)) = -1", " (algebraMap R (CliffordAlgebra (Q' Q))) ((Q' Q) ((LinearMap.inl R M R) m)) =\n (algebraMap R (CliffordAlgebra (Q' Q))) (Q m)" ]
import Mathlib.Data.ENNReal.Inv #align_import data.real.ennreal from "leanprover-community/mathlib"@"c14c8fcde993801fca8946b0d80131a1a81d1520" open Set NNReal ENNReal namespace ENNReal section iInf variable {ι : Sort*} {f g : ι → ℝ≥0∞} variable {a b c d : ℝ≥0∞} {r p q : ℝ≥0} theorem toNNReal_iInf (hf : ∀ i, f ...
Mathlib/Data/ENNReal/Real.lean
585
587
theorem toReal_sSup (s : Set ℝ≥0∞) (hf : ∀ r ∈ s, r ≠ ∞) : (sSup s).toReal = sSup (ENNReal.toReal '' s) := by
simp only [ENNReal.toReal, toNNReal_sSup s hf, NNReal.coe_sSup, Set.image_image]
[ " (iInf f).toNNReal = ⨅ i, (f i).toNNReal", " (⨅ i, ↑(f i)).toNNReal = ⨅ i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
[ " (iInf f).toNNReal = ⨅ i, (f i).toNNReal", " (⨅ i, ↑(f i)).toNNReal = ⨅ i, ((fun i => ↑(f i)) i).toNNReal", " (sInf s).toNNReal = sInf (ENNReal.toNNReal '' s)", " (iSup f).toNNReal = ⨆ i, (f i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, ((fun i => ↑(f i)) i).toNNReal", " (⨆ i, ↑(f i)).toNNReal = ⨆ i, f i...
import Mathlib.Dynamics.BirkhoffSum.Basic import Mathlib.Algebra.Module.Basic open Finset section birkhoffAverage variable (R : Type*) {α M : Type*} [DivisionSemiring R] [AddCommMonoid M] [Module R M] def birkhoffAverage (f : α → α) (g : α → M) (n : ℕ) (x : α) : M := (n : R)⁻¹ • birkhoffSum f g n x theorem bir...
Mathlib/Dynamics/BirkhoffSum/Average.lean
57
61
theorem map_birkhoffAverage (S : Type*) {F N : Type*} [DivisionSemiring S] [AddCommMonoid N] [Module S N] [FunLike F M N] [AddMonoidHomClass F M N] (g' : F) (f : α → α) (g : α → M) (n : ℕ) (x : α) : g' (birkhoffAverage R f g n x) = birkhoffAverage S f (g' ∘ g) n x := by
simp only [birkhoffAverage, map_inv_natCast_smul g' R S, map_birkhoffSum]
[ " birkhoffAverage R f g 0 x = 0", " birkhoffAverage R f g 1 x = g x", " g' (birkhoffAverage R f g n x) = birkhoffAverage S f (⇑g' ∘ g) n x" ]
[ " birkhoffAverage R f g 0 x = 0", " birkhoffAverage R f g 1 x = g x" ]
import Mathlib.Topology.Order.IsLUB open Set Filter TopologicalSpace Topology Function open OrderDual (toDual ofDual) variable {α β γ : Type*} section DenselyOrdered variable [TopologicalSpace α] [LinearOrder α] [OrderTopology α] [DenselyOrdered α] {a b : α} {s : Set α} theorem closure_Ioi' {a : α} (h : (Io...
Mathlib/Topology/Order/DenselyOrdered.lean
83
84
theorem interior_Ici' {a : α} (ha : (Iio a).Nonempty) : interior (Ici a) = Ioi a := by
rw [← compl_Iio, interior_compl, closure_Iio' ha, compl_Iic]
[ " closure (Ioi a) = Ici a", " closure (Ioi a) ⊆ Ici a", " Ici a ⊆ closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) ⊆ Icc a b", " Icc a b ⊆ closure (Ioo a b)", " {a, b} ⊆ closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " ∅ ⊆ closure...
[ " closure (Ioi a) = Ici a", " closure (Ioi a) ⊆ Ici a", " Ici a ⊆ closure (Ioi a)", " a ∈ closure (Ioi a)", " closure (Ioo a b) = Icc a b", " closure (Ioo a b) ⊆ Icc a b", " Icc a b ⊆ closure (Ioo a b)", " {a, b} ⊆ closure (Ioo a b)", " a ∈ closure (Ioo a b) ∧ b ∈ closure (Ioo a b)", " ∅ ⊆ closure...
import Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.LinearAlgebra.Matrix.ToLin #align_import linear_algebra.matrix.charpoly.linear_map from "leanprover-community/mathlib"@"62c0a4ef1441edb463095ea02a06e87f3dfe135c" variable {ι : Type*} [Fintype ι] variable {M : Type*} [AddCommGroup M] (R : Type*) [Co...
Mathlib/LinearAlgebra/Matrix/Charpoly/LinearMap.lean
68
75
theorem PiToModule.fromEnd_injective (hb : Submodule.span R (Set.range b) = ⊤) : Function.Injective (PiToModule.fromEnd R b) := by
intro x y e ext m obtain ⟨m, rfl⟩ : m ∈ LinearMap.range (Fintype.total R R b) := by rw [(Fintype.range_total R b).trans hb] exact Submodule.mem_top exact (LinearMap.congr_fun e m : _)
[ " ((fromMatrix R b) A) (Pi.single j 1) = ∑ i : ι, A i j • b i", " ∑ i : ι, (fun i => A i j * 1) i • b i = ∑ i : ι, A i j • b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 • b i", "...
[ " ((fromMatrix R b) A) (Pi.single j 1) = ∑ i : ι, A i j • b i", " ∑ i : ι, (fun i => A i j * 1) i • b i = ∑ i : ι, A i j • b i", " ((fromEnd R b) f) (Pi.single i 1) = f (b i)", " f (((Fintype.total R R) b) (Pi.single i 1)) = f (b i)", " ((Fintype.total R R) b) (Pi.single i 1) = b i", " b i = 1 • b i" ]
import Mathlib.Algebra.GroupWithZero.Units.Lemmas import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Data.Fintype.BigOperators #align_import data.sign from "leanprover-community/mathlib"@"2445c98ae4b87eabebdde552593519b9b6dc350c" -- Porting note (#11081): cannot automatically derive Fintype, adde...
Mathlib/Data/Sign.lean
171
171
theorem nonpos_iff {a : SignType} : a ≤ 0 ↔ a = -1 ∨ a = 0 := by
cases a <;> decide
[ " x ∈ ↑[zero, neg, pos]", " zero ∈ ↑[zero, neg, pos]", " neg ∈ ↑[zero, neg, pos]", " pos ∈ ↑[zero, neg, pos]", " Decidable (a.LE b)", " Decidable (SignType.zero.LE b)", " Decidable (neg.LE b)", " Decidable (pos.LE b)", " Decidable (SignType.zero.LE SignType.zero)", " SignType.zero.LE SignType.zero...
[ " x ∈ ↑[zero, neg, pos]", " zero ∈ ↑[zero, neg, pos]", " neg ∈ ↑[zero, neg, pos]", " pos ∈ ↑[zero, neg, pos]", " Decidable (a.LE b)", " Decidable (SignType.zero.LE b)", " Decidable (neg.LE b)", " Decidable (pos.LE b)", " Decidable (SignType.zero.LE SignType.zero)", " SignType.zero.LE SignType.zero...
import Mathlib.Topology.ContinuousFunction.Basic #align_import topology.continuous_function.cocompact_map from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" universe u v w open Filter Set structure CocompactMap (α : Type u) (β : Type v) [TopologicalSpace α] [TopologicalSpace β] e...
Mathlib/Topology/ContinuousFunction/CocompactMap.lean
185
195
theorem isCompact_preimage [T2Space β] (f : CocompactMap α β) ⦃s : Set β⦄ (hs : IsCompact s) : IsCompact (f ⁻¹' s) := by
obtain ⟨t, ht, hts⟩ := mem_cocompact'.mp (by simpa only [preimage_image_preimage, preimage_compl] using mem_map.mp (cocompact_tendsto f <| mem_cocompact.mpr ⟨s, hs, compl_subset_compl.mpr (image_preimage_subset f _)⟩)) exact ht.of_isClosed_subset (hs.isClos...
[ " f = g", " { toFun := toFun✝, continuous_toFun := continuous_toFun✝, cocompact_tendsto' := cocompact_tendsto'✝ } = g", " { toFun := toFun✝¹, continuous_toFun := continuous_toFun✝¹, cocompact_tendsto' := cocompact_tendsto'✝¹ } =\n { toFun := toFun✝, continuous_toFun := continuous_toFun✝, cocompact_tendsto' :...
[ " f = g", " { toFun := toFun✝, continuous_toFun := continuous_toFun✝, cocompact_tendsto' := cocompact_tendsto'✝ } = g", " { toFun := toFun✝¹, continuous_toFun := continuous_toFun✝¹, cocompact_tendsto' := cocompact_tendsto'✝¹ } =\n { toFun := toFun✝, continuous_toFun := continuous_toFun✝, cocompact_tendsto' :...
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.LinearAlgebra.Vandermonde import Mathlib.RingTheory.Polynomial.Basic #align_import linear_algebra.lagrange from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" open Polynomial section PolynomialDetermination namespace Poly...
Mathlib/LinearAlgebra/Lagrange.lean
63
67
theorem eq_of_degrees_lt_of_eval_finset_eq (degree_f_lt : f.degree < s.card) (degree_g_lt : g.degree < s.card) (eval_fg : ∀ x ∈ s, f.eval x = g.eval x) : f = g := by
rw [← mem_degreeLT] at degree_f_lt degree_g_lt refine eq_of_degree_sub_lt_of_eval_finset_eq _ ?_ eval_fg rw [← mem_degreeLT]; exact Submodule.sub_mem _ degree_f_lt degree_g_lt
[ " f = 0", " (degreeLTEquiv R s.card) ⟨f, degree_f_lt⟩ = 0", " f = g", " f - g = 0", " ∀ x ∈ s, eval x (f - g) = 0", " ∀ x ∈ s, eval x f = eval x g", " (f - g).degree < ↑s.card", " f - g ∈ degreeLT R s.card" ]
[ " f = 0", " (degreeLTEquiv R s.card) ⟨f, degree_f_lt⟩ = 0", " f = g", " f - g = 0", " ∀ x ∈ s, eval x (f - g) = 0", " ∀ x ∈ s, eval x f = eval x g" ]
import Mathlib.Data.ENNReal.Basic import Mathlib.Topology.ContinuousFunction.Bounded import Mathlib.Topology.MetricSpace.Thickening #align_import topology.metric_space.thickened_indicator from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open scoped Classical open NNReal ENNReal Topol...
Mathlib/Topology/MetricSpace/ThickenedIndicator.lean
110
115
theorem indicator_le_thickenedIndicatorAux (δ : ℝ) (E : Set α) : (E.indicator fun _ => (1 : ℝ≥0∞)) ≤ thickenedIndicatorAux δ E := by
intro a by_cases h : a ∈ E · simp only [h, indicator_of_mem, thickenedIndicatorAux_one δ E h, le_refl] · simp only [h, indicator_of_not_mem, not_false_iff, zero_le]
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1", " thickenedIndicator...
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1", " thickenedIndicator...
import Mathlib.CategoryTheory.Sites.DenseSubsite #align_import category_theory.sites.induced_topology from "leanprover-community/mathlib"@"ba43124c37cfe0009bbfc57505f9503ae0e8c1af" namespace CategoryTheory universe v u open Limits Opposite Presieve section variable {C : Type*} [Category C] {D : Type*} [Catego...
Mathlib/CategoryTheory/Sites/InducedTopology.lean
59
65
theorem pushforward_cover_iff_cover_pullback {X : C} (S : Sieve X) : K _ (S.functorPushforward G) ↔ ∃ T : K (G.obj X), T.val.functorPullback G = S := by
constructor · intro hS exact ⟨⟨_, hS⟩, (Sieve.fullyFaithfulFunctorGaloisCoinsertion G X).u_l_eq S⟩ · rintro ⟨T, rfl⟩ exact Hld T
[ " K.sieves (G.obj X) (Sieve.functorPushforward G S) ↔ ∃ T, Sieve.functorPullback G ↑T = S", " K.sieves (G.obj X) (Sieve.functorPushforward G S) → ∃ T, Sieve.functorPullback G ↑T = S", " ∃ T, Sieve.functorPullback G ↑T = S", " (∃ T, Sieve.functorPullback G ↑T = S) → K.sieves (G.obj X) (Sieve.functorPushforward...
[]
import Mathlib.Topology.Bases import Mathlib.Order.Filter.CountableInter import Mathlib.Topology.Compactness.SigmaCompact open Set Filter Topology TopologicalSpace universe u v variable {X : Type u} {Y : Type v} {ι : Type*} variable [TopologicalSpace X] [TopologicalSpace Y] {s t : Set X} section Lindelof def I...
Mathlib/Topology/Compactness/Lindelof.lean
60
64
theorem IsLindelof.compl_mem_sets_of_nhdsWithin (hs : IsLindelof s) {f : Filter X} [CountableInterFilter f] (hf : ∀ x ∈ s, ∃ t ∈ 𝓝[s] x, tᶜ ∈ f) : sᶜ ∈ f := by
refine hs.compl_mem_sets fun x hx ↦ ?_ rw [← disjoint_principal_right, disjoint_right_comm, (basis_sets _).disjoint_iff_left] exact hf x hx
[ " sᶜ ∈ f", " ∃ x ∈ s, sᶜ ∉ 𝓝 x ⊓ f", " ∃ x ∈ s, (𝓝 x ⊓ (f ⊓ 𝓟 s)).NeBot", " sᶜ ∈ 𝓝 x ⊓ f", " ∃ i ∈ 𝓝 x ⊓ 𝓟 s, (id i)ᶜ ∈ f" ]
[ " sᶜ ∈ f", " ∃ x ∈ s, sᶜ ∉ 𝓝 x ⊓ f", " ∃ x ∈ s, (𝓝 x ⊓ (f ⊓ 𝓟 s)).NeBot" ]
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 Disjoint ...
Mathlib/GroupTheory/Perm/Support.lean
110
111
theorem disjoint_inv_right_iff : Disjoint f g⁻¹ ↔ Disjoint f g := by
rw [disjoint_comm, disjoint_inv_left_iff, disjoint_comm]
[ " f.Disjoint g → g.Disjoint f", " (f * g) x = (g * f) x", " f.Disjoint f ↔ f = 1", " f = 1", " f x = 1 x", " f⁻¹.Disjoint g", " f⁻¹ x = x ∨ g x = x", " f x = x ∨ g x = x", " f⁻¹.Disjoint g ↔ f.Disjoint g", " f.Disjoint g", " f.Disjoint g⁻¹ ↔ f.Disjoint g" ]
[ " f.Disjoint g → g.Disjoint f", " (f * g) x = (g * f) x", " f.Disjoint f ↔ f = 1", " f = 1", " f x = 1 x", " f⁻¹.Disjoint g", " f⁻¹ x = x ∨ g x = x", " f x = x ∨ g x = x", " f⁻¹.Disjoint g ↔ f.Disjoint g", " f.Disjoint g" ]
import Mathlib.Data.Int.Interval import Mathlib.RingTheory.Binomial import Mathlib.RingTheory.HahnSeries.PowerSeries import Mathlib.RingTheory.HahnSeries.Summable import Mathlib.FieldTheory.RatFunc.AsPolynomial import Mathlib.RingTheory.Localization.FractionRing #align_import ring_theory.laurent_series from "leanprov...
Mathlib/RingTheory/LaurentSeries.lean
87
89
theorem coeff_coe_powerSeries (x : PowerSeries R) (n : ℕ) : HahnSeries.coeff (x : LaurentSeries R) n = PowerSeries.coeff R n x := by
rw [ofPowerSeries_apply_coeff]
[ " ((ofPowerSeries ℤ R) x).coeff ↑n = (PowerSeries.coeff R n) x" ]
[]
import Mathlib.Topology.Baire.Lemmas import Mathlib.Topology.Algebra.Group.Basic open scoped Topology Pointwise open MulAction Set Function variable {G X : Type*} [TopologicalSpace G] [TopologicalSpace X] [Group G] [TopologicalGroup G] [MulAction G X] [SigmaCompactSpace G] [BaireSpace X] [T2Space X] [Contin...
Mathlib/Topology/Algebra/Group/OpenMapping.lean
96
107
theorem isOpenMap_smul_of_sigmaCompact (x : X) : IsOpenMap (fun (g : G) ↦ g • x) := by
/- We have already proved the theorem around the basepoint of the orbit, in `smul_singleton_mem_nhds_of_sigmaCompact`. The general statement follows around an arbitrary point by changing basepoints. -/ simp_rw [isOpenMap_iff_nhds_le, Filter.le_map_iff] intro g U hU have : (· • x) = (· • (g • x)) ∘ (· * g⁻¹...
[ " U • {x} ∈ 𝓝 x", " ∃ s, s.Countable ∧ ⋃ g ∈ s, g • V = univ", " g • V ∈ 𝓝 g", " g = g • 1", " ∃ i, (interior (F i)).Nonempty", " ∀ (i : ℕ × ↑s), IsClosed (F i)", " IsClosed (F (n, ⟨g, hg⟩))", " IsCompact (F (n, ⟨g, hg⟩))", " IsCompact ((fun g => g • x) '' (K n ∩ g • V))", " IsCompact (K n ∩ g •...
[ " U • {x} ∈ 𝓝 x", " ∃ s, s.Countable ∧ ⋃ g ∈ s, g • V = univ", " g • V ∈ 𝓝 g", " g = g • 1", " ∃ i, (interior (F i)).Nonempty", " ∀ (i : ℕ × ↑s), IsClosed (F i)", " IsClosed (F (n, ⟨g, hg⟩))", " IsCompact (F (n, ⟨g, hg⟩))", " IsCompact ((fun g => g • x) '' (K n ∩ g • V))", " IsCompact (K n ∩ g •...
import Mathlib.Data.Set.Function import Mathlib.Order.Interval.Set.OrdConnected #align_import data.set.intervals.proj_Icc from "leanprover-community/mathlib"@"4e24c4bfcff371c71f7ba22050308aa17815626c" variable {α β : Type*} [LinearOrder α] open Function namespace Set def projIci (a x : α) : Ici a := ⟨max a x,...
Mathlib/Order/Interval/Set/ProjIcc.lean
77
78
theorem projIcc_of_right_le (hx : b ≤ x) : projIcc a b h x = ⟨b, right_mem_Icc.2 h⟩ := by
simp [projIcc, hx, h]
[ " projIcc a b h x = ⟨a, ⋯⟩", " projIcc a b h x = ⟨b, ⋯⟩" ]
[ " projIcc a b h x = ⟨a, ⋯⟩" ]
import Mathlib.Analysis.Analytic.Basic import Mathlib.Analysis.Complex.Basic import Mathlib.Analysis.Normed.Field.InfiniteSum import Mathlib.Data.Nat.Choose.Cast import Mathlib.Data.Finset.NoncommProd import Mathlib.Topology.Algebra.Algebra #align_import analysis.normed_space.exponential from "leanprover-community/ma...
Mathlib/Analysis/NormedSpace/Exponential.lean
160
162
theorem star_exp [T2Space 𝔸] [StarRing 𝔸] [ContinuousStar 𝔸] (x : 𝔸) : star (exp 𝕂 x) = exp 𝕂 (star x) := by
simp_rw [exp_eq_tsum, ← star_pow, ← star_inv_natCast_smul, ← tsum_star]
[ " ((expSeries 𝕂 𝔸 n) fun x_1 => x) = (↑n !)⁻¹ • x ^ n", " ((expSeries 𝕂 𝔸 n) fun x => 0) = Pi.single 0 1 n", " (↑n !)⁻¹ • 0 ^ n = Pi.single 0 1 n", " (↑0!)⁻¹ • 0 ^ 0 = Pi.single 0 1 0", " (↑(n + 1)!)⁻¹ • 0 ^ (n + 1) = Pi.single 0 1 (n + 1)", " exp 𝕂 0 = 1", " exp 𝕂 (MulOpposite.op x) = MulOpposite...
[ " ((expSeries 𝕂 𝔸 n) fun x_1 => x) = (↑n !)⁻¹ • x ^ n", " ((expSeries 𝕂 𝔸 n) fun x => 0) = Pi.single 0 1 n", " (↑n !)⁻¹ • 0 ^ n = Pi.single 0 1 n", " (↑0!)⁻¹ • 0 ^ 0 = Pi.single 0 1 0", " (↑(n + 1)!)⁻¹ • 0 ^ (n + 1) = Pi.single 0 1 (n + 1)", " exp 𝕂 0 = 1", " exp 𝕂 (MulOpposite.op x) = MulOpposite...
import Mathlib.Order.Filter.Partial import Mathlib.Topology.Basic #align_import topology.partial from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" open Filter open Topology variable {X Y : Type*} [TopologicalSpace X] theorem rtendsto_nhds {r : Rel Y X} {l : Filter Y} {x : X} : ...
Mathlib/Topology/Partial.lean
30
34
theorem rtendsto'_nhds {r : Rel Y X} {l : Filter Y} {x : X} : RTendsto' r l (𝓝 x) ↔ ∀ s, IsOpen s → x ∈ s → r.preimage s ∈ l := by
rw [rtendsto'_def] apply all_mem_nhds_filter apply Rel.preimage_mono
[ " RTendsto' r l (𝓝 x) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " (∀ s ∈ 𝓝 x, r.preimage s ∈ l) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " ∀ (s t : Set X), s ⊆ t → r.preimage s ⊆ r.preimage t" ]
[]
import Mathlib.CategoryTheory.Monoidal.Braided.Basic import Mathlib.CategoryTheory.Monoidal.OfChosenFiniteProducts.Basic #align_import category_theory.monoidal.of_chosen_finite_products.symmetric from "leanprover-community/mathlib"@"95a87616d63b3cb49d3fe678d416fbe9c4217bf4" universe v u namespace CategoryTheory ...
Mathlib/CategoryTheory/Monoidal/OfChosenFiniteProducts/Symmetric.lean
34
39
theorem braiding_naturality {X X' Y Y' : C} (f : X ⟶ Y) (g : X' ⟶ Y') : tensorHom ℬ f g ≫ (Limits.BinaryFan.braiding (ℬ Y Y').isLimit (ℬ Y' Y).isLimit).hom = (Limits.BinaryFan.braiding (ℬ X X').isLimit (ℬ X' X).isLimit).hom ≫ tensorHom ℬ g f := by
dsimp [tensorHom, Limits.BinaryFan.braiding] apply (ℬ _ _).isLimit.hom_ext rintro ⟨⟨⟩⟩ <;> · dsimp [Limits.IsLimit.conePointUniqueUpToIso]; simp
[ " tensorHom ℬ f g ≫ (BinaryFan.braiding (ℬ Y Y').isLimit (ℬ Y' Y).isLimit).hom =\n (BinaryFan.braiding (ℬ X X').isLimit (ℬ X' X).isLimit).hom ≫ tensorHom ℬ g f", " (ℬ Y Y').isLimit.lift (BinaryFan.mk (BinaryFan.fst (ℬ X X').cone ≫ f) (BinaryFan.snd (ℬ X X').cone ≫ g)) ≫\n ((ℬ Y Y').isLimit.conePointUnique...
[]
import Mathlib.Analysis.Complex.Basic import Mathlib.Analysis.RCLike.Lemmas import Mathlib.Topology.TietzeExtension import Mathlib.Analysis.NormedSpace.HomeomorphBall import Mathlib.Analysis.NormedSpace.RCLike universe u u₁ v w -- this is not an instance because Lean cannot determine `𝕜`. theorem TietzeExtension.o...
Mathlib/Analysis/Complex/Tietze.lean
105
118
theorem exists_norm_eq_restrict_eq (f : s →ᵇ E) : ∃ g : X →ᵇ E, ‖g‖ = ‖f‖ ∧ g.restrict s = f := by
by_cases hf : ‖f‖ = 0; · exact ⟨0, by aesop⟩ have := Metric.instTietzeExtensionClosedBall.{u, v} 𝕜 (0 : E) (by aesop : 0 < ‖f‖) have hf' x : f x ∈ Metric.closedBall 0 ‖f‖ := by simpa using f.norm_coe_le_norm x obtain ⟨g, hg_mem, hg⟩ := (f : C(s, E)).exists_forall_mem_restrict_eq hs hf' simp only [Metric.mem...
[ " TietzeExtension ↑(Metric.closedBall 0 1)", " Continuous Subtype.val", " (Metric.closedBall 0 1).piecewise id g x ∈ Metric.closedBall 0 1", " ↑‖x‖⁻¹ • x ∈ Metric.closedBall 0 1", " { toFun := codRestrict ((Metric.closedBall 0 1).piecewise id g) (Metric.closedBall 0 1) ⋯,\n continuous_toFun := ⋯ }....
[ " TietzeExtension ↑(Metric.closedBall 0 1)", " Continuous Subtype.val", " (Metric.closedBall 0 1).piecewise id g x ∈ Metric.closedBall 0 1", " ↑‖x‖⁻¹ • x ∈ Metric.closedBall 0 1", " { toFun := codRestrict ((Metric.closedBall 0 1).piecewise id g) (Metric.closedBall 0 1) ⋯,\n continuous_toFun := ⋯ }....
import Mathlib.Analysis.Complex.UpperHalfPlane.Topology import Mathlib.Analysis.SpecialFunctions.Arsinh import Mathlib.Geometry.Euclidean.Inversion.Basic #align_import analysis.complex.upper_half_plane.metric from "leanprover-community/mathlib"@"caa58cbf5bfb7f81ccbaca4e8b8ac4bc2b39cc1c" noncomputable section ope...
Mathlib/Analysis/Complex/UpperHalfPlane/Metric.lean
60
63
theorem tanh_half_dist (z w : ℍ) : tanh (dist z w / 2) = dist (z : ℂ) w / dist (z : ℂ) (conj ↑w) := by
rw [tanh_eq_sinh_div_cosh, sinh_half_dist, cosh_half_dist, div_div_div_comm, div_self, div_one] positivity
[ " (dist z w / 2).sinh = dist ↑z ↑w / (2 * √(z.im * w.im))", " (dist z w / 2).cosh = dist (↑z) ((starRingEnd ℂ) ↑w) / (2 * √(z.im * w.im))", " (2 ^ 2 * (z.im * w.im) + dist ↑z ↑w ^ 2) / (2 ^ 2 * (z.im * w.im)) =\n dist (↑z) ((starRingEnd ℂ) ↑w) ^ 2 / (2 ^ 2 * (z.im * w.im))", " 2 ^ 2 * (z.im * w.im) + dist ...
[ " (dist z w / 2).sinh = dist ↑z ↑w / (2 * √(z.im * w.im))", " (dist z w / 2).cosh = dist (↑z) ((starRingEnd ℂ) ↑w) / (2 * √(z.im * w.im))", " (2 ^ 2 * (z.im * w.im) + dist ↑z ↑w ^ 2) / (2 ^ 2 * (z.im * w.im)) =\n dist (↑z) ((starRingEnd ℂ) ↑w) ^ 2 / (2 ^ 2 * (z.im * w.im))", " 2 ^ 2 * (z.im * w.im) + dist ...
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Order.Interval.Set.IsoIoo import Mathlib.Topology.Order.MonotoneContinuity import Mathlib.Topology.UrysohnsBounded #align_import topology.tietze_extension from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" section TietzeExten...
Mathlib/Topology/TietzeExtension.lean
134
143
theorem TietzeExtension.of_retract {Y : Type v} {Z : Type w} [TopologicalSpace Y] [TopologicalSpace Z] [TietzeExtension.{u, w} Z] (ι : C(Y, Z)) (r : C(Z, Y)) (h : r.comp ι = .id Y) : TietzeExtension.{u, v} Y where exists_restrict_eq' s hs f := by
obtain ⟨g, hg⟩ := (ι.comp f).exists_restrict_eq hs use r.comp g ext1 x have := congr(r.comp $(hg)) rw [← r.comp_assoc ι, h, f.id_comp] at this congrm($this x)
[ " ∃ g, g.comp { toFun := e, continuous_toFun := ⋯ } = f", " g.comp { toFun := e, continuous_toFun := ⋯ } = f", " (g.comp { toFun := e, continuous_toFun := ⋯ }) x = f x", " ⇑g ∘ e = ⇑f", " (⇑g ∘ e) x = f x", " ∃ g, (∀ (x : X), g x ∈ t) ∧ restrict s g = f", " Continuous Subtype.val", " ∀ (x : X), ({ toF...
[ " ∃ g, g.comp { toFun := e, continuous_toFun := ⋯ } = f", " g.comp { toFun := e, continuous_toFun := ⋯ } = f", " (g.comp { toFun := e, continuous_toFun := ⋯ }) x = f x", " ⇑g ∘ e = ⇑f", " (⇑g ∘ e) x = f x", " ∃ g, (∀ (x : X), g x ∈ t) ∧ restrict s g = f", " Continuous Subtype.val", " ∀ (x : X), ({ toF...
import Mathlib.Algebra.Group.Defs #align_import algebra.invertible from "leanprover-community/mathlib"@"722b3b152ddd5e0cf21c0a29787c76596cb6b422" assert_not_exists MonoidWithZero assert_not_exists DenselyOrdered universe u variable {α : Type u} class Invertible [Mul α] [One α] (a : α) : Type u where invOf...
Mathlib/Algebra/Group/Invertible/Defs.lean
170
171
theorem Invertible.congr [Monoid α] (a b : α) [Invertible a] [Invertible b] (h : a = b) : ⅟a = ⅟b := by
subst h; congr; apply Subsingleton.allEq
[ " ⅟a * (a * b) = b", " a * (⅟a * b) = b", " a * ⅟b * b = a", " a * b * ⅟b = a", " ⅟a = ⅟b", " a * ⅟b = 1", " { invOf := b, invOf_mul_self := hba, mul_invOf_self := hab } =\n { invOf := c, invOf_mul_self := invOf_mul_self✝, mul_invOf_self := hac }", " b = c", " ⅟a = ⅟a", " inst✝¹ = inst✝" ]
[ " ⅟a * (a * b) = b", " a * (⅟a * b) = b", " a * ⅟b * b = a", " a * b * ⅟b = a", " ⅟a = ⅟b", " a * ⅟b = 1", " { invOf := b, invOf_mul_self := hba, mul_invOf_self := hab } =\n { invOf := c, invOf_mul_self := invOf_mul_self✝, mul_invOf_self := hac }", " b = c" ]
import Mathlib.Analysis.Normed.Group.Hom import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Data.Set.Image import Mathlib.MeasureTheory.Function.LpSeminorm.ChebyshevMarkov import Mathlib.MeasureTheory.Function.LpSeminorm.CompareExp import Mathlib.MeasureTheory.Function.LpSeminorm.TriangleInequality...
Mathlib/MeasureTheory/Function/LpSpace.lean
177
178
theorem mem_Lp_iff_memℒp {f : α →ₘ[μ] E} : f ∈ Lp E p μ ↔ Memℒp f p μ := by
simp [mem_Lp_iff_snorm_lt_top, Memℒp, f.stronglyMeasurable.aestronglyMeasurable]
[ " snorm (↑(AEEqFun.mk f ⋯)) p μ < ⊤", " f + g ∈ {f | snorm (↑f) p μ < ⊤}", " 0 ∈ { carrier := {f | snorm (↑f) p μ < ⊤}, add_mem' := ⋯ }.carrier", " -f ∈ { carrier := {f | snorm (↑f) p μ < ⊤}, add_mem' := ⋯, zero_mem' := ⋯ }.carrier", " f = g", " ⟨val✝, property✝⟩ = g", " ⟨val✝¹, property✝¹⟩ = ⟨val✝, pro...
[ " snorm (↑(AEEqFun.mk f ⋯)) p μ < ⊤", " f + g ∈ {f | snorm (↑f) p μ < ⊤}", " 0 ∈ { carrier := {f | snorm (↑f) p μ < ⊤}, add_mem' := ⋯ }.carrier", " -f ∈ { carrier := {f | snorm (↑f) p μ < ⊤}, add_mem' := ⋯, zero_mem' := ⋯ }.carrier", " f = g", " ⟨val✝, property✝⟩ = g", " ⟨val✝¹, property✝¹⟩ = ⟨val✝, pro...
import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Tactic.NthRewrite #align_import data.nat.gcd.basic from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" namespace Nat theorem gcd_greatest {a b d : ℕ} (hda : d ∣ a) (hdb : d ∣ b) (hd ...
Mathlib/Data/Nat/GCD/Basic.lean
96
99
theorem gcd_sub_self_left {m n : ℕ} (h : m ≤ n) : gcd (n - m) m = gcd n m := by
calc gcd (n - m) m = gcd (n - m + m) m := by rw [← gcd_add_self_left (n - m) m] _ = gcd n m := by rw [Nat.sub_add_cancel h]
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n", " (m + k * n).gcd n = m.gcd n", " (m + n * k).gcd n = m.gcd n", " (k * n + m).gcd n = m.gcd n", " (n * k + m).gcd n = m.gcd n", " m.gcd (n + m) = m.gcd (n + 1 * m)", " (m...
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n", " (m + k * n).gcd n = m.gcd n", " (m + n * k).gcd n = m.gcd n", " (k * n + m).gcd n = m.gcd n", " (n * k + m).gcd n = m.gcd n", " m.gcd (n + m) = m.gcd (n + 1 * m)", " (m...
import Mathlib.Probability.Kernel.MeasurableIntegral import Mathlib.MeasureTheory.Integral.SetIntegral #align_import probability.kernel.with_density from "leanprover-community/mathlib"@"c0d694db494dd4f9aa57f2714b6e4c82b4ebc113" open MeasureTheory ProbabilityTheory open scoped MeasureTheory ENNReal NNReal namesp...
Mathlib/Probability/Kernel/WithDensity.lean
135
144
theorem withDensity_kernel_sum [Countable ι] (κ : ι → kernel α β) (hκ : ∀ i, IsSFiniteKernel (κ i)) (f : α → β → ℝ≥0∞) : @withDensity _ _ _ _ (kernel.sum κ) (isSFiniteKernel_sum hκ) f = kernel.sum fun i => withDensity (κ i) f := by
by_cases hf : Measurable (Function.uncurry f) · ext1 a simp_rw [sum_apply, kernel.withDensity_apply _ hf, sum_apply, withDensity_sum (fun n => κ n a) (f a)] · simp_rw [withDensity_of_not_measurable _ hf] exact sum_zero.symm
[ " (fun a => (κ a).withDensity (f a)) ∈ kernel α β", " Measurable fun b => ((κ b).withDensity (f b)) s", " Measurable fun b => ∫⁻ (a : β) in s, f b a ∂κ b", " withDensity κ f = 0", " (withDensity κ f) a = (κ a).withDensity (f a)", " ⟨fun a => (κ a).withDensity (f a), ⋯⟩ a = (κ a).withDensity (f a)", " ((...
[ " (fun a => (κ a).withDensity (f a)) ∈ kernel α β", " Measurable fun b => ((κ b).withDensity (f b)) s", " Measurable fun b => ∫⁻ (a : β) in s, f b a ∂κ b", " withDensity κ f = 0", " (withDensity κ f) a = (κ a).withDensity (f a)", " ⟨fun a => (κ a).withDensity (f a), ⋯⟩ a = (κ a).withDensity (f a)", " ((...
import Mathlib.Data.ZMod.Basic import Mathlib.Algebra.Group.Nat import Mathlib.Tactic.IntervalCases import Mathlib.GroupTheory.SpecificGroups.Dihedral import Mathlib.GroupTheory.SpecificGroups.Cyclic #align_import group_theory.specific_groups.quaternion from "leanprover-community/mathlib"@"879155bff5af618b9062cbb2915...
Mathlib/GroupTheory/SpecificGroups/Quaternion.lean
196
196
theorem xa_sq (i : ZMod (2 * n)) : xa i ^ 2 = a n := by
simp [sq]
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
import Mathlib.Algebra.Polynomial.Eval #align_import data.polynomial.degree.lemmas from "leanprover-community/mathlib"@"728baa2f54e6062c5879a3e397ac6bac323e506f" noncomputable section open Polynomial open Finsupp Finset namespace Polynomial universe u v w variable {R : Type u} {S : Type v} {ι : Type w} {a b ...
Mathlib/Algebra/Polynomial/Degree/Lemmas.lean
121
127
theorem natDegree_mul_C_eq_of_mul_eq_one {ai : R} (au : a * ai = 1) : (p * C a).natDegree = p.natDegree := le_antisymm (natDegree_mul_C_le p a) (calc p.natDegree = (p * 1).natDegree := by
nth_rw 1 [← mul_one p] _ = (p * C a * C ai).natDegree := by rw [← C_1, ← au, RingHom.map_mul, ← mul_assoc] _ ≤ (p * C a).natDegree := natDegree_mul_C_le (p * C a) ai)
[ " (p.comp q).natDegree ≤ p.natDegree * q.natDegree", " 0 ≤ p.natDegree * q.natDegree", " ↑(C (p.coeff n)).natDegree + n • ↑q.natDegree = ↑(n * q.natDegree)", " ↑n * ↑q.natDegree = ↑(n * q.natDegree)", " False", " p.natDegree ≤ n ↔ ∀ (N : ℕ), n < N → p.coeff N = 0", " (p + q).natDegree ≤ n ↔ p.natDegree ...
[ " (p.comp q).natDegree ≤ p.natDegree * q.natDegree", " 0 ≤ p.natDegree * q.natDegree", " ↑(C (p.coeff n)).natDegree + n • ↑q.natDegree = ↑(n * q.natDegree)", " ↑n * ↑q.natDegree = ↑(n * q.natDegree)", " False", " p.natDegree ≤ n ↔ ∀ (N : ℕ), n < N → p.coeff N = 0", " (p + q).natDegree ≤ n ↔ p.natDegree ...
import Mathlib.Algebra.Group.Equiv.Basic import Mathlib.Algebra.Group.Aut import Mathlib.Data.ZMod.Defs import Mathlib.Tactic.Ring #align_import algebra.quandle from "leanprover-community/mathlib"@"28aa996fc6fb4317f0083c4e6daf79878d81be33" open MulOpposite universe u v class Shelf (α : Type u) where act : ...
Mathlib/Algebra/Quandle.lean
251
253
theorem ad_conj {R : Type*} [Rack R] (x y : R) : act' (x ◃ y) = act' x * act' y * (act' x)⁻¹ := by
rw [eq_mul_inv_iff_mul_eq]; ext z apply self_distrib.symm
[ " x ◃ y = x ◃ y' ↔ y = y'", " x ◃ y = x ◃ y' → y = y'", " y = y' → x ◃ y = x ◃ y'", " x ◃ y = x ◃ y", " x ◃⁻¹ y = x ◃⁻¹ y' ↔ y = y'", " x ◃⁻¹ y = x ◃⁻¹ y' → y = y'", " y = y' → x ◃⁻¹ y = x ◃⁻¹ y'", " x ◃⁻¹ y = x ◃⁻¹ y", " x ◃⁻¹ y ◃⁻¹ z = (x ◃⁻¹ y) ◃⁻¹ x ◃⁻¹ z", " (x ◃ x ◃⁻¹ y) ◃ x ◃ x ◃⁻¹ y ◃⁻¹ z ...
[ " x ◃ y = x ◃ y' ↔ y = y'", " x ◃ y = x ◃ y' → y = y'", " y = y' → x ◃ y = x ◃ y'", " x ◃ y = x ◃ y", " x ◃⁻¹ y = x ◃⁻¹ y' ↔ y = y'", " x ◃⁻¹ y = x ◃⁻¹ y' → y = y'", " y = y' → x ◃⁻¹ y = x ◃⁻¹ y'", " x ◃⁻¹ y = x ◃⁻¹ y", " x ◃⁻¹ y ◃⁻¹ z = (x ◃⁻¹ y) ◃⁻¹ x ◃⁻¹ z", " (x ◃ x ◃⁻¹ y) ◃ x ◃ x ◃⁻¹ y ◃⁻¹ z ...
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Analysis.Normed.Group.Basic import Mathlib.Topology.Instances.NNReal #align_import analysis.normed.group.infinite_sum from "leanprover-community/mathlib"@"9a59dcb7a2d06bf55da57b9030169219980660cd" open Topology NNReal open Finset Filter Metric variabl...
Mathlib/Analysis/Normed/Group/InfiniteSum.lean
113
116
theorem Summable.of_norm_bounded [CompleteSpace E] {f : ι → E} (g : ι → ℝ) (hg : Summable g) (h : ∀ i, ‖f i‖ ≤ g i) : Summable f := by
rw [summable_iff_cauchySeq_finset] exact cauchySeq_finset_of_norm_bounded g hg h
[ " (CauchySeq fun s => ∑ i ∈ s, f i) ↔ ∀ ε > 0, ∃ s, ∀ (t : Finset ι), Disjoint t s → ‖∑ i ∈ t, f i‖ < ε", " (∀ (i : ℝ), 0 < i → ∃ s, ∀ (t : Finset ι), Disjoint t s → ∑ b ∈ t, f b ∈ ball 0 i) ↔\n ∀ ε > 0, ∃ s, ∀ (t : Finset ι), Disjoint t s → ‖∑ i ∈ t, f i‖ < ε", " ∀ ⦃s t : Set E⦄,\n s ⊆ t →\n (∃ s_1,...
[ " (CauchySeq fun s => ∑ i ∈ s, f i) ↔ ∀ ε > 0, ∃ s, ∀ (t : Finset ι), Disjoint t s → ‖∑ i ∈ t, f i‖ < ε", " (∀ (i : ℝ), 0 < i → ∃ s, ∀ (t : Finset ι), Disjoint t s → ∑ b ∈ t, f b ∈ ball 0 i) ↔\n ∀ ε > 0, ∃ s, ∀ (t : Finset ι), Disjoint t s → ‖∑ i ∈ t, f i‖ < ε", " ∀ ⦃s t : Set E⦄,\n s ⊆ t →\n (∃ s_1,...
import Mathlib.MeasureTheory.Measure.Haar.Basic import Mathlib.Analysis.NormedSpace.FiniteDimension import Mathlib.MeasureTheory.Measure.Haar.Unique open MeasureTheory Measure Set open scoped ENNReal variable {𝕜 E F : Type*} [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] [NormedAddCommGroup E] [MeasurableSp...
Mathlib/MeasureTheory/Measure/Haar/Disintegration.lean
106
109
theorem LinearMap.exists_map_addHaar_eq_smul_addHaar (h : Function.Surjective L) : ∃ (c : ℝ≥0∞), 0 < c ∧ μ.map L = c • ν := by
rcases L.exists_map_addHaar_eq_smul_addHaar' μ ν h with ⟨c, c_pos, -, hc⟩ exact ⟨_, by simp [c_pos, NeZero.ne addHaar], hc⟩
[ " ∃ c, 0 < c ∧ c < ⊤ ∧ map (⇑L) μ = (c * addHaar univ) • ν", " ProperSpace F", " L = ↑L' ∘ₗ P ∘ₗ ↑M.symm", " L x = (↑L' ∘ₗ P ∘ₗ ↑M.symm) x", " x = M (y, z)", " x = M (M.symm x)", " map (⇑L) μ = map (⇑L') (map (⇑P) (map (⇑M.symm) μ))", " map (⇑(↑L' ∘ₗ P ∘ₗ ↑M.symm)) μ = map ((⇑L' ∘ ⇑P) ∘ ⇑M.symm) μ", ...
[ " ∃ c, 0 < c ∧ c < ⊤ ∧ map (⇑L) μ = (c * addHaar univ) • ν", " ProperSpace F", " L = ↑L' ∘ₗ P ∘ₗ ↑M.symm", " L x = (↑L' ∘ₗ P ∘ₗ ↑M.symm) x", " x = M (y, z)", " x = M (M.symm x)", " map (⇑L) μ = map (⇑L') (map (⇑P) (map (⇑M.symm) μ))", " map (⇑(↑L' ∘ₗ P ∘ₗ ↑M.symm)) μ = map ((⇑L' ∘ ⇑P) ∘ ⇑M.symm) μ", ...
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.Div #align_import data.polynomial.ring_division from "leanprover-community/mathlib"@"8efcf8022aac8e01df8d302dcebdbc25d6a886c8" noncomputable ...
Mathlib/Algebra/Polynomial/RingDivision.lean
444
445
theorem pow_rootMultiplicity_not_dvd {p : R[X]} (p0 : p ≠ 0) (a : R) : ¬(X - C a) ^ (rootMultiplicity a p + 1) ∣ p := by
rw [← rootMultiplicity_le_iff p0]
[ " n ≤ rootMultiplicity a p ↔ (X - C a) ^ n ∣ p", " (∀ m < n, ¬¬(X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (∀ m < n, (X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (X - C a) ^ n ∣ p", " (X - C a) ^ 0 ∣ p", " 1 ∣ p", " (X - C a) ^ (n + 1) ∣ p", " rootMultiplicity a p ≤ n ↔ ¬(X - C a) ^ (n + 1) ∣...
[ " n ≤ rootMultiplicity a p ↔ (X - C a) ^ n ∣ p", " (∀ m < n, ¬¬(X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (∀ m < n, (X - C a) ^ (m + 1) ∣ p) ↔ (X - C a) ^ n ∣ p", " (X - C a) ^ n ∣ p", " (X - C a) ^ 0 ∣ p", " 1 ∣ p", " (X - C a) ^ (n + 1) ∣ p", " rootMultiplicity a p ≤ n ↔ ¬(X - C a) ^ (n + 1) ∣...
import Mathlib.RingTheory.FractionalIdeal.Basic import Mathlib.RingTheory.Ideal.Norm namespace FractionalIdeal open scoped Pointwise nonZeroDivisors variable {R : Type*} [CommRing R] [IsDedekindDomain R] [Module.Free ℤ R] [Module.Finite ℤ R] variable {K : Type*} [CommRing K] [Algebra R K] [IsFractionRing R K] th...
Mathlib/RingTheory/FractionalIdeal/Norm.lean
84
84
theorem absNorm_nonneg (I : FractionalIdeal R⁰ K) : 0 ≤ absNorm I := by
dsimp [absNorm]; positivity
[ " ↑(Ideal.absNorm I.num) / ↑|(Algebra.norm ℤ) ↑I.den| = ↑(Ideal.absNorm I₀) / ↑|(Algebra.norm ℤ) ↑a|", " ↑(Ideal.absNorm I.num) * ↑|(Algebra.norm ℤ) ↑a| = ↑(Ideal.absNorm I₀) * ↑|(Algebra.norm ℤ) ↑I.den|", " ↑(Ideal.absNorm I.num * Ideal.absNorm (Ideal.span {↑a})) = ↑(Ideal.absNorm I₀ * Ideal.absNorm (Ideal.spa...
[ " ↑(Ideal.absNorm I.num) / ↑|(Algebra.norm ℤ) ↑I.den| = ↑(Ideal.absNorm I₀) / ↑|(Algebra.norm ℤ) ↑a|", " ↑(Ideal.absNorm I.num) * ↑|(Algebra.norm ℤ) ↑a| = ↑(Ideal.absNorm I₀) * ↑|(Algebra.norm ℤ) ↑I.den|", " ↑(Ideal.absNorm I.num * Ideal.absNorm (Ideal.span {↑a})) = ↑(Ideal.absNorm I₀ * Ideal.absNorm (Ideal.spa...
import Mathlib.Algebra.Group.Fin import Mathlib.LinearAlgebra.Matrix.Symmetric #align_import linear_algebra.matrix.circulant from "leanprover-community/mathlib"@"3e068ece210655b7b9a9477c3aff38a492400aa1" variable {α β m n R : Type*} namespace Matrix open Function open Matrix def circulant [Sub n] (v : n → α)...
Mathlib/LinearAlgebra/Matrix/Circulant.lean
126
132
theorem circulant_mul [Semiring α] [Fintype n] [AddGroup n] (v w : n → α) : circulant v * circulant w = circulant (circulant v *ᵥ w) := by
ext i j simp only [mul_apply, mulVec, circulant_apply, dotProduct] refine Fintype.sum_equiv (Equiv.subRight j) _ _ ?_ intro x simp only [Equiv.subRight_apply, sub_sub_sub_cancel_right]
[ " Injective circulant", " v = w", " v k = w k", " Injective fun v => circulant v", " (circulant v)ᵀ = circulant fun i => v (-i)", " (circulant v)ᵀ i✝ j✝ = circulant (fun i => v (-i)) i✝ j✝", " (circulant v)ᴴ = circulant (star fun i => v (-i))", " (circulant v)ᴴ i✝ j✝ = circulant (star fun i => v (-i))...
[ " Injective circulant", " v = w", " v k = w k", " Injective fun v => circulant v", " (circulant v)ᵀ = circulant fun i => v (-i)", " (circulant v)ᵀ i✝ j✝ = circulant (fun i => v (-i)) i✝ j✝", " (circulant v)ᴴ = circulant (star fun i => v (-i))", " (circulant v)ᴴ i✝ j✝ = circulant (star fun i => v (-i))...
import Mathlib.Topology.Bases import Mathlib.Topology.DenseEmbedding #align_import topology.stone_cech from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" noncomputable section open Filter Set open Topology universe u v section Ultrafilter def ultrafilterBasis (α : Type u) : Set ...
Mathlib/Topology/StoneCech.lean
122
126
theorem ultrafilter_pure_injective : Function.Injective (pure : α → Ultrafilter α) := by
intro x y h have : {x} ∈ (pure x : Ultrafilter α) := singleton_mem_pure rw [h] at this exact (mem_singleton_iff.mp (mem_pure.mp this)).symm
[ " ∀ t₁ ∈ ultrafilterBasis α, ∀ t₂ ∈ ultrafilterBasis α, ∀ x ∈ t₁ ∩ t₂, ∃ t₃ ∈ ultrafilterBasis α, x ∈ t₃ ∧ t₃ ⊆ t₁ ∩ t₂", " ∃ t₃ ∈ ultrafilterBasis α, u ∈ t₃ ∧ t₃ ⊆ (fun s => {u | s ∈ u}) a ∩ (fun s => {u | s ∈ u}) b", " v ∈ (fun s => {u | s ∈ u}) a", " v ∈ (fun s => {u | s ∈ u}) b", " a ∩ b ⊆ a", " a ∩ b...
[ " ∀ t₁ ∈ ultrafilterBasis α, ∀ t₂ ∈ ultrafilterBasis α, ∀ x ∈ t₁ ∩ t₂, ∃ t₃ ∈ ultrafilterBasis α, x ∈ t₃ ∧ t₃ ⊆ t₁ ∩ t₂", " ∃ t₃ ∈ ultrafilterBasis α, u ∈ t₃ ∧ t₃ ⊆ (fun s => {u | s ∈ u}) a ∩ (fun s => {u | s ∈ u}) b", " v ∈ (fun s => {u | s ∈ u}) a", " v ∈ (fun s => {u | s ∈ u}) b", " a ∩ b ⊆ a", " a ∩ b...
import Mathlib.Combinatorics.Hall.Finite import Mathlib.CategoryTheory.CofilteredSystem import Mathlib.Data.Rel #align_import combinatorics.hall.basic from "leanprover-community/mathlib"@"8195826f5c428fc283510bc67303dd4472d78498" open Finset CategoryTheory universe u v def hallMatchingsOn {ι : Type u} {α : Typ...
Mathlib/Combinatorics/Hall/Basic.lean
77
86
theorem hallMatchingsOn.nonempty {ι : Type u} {α : Type v} [DecidableEq α] (t : ι → Finset α) (h : ∀ s : Finset ι, s.card ≤ (s.biUnion t).card) (ι' : Finset ι) : Nonempty (hallMatchingsOn t ι') := by
classical refine ⟨Classical.indefiniteDescription _ ?_⟩ apply (all_card_le_biUnion_card_iff_existsInjective' fun i : ι' => t i).mp intro s' convert h (s'.image (↑)) using 1 · simp only [card_image_of_injective s' Subtype.coe_injective] · rw [image_biUnion]
[ " ↑(hallMatchingsOn t ι')", " (fun i => ↑f ⟨↑i, ⋯⟩) ∈ hallMatchingsOn t ι'", " Function.Injective fun i => ↑f ⟨↑i, ⋯⟩", " ⟨i, hi⟩ = ⟨j, hj⟩", " Nonempty ↑(hallMatchingsOn t ι')", " ∃ x, x ∈ hallMatchingsOn t ι'", " ∀ (s : Finset { x // x ∈ ι' }), s.card ≤ (s.biUnion fun i => t ↑i).card", " s'.card ≤ (...
[ " ↑(hallMatchingsOn t ι')", " (fun i => ↑f ⟨↑i, ⋯⟩) ∈ hallMatchingsOn t ι'", " Function.Injective fun i => ↑f ⟨↑i, ⋯⟩", " ⟨i, hi⟩ = ⟨j, hj⟩" ]
import Mathlib.Probability.ConditionalProbability import Mathlib.MeasureTheory.Measure.Count #align_import probability.cond_count from "leanprover-community/mathlib"@"117e93f82b5f959f8193857370109935291f0cc4" noncomputable section open ProbabilityTheory open MeasureTheory MeasurableSpace namespace ProbabilityT...
Mathlib/Probability/CondCount.lean
138
148
theorem condCount_inter (hs : s.Finite) : condCount s (t ∩ u) = condCount (s ∩ t) u * condCount s t := by
by_cases hst : s ∩ t = ∅ · rw [hst, condCount_empty_meas, Measure.coe_zero, Pi.zero_apply, zero_mul, condCount_eq_zero_iff hs, ← Set.inter_assoc, hst, Set.empty_inter] rw [condCount, condCount, cond_apply _ hs.measurableSet, cond_apply _ hs.measurableSet, cond_apply _ (hs.inter_of_left _).measurableSet...
[ " condCount ∅ = 0", " (condCount s) ∅ = 0", " s.Finite", " False", " (condCount Set.univ) s = Measure.count s / ↑(Fintype.card Ω)", " Measure.count s / Measure.count Set.univ = Measure.count s / ↑(Fintype.card Ω)", " Measure.count Set.univ = ↑(Fintype.card Ω)", " ∑ x : Ω, 1 = ↑(Fintype.card Ω)", " M...
[ " condCount ∅ = 0", " (condCount s) ∅ = 0", " s.Finite", " False", " (condCount Set.univ) s = Measure.count s / ↑(Fintype.card Ω)", " Measure.count s / Measure.count Set.univ = Measure.count s / ↑(Fintype.card Ω)", " Measure.count Set.univ = ↑(Fintype.card Ω)", " ∑ x : Ω, 1 = ↑(Fintype.card Ω)", " M...
import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Order.Ring.Rat import Mathlib.Data.Rat.Lemmas import Mathlib.Data.Int.Sqrt #align_import data.rat.sqrt from "leanprover-community/mathlib"@"46a64b5b4268c594af770c44d9e502afc6a515cb" namespace Rat -- @[pp_nodot] porting note: unknown attribute def sqrt...
Mathlib/Data/Rat/Sqrt.lean
30
31
theorem sqrt_eq (q : ℚ) : Rat.sqrt (q * q) = |q| := by
rw [sqrt, mul_self_num, mul_self_den, Int.sqrt_eq, Nat.sqrt_eq, abs_def, divInt_ofNat]
[ " (q * q).sqrt = |q|" ]
[]
import Mathlib.Data.Set.Function import Mathlib.Analysis.BoundedVariation #align_import analysis.constant_speed from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" open scoped NNReal ENNReal open Set MeasureTheory Classical variable {α : Type*} [LinearOrder α] {E : Type*} [PseudoEMetr...
Mathlib/Analysis/ConstantSpeed.lean
64
68
theorem hasConstantSpeedOnWith_of_subsingleton (f : ℝ → E) {s : Set ℝ} (hs : s.Subsingleton) (l : ℝ≥0) : HasConstantSpeedOnWith f s l := by
rintro x hx y hy; cases hs hx hy rw [eVariationOn.subsingleton f (fun y hy z hz => hs hy.1 hz.1 : (s ∩ Icc x x).Subsingleton)] simp only [sub_self, mul_zero, ENNReal.ofReal_zero]
[ " BoundedVariationOn f (s ∩ Icc x y)", " HasConstantSpeedOnWith f s l", " eVariationOn f (s ∩ Icc x y) = ENNReal.ofReal (↑l * (y - x))", " eVariationOn f (s ∩ Icc x x) = ENNReal.ofReal (↑l * (x - x))", " 0 = ENNReal.ofReal (↑l * (x - x))" ]
[ " BoundedVariationOn f (s ∩ Icc x y)" ]
import Mathlib.Data.List.Forall2 #align_import data.list.zip from "leanprover-community/mathlib"@"134625f523e737f650a6ea7f0c82a6177e45e622" -- Make sure we don't import algebra assert_not_exists Monoid universe u open Nat namespace List variable {α : Type u} {β γ δ ε : Type*} #align list.zip_with_cons_cons Li...
Mathlib/Data/List/Zip.lean
133
134
theorem unzip_zip_right {l₁ : List α} {l₂ : List β} (h : length l₂ ≤ length l₁) : (unzip (zip l₁ l₂)).2 = l₂ := by
rw [← zip_swap, unzip_swap]; exact unzip_zip_left h
[ " map Prod.swap (l₁.zip []) = [].zip l₁", " map Prod.swap [] = [].zip l₁", " map Prod.swap ((a :: l₁).zip (b :: l₂)) = (b :: l₂).zip (a :: l₁)", " Forall p (zipWith f [] []) ↔ Forall₂ (fun x y => p (f x y)) [] []", " Forall p (zipWith f (a :: l₁) (b :: l₂)) ↔ Forall₂ (fun x y => p (f x y)) (a :: l₁) (b :: l...
[ " map Prod.swap (l₁.zip []) = [].zip l₁", " map Prod.swap [] = [].zip l₁", " map Prod.swap ((a :: l₁).zip (b :: l₂)) = (b :: l₂).zip (a :: l₁)", " Forall p (zipWith f [] []) ↔ Forall₂ (fun x y => p (f x y)) [] []", " Forall p (zipWith f (a :: l₁) (b :: l₂)) ↔ Forall₂ (fun x y => p (f x y)) (a :: l₁) (b :: l...
import Mathlib.Algebra.GCDMonoid.Multiset import Mathlib.Combinatorics.Enumerative.Partition import Mathlib.Data.List.Rotate import Mathlib.GroupTheory.Perm.Cycle.Factors import Mathlib.GroupTheory.Perm.Closure import Mathlib.Algebra.GCDMonoid.Nat import Mathlib.Tactic.NormNum.GCD #align_import group_theory.perm.cycl...
Mathlib/GroupTheory/Perm/Cycle/Type.lean
79
80
theorem cycleType_eq_zero {σ : Perm α} : σ.cycleType = 0 ↔ σ = 1 := by
simp [cycleType_def, cycleFactorsFinset_eq_empty_iff]
[ " σ.cycleType = Multiset.map (Finset.card ∘ support) s.val", " Multiset.map (Finset.card ∘ support) σ.cycleFactorsFinset.val = Multiset.map (Finset.card ∘ support) s.val", " σ.cycleFactorsFinset = s", " (∀ f ∈ s, f.IsCycle) ∧ ∃ (h : (↑s).Pairwise Disjoint), s.noncommProd id ⋯ = σ", " σ.cycleType = ↑(List.ma...
[ " σ.cycleType = Multiset.map (Finset.card ∘ support) s.val", " Multiset.map (Finset.card ∘ support) σ.cycleFactorsFinset.val = Multiset.map (Finset.card ∘ support) s.val", " σ.cycleFactorsFinset = s", " (∀ f ∈ s, f.IsCycle) ∧ ∃ (h : (↑s).Pairwise Disjoint), s.noncommProd id ⋯ = σ", " σ.cycleType = ↑(List.ma...
import Mathlib.Combinatorics.SimpleGraph.Subgraph import Mathlib.Data.List.Rotate #align_import combinatorics.simple_graph.connectivity from "leanprover-community/mathlib"@"b99e2d58a5e6861833fa8de11e51a81144258db4" open Function universe u v w namespace SimpleGraph variable {V : Type u} {V' : Type v} {V'' : Typ...
Mathlib/Combinatorics/SimpleGraph/Connectivity.lean
146
149
theorem copy_cons {u v w u' w'} (h : G.Adj u v) (p : G.Walk v w) (hu : u = u') (hw : w = w') : (Walk.cons h p).copy hu hw = Walk.cons (hu ▸ h) (p.copy rfl hw) := by
subst_vars rfl
[ " (p.copy hu hv).copy hu' hv' = p.copy ⋯ ⋯", " (p.copy ⋯ ⋯).copy ⋯ ⋯ = p.copy ⋯ ⋯", " nil.copy hu hu = nil", " nil.copy ⋯ ⋯ = nil", " (cons h p).copy hu hw = cons ⋯ (p.copy ⋯ hw)", " (cons h p).copy ⋯ ⋯ = cons ⋯ (p.copy ⋯ ⋯)" ]
[ " (p.copy hu hv).copy hu' hv' = p.copy ⋯ ⋯", " (p.copy ⋯ ⋯).copy ⋯ ⋯ = p.copy ⋯ ⋯", " nil.copy hu hu = nil", " nil.copy ⋯ ⋯ = nil" ]
import Mathlib.Algebra.Order.Group.PiLex import Mathlib.Data.DFinsupp.Order import Mathlib.Data.DFinsupp.NeLocus import Mathlib.Order.WellFoundedSet #align_import data.dfinsupp.lex from "leanprover-community/mathlib"@"dde670c9a3f503647fd5bfdf1037bad526d3397a" variable {ι : Type*} {α : ι → Type*} namespace DFinsu...
Mathlib/Data/DFinsupp/Lex.lean
51
58
theorem lex_lt_of_lt_of_preorder [∀ i, Preorder (α i)] (r) [IsStrictOrder ι r] {x y : Π₀ i, α i} (hlt : x < y) : ∃ i, (∀ j, r j i → x j ≤ y j ∧ y j ≤ x j) ∧ x i < y i := by
obtain ⟨hle, j, hlt⟩ := Pi.lt_def.1 hlt classical have : (x.neLocus y : Set ι).WellFoundedOn r := (x.neLocus y).finite_toSet.wellFoundedOn obtain ⟨i, hi, hl⟩ := this.has_min { i | x i < y i } ⟨⟨j, mem_neLocus.2 hlt.ne⟩, hlt⟩ refine ⟨i, fun k hk ↦ ⟨hle k, ?_⟩, hi⟩ exact of_not_not fun h ↦ hl ⟨k, mem_neLocus...
[ " ∃ i, (∀ (j : ι), r j i → x j ≤ y j ∧ y j ≤ x j) ∧ x i < y i", " y k ≤ x k" ]
[]
import Mathlib.RingTheory.IntegralClosure import Mathlib.RingTheory.Localization.Integral #align_import ring_theory.integrally_closed from "leanprover-community/mathlib"@"d35b4ff446f1421bd551fafa4b8efd98ac3ac408" open scoped nonZeroDivisors Polynomial open Polynomial abbrev IsIntegrallyClosedIn (R A : Type*) [...
Mathlib/RingTheory/IntegrallyClosed.lean
110
120
theorem isIntegrallyClosedIn_iff {R A : Type*} [CommRing R] [CommRing A] [Algebra R A] : IsIntegrallyClosedIn R A ↔ Function.Injective (algebraMap R A) ∧ ∀ {x : A}, IsIntegral R x → ∃ y, algebraMap R A y = x := by
constructor · rintro ⟨_, cl⟩ aesop · rintro ⟨inj, cl⟩ refine ⟨inj, by aesop, ?_⟩ rintro ⟨y, rfl⟩ apply isIntegral_algebraMap
[ " IsIntegrallyClosedIn R B → IsIntegrallyClosedIn R A", " IsIntegrallyClosedIn R A", " Function.Injective (⇑f ∘ ⇑(algebraMap R A))", " ⇑f ∘ ⇑(algebraMap R A) = ⇑(algebraMap R B)", " ∃ y, (algebraMap R A) y = x✝", " (∃ y, (algebraMap R A) y = x✝) → IsIntegral R x✝", " IsIntegral R ((algebraMap R A) y)", ...
[ " IsIntegrallyClosedIn R B → IsIntegrallyClosedIn R A", " IsIntegrallyClosedIn R A", " Function.Injective (⇑f ∘ ⇑(algebraMap R A))", " ⇑f ∘ ⇑(algebraMap R A) = ⇑(algebraMap R B)", " ∃ y, (algebraMap R A) y = x✝", " (∃ y, (algebraMap R A) y = x✝) → IsIntegral R x✝", " IsIntegral R ((algebraMap R A) y)", ...
import Mathlib.Order.Monotone.Union import Mathlib.Algebra.Order.Group.Instances #align_import order.monotone.odd from "leanprover-community/mathlib"@"9116dd6709f303dcf781632e15fdef382b0fc579" open Set variable {G H : Type*} [LinearOrderedAddCommGroup G] [OrderedAddCommGroup H]
Mathlib/Order/Monotone/Odd.lean
26
30
theorem strictMono_of_odd_strictMonoOn_nonneg {f : G → H} (h₁ : ∀ x, f (-x) = -f x) (h₂ : StrictMonoOn f (Ici 0)) : StrictMono f := by
refine StrictMonoOn.Iic_union_Ici (fun x hx y hy hxy => neg_lt_neg_iff.1 ?_) h₂ rw [← h₁, ← h₁] exact h₂ (neg_nonneg.2 hy) (neg_nonneg.2 hx) (neg_lt_neg hxy)
[ " StrictMono f", " -f y < -f x", " f (-y) < f (-x)" ]
[]
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
81
87
theorem rtake_eq_reverse_take_reverse : l.rtake n = reverse (l.reverse.take n) := by
rw [rtake] induction' l using List.reverseRecOn with xs x IH generalizing n · simp · cases n · exact drop_length _ · simp [drop_append_eq_append_drop, IH]
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
[ " [].rdrop n = []", " l.rdrop 0 = l", " l.rdrop n = (drop n l.reverse).reverse", " take (l.length - n) l = (drop n l.reverse).reverse", " take ([].length - n) [] = (drop n [].reverse).reverse", " take ((xs ++ [x]).length - n) (xs ++ [x]) = (drop n (xs ++ [x]).reverse).reverse", " take ((xs ++ [x]).lengt...
import Mathlib.Data.ENNReal.Basic import Mathlib.Topology.ContinuousFunction.Bounded import Mathlib.Topology.MetricSpace.Thickening #align_import topology.metric_space.thickened_indicator from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open scoped Classical open NNReal ENNReal Topol...
Mathlib/Topology/MetricSpace/ThickenedIndicator.lean
130
153
theorem thickenedIndicatorAux_tendsto_indicator_closure {δseq : ℕ → ℝ} (δseq_lim : Tendsto δseq atTop (𝓝 0)) (E : Set α) : Tendsto (fun n => thickenedIndicatorAux (δseq n) E) atTop (𝓝 (indicator (closure E) fun _ => (1 : ℝ≥0∞))) := by
rw [tendsto_pi_nhds] intro x by_cases x_mem_closure : x ∈ closure E · simp_rw [thickenedIndicatorAux_one_of_mem_closure _ E x_mem_closure] rw [show (indicator (closure E) fun _ => (1 : ℝ≥0∞)) x = 1 by simp only [x_mem_closure, indicator_of_mem]] exact tendsto_const_nhds · rw [show (closure E)...
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1", " thickenedIndicator...
[ " Continuous (thickenedIndicatorAux δ E)", " Continuous fun x => 1 - infEdist x E / ENNReal.ofReal δ", " (fun x => 1 - infEdist x E / ENNReal.ofReal δ) = sub ∘ f", " Continuous (sub ∘ f)", " Continuous fun x => (f x).2", " ENNReal.ofReal δ ≠ 0", " thickenedIndicatorAux δ E x ≤ 1", " thickenedIndicator...
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
286
288
theorem encard_pair {x y : α} (hne : x ≠ y) : ({x, y} : Set α).encard = 2 := by
rw [encard_insert_of_not_mem (by simpa), ← one_add_one_eq_two, WithTop.add_right_cancel_iff WithTop.one_ne_top, encard_singleton]
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card α)", " s.encard = ↑h.toFinset.card", " s.encard = ↑s.toFinset.card", " (↑s).encard = ↑s.card", " ↑⋯.toFinset.card = ↑s.card", " s.encard = ⊤", " s.encard = 0 ↔ s = ∅", " ∅.encard = 0", " s.Nonempty", " s.encard ≠ 0 ↔...
[ " univ.encard = s.encard", " univ.encard = PartENat.withTopEquiv (PartENat.card α)", " s.encard = ↑h.toFinset.card", " s.encard = ↑s.toFinset.card", " (↑s).encard = ↑s.card", " ↑⋯.toFinset.card = ↑s.card", " s.encard = ⊤", " s.encard = 0 ↔ s = ∅", " ∅.encard = 0", " s.Nonempty", " s.encard ≠ 0 ↔...
import Mathlib.Algebra.Order.Sub.Defs import Mathlib.Data.Finset.Basic import Mathlib.Order.Interval.Finset.Defs open Function namespace Finset class HasAntidiagonal (A : Type*) [AddMonoid A] where antidiagonal : A → Finset (A × A) mem_antidiagonal {n} {a} : a ∈ antidiagonal n ↔ a.fst + a.snd = n exp...
Mathlib/Data/Finset/Antidiagonal.lean
131
133
theorem antidiagonal_zero : antidiagonal (0 : A) = {(0, 0)} := by
ext ⟨x, y⟩ simp
[ " ∀ (a b : HasAntidiagonal A), a = b", " { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }", " xy ∈ a n ↔ xy ∈ b n", " antidiagonal = antidiagonal", " H1 = H2", " xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n", " (a, b) ∈ map (Equiv.prodComm A A).toEmbedding ...
[ " ∀ (a b : HasAntidiagonal A), a = b", " { antidiagonal := a, mem_antidiagonal := ha } = { antidiagonal := b, mem_antidiagonal := hb }", " xy ∈ a n ↔ xy ∈ b n", " antidiagonal = antidiagonal", " H1 = H2", " xy.swap ∈ antidiagonal n ↔ xy ∈ antidiagonal n", " (a, b) ∈ map (Equiv.prodComm A A).toEmbedding ...
import Mathlib.Geometry.Euclidean.Inversion.Basic import Mathlib.Analysis.InnerProductSpace.Calculus import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Tactic.AdaptationNote open Metric Function AffineMap Set AffineSubspace open scoped Topology RealInnerProductSpace variable {E F : Type*} [NormedAddCommGrou...
Mathlib/Geometry/Euclidean/Inversion/Calculus.lean
87
108
theorem hasFDerivAt_inversion (hx : x ≠ c) : HasFDerivAt (inversion c R) ((R / dist x c) ^ 2 • (reflection (ℝ ∙ (x - c))ᗮ : F →L[ℝ] F)) x := by
rcases add_left_surjective c x with ⟨x, rfl⟩ have : HasFDerivAt (inversion c R) (?_ : F →L[ℝ] F) (c + x) := by #adaptation_note /-- nightly-2024-03-16: simp was simp (config := { unfoldPartialApp := true }) only [inversion] -/ simp only [inversion_def] simp_rw [dist_eq_norm, div_pow, div_eq_mul_inv...
[ " HasFDerivAt (inversion c R)\n ((R / dist x c) ^ 2 •\n ↑{ toLinearEquiv := (reflection (Submodule.span ℝ {x - c})ᗮ).toLinearEquiv, continuous_toFun := ⋯,\n continuous_invFun := ⋯ })\n x", " HasFDerivAt (inversion c R)\n ((R / dist ((fun x => c + x) x) c) ^ 2 •\n ↑{ toLinearEquiv := (r...
[]
import Mathlib.Analysis.Normed.Group.Hom import Mathlib.Analysis.SpecificLimits.Normed #align_import analysis.normed.group.controlled_closure from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Filter Finset open Topology variable {G : Type*} [NormedAddCommGroup G] [CompleteSpace...
Mathlib/Analysis/Normed/Group/ControlledClosure.lean
32
106
theorem controlled_closure_of_complete {f : NormedAddGroupHom G H} {K : AddSubgroup H} {C ε : ℝ} (hC : 0 < C) (hε : 0 < ε) (hyp : f.SurjectiveOnWith K C) : f.SurjectiveOnWith K.topologicalClosure (C + ε) := by
rintro (h : H) (h_in : h ∈ K.topologicalClosure) -- We first get rid of the easy case where `h = 0`. by_cases hyp_h : h = 0 · rw [hyp_h] use 0 simp /- The desired preimage will be constructed as the sum of a series. Convergence of the series will be guaranteed by completeness of `G`. We first wri...
[ " f.SurjectiveOnWith K.topologicalClosure (C + ε)", " ∃ g, f g = h ∧ ‖g‖ ≤ (C + ε) * ‖h‖", " ∃ g, f g = 0 ∧ ‖g‖ ≤ (C + ε) * ‖0‖", " f 0 = 0 ∧ ‖0‖ ≤ (C + ε) * ‖0‖", " 0 < b i", " CauchySeq s", " 0 < 1 / 2", " ∀ n ≥ ?m.19377, ‖u n‖ ≤ ?m.19375 * (1 / 2) ^ n", " ‖u n‖ ≤ ?m.19375 * (1 / 2) ^ n", " C * ...
[]
import Mathlib.Analysis.SpecialFunctions.Complex.Circle import Mathlib.Geometry.Euclidean.Angle.Oriented.Basic #align_import geometry.euclidean.angle.oriented.rotation from "leanprover-community/mathlib"@"f0c8bf9245297a541f468be517f1bde6195105e9" noncomputable section open FiniteDimensional Complex open scoped ...
Mathlib/Geometry/Euclidean/Angle/Oriented/Rotation.lean
145
147
theorem rotation_pi : o.rotation π = LinearIsometryEquiv.neg ℝ := by
ext x simp [rotation]
[ " ∀ (x y : V),\n ⟪(θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) x,\n (θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) y⟫_ℝ =\n ⟪x, y⟫_ℝ", " ⟪(θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) x,\n (θ.cos • LinearMap.id + θ.sin • ↑o.r...
[ " ∀ (x y : V),\n ⟪(θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) x,\n (θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) y⟫_ℝ =\n ⟪x, y⟫_ℝ", " ⟪(θ.cos • LinearMap.id + θ.sin • ↑o.rightAngleRotation.toLinearEquiv) x,\n (θ.cos • LinearMap.id + θ.sin • ↑o.r...
import Mathlib.Algebra.Quaternion import Mathlib.Analysis.InnerProductSpace.Basic import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Topology.Algebra.Algebra #align_import analysis.quaternion from "leanprover-community/mathlib"@"07992a1d1f7a4176c6d3f160209608be4e198566" @[inherit_doc] scoped[Quaternion...
Mathlib/Analysis/Quaternion.lean
136
136
theorem coeComplex_mul (z w : ℂ) : ↑(z * w) = (z * w : ℍ) := by
ext <;> simp
[ " (starRingEnd ℝ) ⟪y, x⟫_ℝ = ⟪x, y⟫_ℝ", " ⟪x + y, z⟫_ℝ = ⟪x, z⟫_ℝ + ⟪y, z⟫_ℝ", " ⟪r • x, y⟫_ℝ = (starRingEnd ℝ) r * ⟪x, y⟫_ℝ", " normSq a = ‖a‖ * ‖a‖", " ‖1‖ = 1", " ‖↑a‖ = ‖a‖", " ‖star a‖ = ‖a‖", " ‖a * b‖ = ‖a‖ * ‖b‖", " √(normSq a * normSq b) = √(normSq a) * √(normSq b)", " ↑(z + w) = ↑z + ↑w"...
[ " (starRingEnd ℝ) ⟪y, x⟫_ℝ = ⟪x, y⟫_ℝ", " ⟪x + y, z⟫_ℝ = ⟪x, z⟫_ℝ + ⟪y, z⟫_ℝ", " ⟪r • x, y⟫_ℝ = (starRingEnd ℝ) r * ⟪x, y⟫_ℝ", " normSq a = ‖a‖ * ‖a‖", " ‖1‖ = 1", " ‖↑a‖ = ‖a‖", " ‖star a‖ = ‖a‖", " ‖a * b‖ = ‖a‖ * ‖b‖", " √(normSq a * normSq b) = √(normSq a) * √(normSq b)", " ↑(z + w) = ↑z + ↑w"...
import Mathlib.Control.Functor import Mathlib.Tactic.Common #align_import control.bifunctor from "leanprover-community/mathlib"@"dc1525fb3ef6eb4348fb1749c302d8abc303d34a" universe u₀ u₁ u₂ v₀ v₁ v₂ open Function class Bifunctor (F : Type u₀ → Type u₁ → Type u₂) where bimap : ∀ {α α' β β'}, (α → α') → (β → β'...
Mathlib/Control/Bifunctor.lean
98
99
theorem snd_fst {α₀ α₁ β₀ β₁} (f : α₀ → α₁) (f' : β₀ → β₁) (x : F α₀ β₀) : snd f' (fst f x) = bimap f f' x := by
simp [snd, bimap_bimap]
[ " fst f' (fst f x) = fst (f' ∘ f) x", " fst f (snd f' x) = bimap f f' x", " snd f' (fst f x) = bimap f f' x" ]
[ " fst f' (fst f x) = fst (f' ∘ f) x", " fst f (snd f' x) = bimap f f' x" ]
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
68
72
theorem toTensorAlgebra_galgebra_toFun (r : R) : TensorPower.toTensorAlgebra (DirectSum.GAlgebra.toFun (R := R) (A := fun n => ⨂[R]^n M) r) = algebraMap _ _ r := by
rw [TensorPower.galgebra_toFun_def, TensorPower.algebraMap₀_eq_smul_one, LinearMap.map_smul, TensorPower.toTensorAlgebra_gOne, Algebra.algebraMap_eq_smul_one]
[ " 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...
[ " 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.CategoryTheory.Category.Grpd import Mathlib.CategoryTheory.Groupoid import Mathlib.Topology.Category.TopCat.Basic import Mathlib.Topology.Homotopy.Path import Mathlib.Data.Set.Subsingleton #align_import algebraic_topology.fundamental_groupoid.basic from "leanprover-community/mathlib"@"3d7987cda72abc473...
Mathlib/AlgebraicTopology/FundamentalGroupoid/Basic.lean
56
79
theorem reflTransSymmAux_mem_I (x : I × I) : reflTransSymmAux x ∈ I := by
dsimp only [reflTransSymmAux] split_ifs · constructor · apply mul_nonneg · apply mul_nonneg · unit_interval · norm_num · unit_interval · rw [mul_assoc] apply mul_le_one · unit_interval · apply mul_nonneg · norm_num · unit_interval · lina...
[ " Continuous reflTransSymmAux", " Continuous fun x => ↑x.2", " Continuous fun x => 1 / 2", " Continuous fun x => ↑x.1 * 2 * ↑x.2", " Continuous fun x => ↑x.1 * (2 - 2 * ↑x.2)", " ∀ (x : ↑I × ↑I), ↑x.2 = 1 / 2 → ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ref...
[ " Continuous reflTransSymmAux", " Continuous fun x => ↑x.2", " Continuous fun x => 1 / 2", " Continuous fun x => ↑x.1 * 2 * ↑x.2", " Continuous fun x => ↑x.1 * (2 - 2 * ↑x.2)", " ∀ (x : ↑I × ↑I), ↑x.2 = 1 / 2 → ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)" ]
import Mathlib.Algebra.CharP.Basic import Mathlib.Algebra.CharP.Algebra import Mathlib.Data.Nat.Prime #align_import algebra.char_p.exp_char from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe u variable (R : Type u) section Semiring variable [Semiring R] class inductive Ex...
Mathlib/Algebra/CharP/ExpChar.lean
133
136
theorem char_prime_of_ne_zero {p : ℕ} [hp : CharP R p] (p_ne_zero : p ≠ 0) : Nat.Prime p := by
cases' CharP.char_is_prime_or_zero R p with h h · exact h · contradiction
[ " ExpChar (R × S) p", " ExpChar (R × S) 1", " p = q", " 1 = q", " ringExpChar R = q", " ringExpChar R = 1", " max 0 1 = 1", " max q 1 = q", " q = 1", " 1 = 1", " p = q ↔ p.Prime", " p = 1 ↔ p.Prime", " 0 = 1 ↔ Nat.Prime 0", " p = 0", " CharZero R", " q = 1 ↔ p = 0", " q = 1 → p = 0",...
[ " ExpChar (R × S) p", " ExpChar (R × S) 1", " p = q", " 1 = q", " ringExpChar R = q", " ringExpChar R = 1", " max 0 1 = 1", " max q 1 = q", " q = 1", " 1 = 1", " p = q ↔ p.Prime", " p = 1 ↔ p.Prime", " 0 = 1 ↔ Nat.Prime 0", " p = 0", " CharZero R", " q = 1 ↔ p = 0", " q = 1 → p = 0",...
import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.LinearAlgebra.Matrix.Determinant.Basic import Mathlib.Tactic.ComputeDegree #align_import linear_algebra.matrix.polynomial from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" set_...
Mathlib/LinearAlgebra/Matrix/Polynomial.lean
89
102
theorem leadingCoeff_det_X_one_add_C (A : Matrix n n α) : leadingCoeff (det ((X : α[X]) • (1 : Matrix n n α[X]) + A.map C)) = 1 := by
cases subsingleton_or_nontrivial α · simp [eq_iff_true_of_subsingleton] rw [← @det_one n, ← coeff_det_X_add_C_card _ A, leadingCoeff] simp only [Matrix.map_one, C_eq_zero, RingHom.map_one] rcases (natDegree_det_X_add_C_le 1 A).eq_or_lt with h | h · simp only [RingHom.map_one, Matrix.map_one, C_eq_zero] at ...
[ " (X • A.map ⇑C + B.map ⇑C).det.natDegree ≤ Fintype.card n", " (∑ σ : Equiv.Perm n, sign σ • ∏ i : n, (X • A.map ⇑C + B.map ⇑C) (σ i) i).natDegree ≤ Fintype.card n", " Finset.fold max 0 (natDegree ∘ fun σ => sign σ • ∏ i : n, (X • A.map ⇑C + B.map ⇑C) (σ i) i) Finset.univ ≤\n Fintype.card n", " ∀ x ∈ Multi...
[ " (X • A.map ⇑C + B.map ⇑C).det.natDegree ≤ Fintype.card n", " (∑ σ : Equiv.Perm n, sign σ • ∏ i : n, (X • A.map ⇑C + B.map ⇑C) (σ i) i).natDegree ≤ Fintype.card n", " Finset.fold max 0 (natDegree ∘ fun σ => sign σ • ∏ i : n, (X • A.map ⇑C + B.map ⇑C) (σ i) i) Finset.univ ≤\n Fintype.card n", " ∀ x ∈ Multi...
import Mathlib.Algebra.Algebra.Operations import Mathlib.Data.Fintype.Lattice import Mathlib.RingTheory.Coprime.Lemmas #align_import ring_theory.ideal.operations from "leanprover-community/mathlib"@"e7f0ddbf65bd7181a85edb74b64bdc35ba4bdc74" assert_not_exists Basis -- See `RingTheory.Ideal.Basis` assert_not_exists ...
Mathlib/RingTheory/Ideal/Operations.lean
82
96
theorem mem_annihilator_span (s : Set M) (r : R) : r ∈ (Submodule.span R s).annihilator ↔ ∀ n : s, r • (n : M) = 0 := by
rw [Submodule.mem_annihilator] constructor · intro h n exact h _ (Submodule.subset_span n.prop) · intro h n hn refine Submodule.span_induction hn ?_ ?_ ?_ ?_ · intro x hx exact h ⟨x, hx⟩ · exact smul_zero _ · intro x y hx hy rw [smul_add, hx, hy, zero_add] · intro a x hx ...
[ " x ∈ Module.annihilator R M", " ∀ (m : M), x • m = 0", " f (x • m) = f 0", " x ∈ Module.annihilator R M'", " ∀ (m : M'), x • m = 0", " x • m = 0", " x • f m = 0", " r ∈ N.annihilator ↔ ∀ n ∈ N, r • n = 0", " (∀ (a : M) (b : a ∈ N), ↑(r • ⟨a, b⟩) = ↑0) ↔ ∀ n ∈ N, r • n = 0", " r ∈ (span R s).annih...
[ " x ∈ Module.annihilator R M", " ∀ (m : M), x • m = 0", " f (x • m) = f 0", " x ∈ Module.annihilator R M'", " ∀ (m : M'), x • m = 0", " x • m = 0", " x • f m = 0", " r ∈ N.annihilator ↔ ∀ n ∈ N, r • n = 0", " (∀ (a : M) (b : a ∈ N), ↑(r • ⟨a, b⟩) = ↑0) ↔ ∀ n ∈ N, r • n = 0" ]
import Mathlib.Topology.Algebra.InfiniteSum.Defs import Mathlib.Data.Fintype.BigOperators import Mathlib.Topology.Algebra.Monoid noncomputable section open Filter Finset Function open scoped Topology variable {α β γ δ : Type*} section HasProd variable [CommMonoid α] [TopologicalSpace α] variable {f g : β → α} ...
Mathlib/Topology/Algebra/InfiniteSum/Basic.lean
132
133
theorem multipliable_of_finite_mulSupport (h : (mulSupport f).Finite) : Multipliable f := by
apply multipliable_of_ne_finset_one (s := h.toFinset); simp
[ " HasProd (fun x => 1) 1", " HasProd f 1", " HasProd (extend g f 1) a ↔ HasProd f a", " ∀ x ∉ Set.range g, extend g f 1 x = 1", " HasProd (f ∘ Subtype.val) a ↔ HasProd (s.mulIndicator f) a", " Multipliable (f ∘ Subtype.val)", " Multipliable f", " ∀ b ∉ h.toFinset, f b = 1" ]
[ " HasProd (fun x => 1) 1", " HasProd f 1", " HasProd (extend g f 1) a ↔ HasProd f a", " ∀ x ∉ Set.range g, extend g f 1 x = 1", " HasProd (f ∘ Subtype.val) a ↔ HasProd (s.mulIndicator f) a", " Multipliable (f ∘ Subtype.val)" ]
import Mathlib.LinearAlgebra.Prod #align_import linear_algebra.linear_pmap from "leanprover-community/mathlib"@"8b981918a93bc45a8600de608cde7944a80d92b9" universe u v w structure LinearPMap (R : Type u) [Ring R] (E : Type v) [AddCommGroup E] [Module R E] (F : Type w) [AddCommGroup F] [Module R F] where domai...
Mathlib/LinearAlgebra/LinearPMap.lean
64
70
theorem ext {f g : E →ₗ.[R] F} (h : f.domain = g.domain) (h' : ∀ ⦃x : f.domain⦄ ⦃y : g.domain⦄ (_h : (x : E) = y), f x = g y) : f = g := by
rcases f with ⟨f_dom, f⟩ rcases g with ⟨g_dom, g⟩ obtain rfl : f_dom = g_dom := h obtain rfl : f = g := LinearMap.ext fun x => h' rfl rfl
[ " f = g", " { domain := f_dom, toFun := f } = g", " { domain := f_dom, toFun := f } = { domain := g_dom, toFun := g }", " { domain := f_dom, toFun := f } = { domain := f_dom, toFun := g }", " { domain := f_dom, toFun := f } = { domain := f_dom, toFun := f }" ]
[]
import Mathlib.Analysis.Convex.Slope import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Tactic.LinearCombination #align_import analysis.convex.specific_functions.basic from "leanprover-community/mathlib"@"8f9fea08977f7e450770933ee6abb20733b47c92" open Real Set NNReal theorem strictConvexOn_exp : St...
Mathlib/Analysis/Convex/SpecificFunctions/Basic.lean
138
163
theorem rpow_one_add_lt_one_add_mul_self {s : ℝ} (hs : -1 ≤ s) (hs' : s ≠ 0) {p : ℝ} (hp1 : 0 < p) (hp2 : p < 1) : (1 + s) ^ p < 1 + p * s := by
rcases eq_or_lt_of_le hs with rfl | hs · rwa [add_right_neg, zero_rpow hp1.ne', mul_neg_one, lt_add_neg_iff_add_lt, zero_add] have hs1 : 0 < 1 + s := neg_lt_iff_pos_add'.mp hs have hs2 : 0 < 1 + p * s := by rw [← neg_lt_iff_pos_add'] rcases lt_or_gt_of_ne hs' with h | h · exact hs.trans (lt_mul_of_...
[ " StrictConvexOn ℝ univ rexp", " ∀ {x y z : ℝ}, x ∈ univ → z ∈ univ → x < y → y < z → (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < rexp y", " 0 < y - x", " x - y < 0", " rexp y - rexp x < rexp y ...
[ " StrictConvexOn ℝ univ rexp", " ∀ {x y z : ℝ}, x ∈ univ → z ∈ univ → x < y → y < z → (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < (rexp z - rexp y) / (z - y)", " (rexp y - rexp x) / (y - x) < rexp y", " 0 < y - x", " x - y < 0", " rexp y - rexp x < rexp y ...
import Mathlib.Algebra.CharP.Defs import Mathlib.RingTheory.Multiplicity import Mathlib.RingTheory.PowerSeries.Basic #align_import ring_theory.power_series.basic from "leanprover-community/mathlib"@"2d5739b61641ee4e7e53eca5688a08f66f2e6a60" noncomputable section open Polynomial open Finset (antidiagonal mem_anti...
Mathlib/RingTheory/PowerSeries/Order.lean
47
51
theorem exists_coeff_ne_zero_iff_ne_zero : (∃ n : ℕ, coeff R n φ ≠ 0) ↔ φ ≠ 0 := by
refine not_iff_not.mp ?_ push_neg -- FIXME: the `FunLike.coe` doesn't seem to be picked up in the expression after #8386? simp [PowerSeries.ext_iff, (coeff R _).map_zero]
[ " (∃ n, (coeff R n) φ ≠ 0) ↔ φ ≠ 0", " (¬∃ n, (coeff R n) φ ≠ 0) ↔ ¬φ ≠ 0", " (∀ (n : ℕ), (coeff R n) φ = 0) ↔ φ = 0" ]
[]
import Mathlib.Algebra.Group.Equiv.TypeTags import Mathlib.Data.ZMod.Quotient import Mathlib.RingTheory.DedekindDomain.AdicValuation #align_import ring_theory.dedekind_domain.selmer_group from "leanprover-community/mathlib"@"2032a878972d5672e7c27c957e7a6e297b044973" set_option quotPrecheck false local notation K "...
Mathlib/RingTheory/DedekindDomain/SelmerGroup.lean
150
155
theorem valuation_of_unit_mod_eq (n : ℕ) (x : Rˣ) : v.valuationOfNeZeroMod n (Units.map (algebraMap R K : R →* K) x : K/n) = 1 := by
-- This used to be `rw`, but we need `erw` after leanprover/lean4#2644 erw [valuationOfNeZeroMod, MonoidHom.comp_apply, ← QuotientGroup.coe_mk', QuotientGroup.map_mk' (G := Kˣ) (N := MonoidHom.range (powMonoidHom n)), valuation_of_unit_eq, QuotientGroup.mk_one, map_one]
[ " ↑(v.valuationOfNeZeroToFun x) = v.valuation ↑x", " v.valuation ↑x = ?m.4479 * ?m.4482", " ↑(v.valuationOfNeZeroToFun x) =\n ↑v.intValuation.toMonoidWithZeroHom ((IsLocalization.toLocalizationMap R⁰ K).sec ↑x).1 *\n ↑((IsUnit.liftRight ((↑v.intValuation.toMonoidWithZeroHom).restrict R⁰) ⋯)\n ...
[ " ↑(v.valuationOfNeZeroToFun x) = v.valuation ↑x", " v.valuation ↑x = ?m.4479 * ?m.4482", " ↑(v.valuationOfNeZeroToFun x) =\n ↑v.intValuation.toMonoidWithZeroHom ((IsLocalization.toLocalizationMap R⁰ K).sec ↑x).1 *\n ↑((IsUnit.liftRight ((↑v.intValuation.toMonoidWithZeroHom).restrict R⁰) ⋯)\n ...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.BigOperators.NatAntidiagonal import Mathlib.Algebra.CharZero.Lemmas import Mathlib.Data.Finset.NatAntidiagonal import Mathlib.Data.Nat.Choose.Central import Mathlib.Data.Tree.Basic import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.GCongr import Mathlib...
Mathlib/Combinatorics/Enumerative/Catalan.lean
116
137
theorem catalan_eq_centralBinom_div (n : ℕ) : catalan n = n.centralBinom / (n + 1) := by
suffices (catalan n : ℚ) = Nat.centralBinom n / (n + 1) by have h := Nat.succ_dvd_centralBinom n exact mod_cast this induction' n using Nat.case_strong_induction_on with d hd · simp · simp_rw [catalan_succ, Nat.cast_sum, Nat.cast_mul] trans (∑ i : Fin d.succ, Nat.centralBinom i / (i + 1) * ...
[ " catalan 0 = 1", " catalan (n + 1) = ∑ i : Fin n.succ, catalan ↑i * catalan (n - ↑i)", " catalan (n + 1) = ∑ ij ∈ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1", " gosperCatalan (n + 1) (i + 1) - gosperCatalan (n + 1) i =\n ↑i.centralBinom / (↑i + 1) * ↑(n - i).centralBinom / (↑n - ↑i + ...
[ " catalan 0 = 1", " catalan (n + 1) = ∑ i : Fin n.succ, catalan ↑i * catalan (n - ↑i)", " catalan (n + 1) = ∑ ij ∈ antidiagonal n, catalan ij.1 * catalan ij.2", " catalan 1 = 1", " gosperCatalan (n + 1) (i + 1) - gosperCatalan (n + 1) i =\n ↑i.centralBinom / (↑i + 1) * ↑(n - i).centralBinom / (↑n - ↑i + ...
import Mathlib.Data.Set.Image import Mathlib.Order.SuccPred.Relation import Mathlib.Topology.Clopen import Mathlib.Topology.Irreducible #align_import topology.connected from "leanprover-community/mathlib"@"d101e93197bb5f6ea89bd7ba386b7f7dff1f3903" open Set Function Topology TopologicalSpace Relation open scoped C...
Mathlib/Topology/Connected/Basic.lean
148
153
theorem IsConnected.union {s t : Set α} (H : (s ∩ t).Nonempty) (Hs : IsConnected s) (Ht : IsConnected t) : IsConnected (s ∪ t) := by
rcases H with ⟨x, hx⟩ refine ⟨⟨x, mem_union_left t (mem_of_mem_inter_left hx)⟩, ?_⟩ exact Hs.isPreconnected.union x (mem_of_mem_inter_left hx) (mem_of_mem_inter_right hx) Ht.isPreconnected
[ " IsPreconnected s", " (s ∩ (u ∩ v)).Nonempty", " x ∈ s", " s ⊆ v ∪ u", " IsPreconnected (⋃₀ c)", " ∀ y ∈ ⋃₀ c, ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t", " ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t", " ∀ s_1 ∈ {s, t}, x ∈ s_1", " x ∈ r", " x ∈ t", " ∀ s_1 ∈ {s, t}, IsPreconnected s_1", ...
[ " IsPreconnected s", " (s ∩ (u ∩ v)).Nonempty", " x ∈ s", " s ⊆ v ∪ u", " IsPreconnected (⋃₀ c)", " ∀ y ∈ ⋃₀ c, ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t", " ∃ t ⊆ ⋃₀ c, x ∈ t ∧ y ∈ t ∧ IsPreconnected t", " ∀ s_1 ∈ {s, t}, x ∈ s_1", " x ∈ r", " x ∈ t", " ∀ s_1 ∈ {s, t}, IsPreconnected s_1", ...
import Mathlib.Algebra.Homology.Homotopy import Mathlib.Algebra.Category.ModuleCat.Abelian import Mathlib.Algebra.Category.ModuleCat.Subobject import Mathlib.CategoryTheory.Limits.Shapes.ConcreteCategory #align_import algebra.homology.Module from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225...
Mathlib/Algebra/Homology/ModuleCat.lean
37
49
theorem homology'_ext {L M N K : ModuleCat.{u} R} {f : L ⟶ M} {g : M ⟶ N} (w : f ≫ g = 0) {h k : homology' f g w ⟶ K} (w : ∀ x : LinearMap.ker g, h (cokernel.π (imageToKernel _ _ w) (toKernelSubobject x)) = k (cokernel.π (imageToKernel _ _ w) (toKernelSubobject x))) : h = k := by
refine Concrete.cokernel_funext fun n => ?_ -- Porting note: as `equiv_rw` was not ported, it was replaced by `Equiv.surjective` -- Gosh it would be nice if `equiv_rw` could directly use an isomorphism, or an enriched `≃`. obtain ⟨n, rfl⟩ := (kernelSubobjectIso g ≪≫ ModuleCat.kernelIsoKer g).toLinearEquiv....
[ " h = k", " h ((cokernel.π (imageToKernel f g w✝)) n) = k ((cokernel.π (imageToKernel f g w✝)) n)", " h ((cokernel.π (imageToKernel f g w✝)) ((kernelSubobjectIso g ≪≫ kernelIsoKer g).toLinearEquiv.toEquiv.symm n)) =\n k ((cokernel.π (imageToKernel f g w✝)) ((kernelSubobjectIso g ≪≫ kernelIsoKer g).toLinearEq...
[]
import Mathlib.LinearAlgebra.Dimension.Free import Mathlib.Algebra.Module.Torsion #align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5" noncomputable section universe u v v' u₁' w w' variable {R S : Type u} {M : Type v} {M' : Type v'} {M₁ : Type v}...
Mathlib/LinearAlgebra/Dimension/Constructions.lean
235
236
theorem finrank_finsupp_self {ι : Type v} [Fintype ι] : finrank R (ι →₀ R) = card ι := by
rw [finrank, rank_finsupp_self, ← mk_toNat_eq_card, toNat_lift]
[ " Module.rank R (ι →₀ M) = lift.{v, w} #ι * lift.{w, v} (Module.rank R M)", " Module.rank R (ι →₀ M) = #ι * Module.rank R M", " Module.rank R (ι →₀ R) = lift.{u, w} #ι", " Module.rank R (ι →₀ R) = #ι", " Module.rank R (⨁ (i : ι), M i) = sum fun i => Module.rank R (M i)", " Module.rank R (Matrix m n R) = l...
[ " Module.rank R (ι →₀ M) = lift.{v, w} #ι * lift.{w, v} (Module.rank R M)", " Module.rank R (ι →₀ M) = #ι * Module.rank R M", " Module.rank R (ι →₀ R) = lift.{u, w} #ι", " Module.rank R (ι →₀ R) = #ι", " Module.rank R (⨁ (i : ι), M i) = sum fun i => Module.rank R (M i)", " Module.rank R (Matrix m n R) = l...
import Mathlib.AlgebraicGeometry.Restrict import Mathlib.CategoryTheory.Adjunction.Limits import Mathlib.CategoryTheory.Adjunction.Reflective #align_import algebraic_geometry.Gamma_Spec_adjunction from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc" -- Explicit universe annotations were u...
Mathlib/AlgebraicGeometry/GammaSpecAdjunction.lean
91
95
theorem toΓSpec_continuous : Continuous X.toΓSpecFun := by
rw [isTopologicalBasis_basic_opens.continuous_iff] rintro _ ⟨r, rfl⟩ erw [X.toΓSpec_preim_basicOpen_eq r] exact (X.toRingedSpace.basicOpen r).2
[ " r ∉ (X.toΓSpecFun x).asIdeal ↔ IsUnit ((X.ΓToStalk x) r)", " X.toΓSpecFun ⁻¹' (basicOpen r).carrier = (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ x✝ ∈ (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ IsUnit ((X.toRingedSpace....
[ " r ∉ (X.toΓSpecFun x).asIdeal ↔ IsUnit ((X.ΓToStalk x) r)", " X.toΓSpecFun ⁻¹' (basicOpen r).carrier = (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ x✝ ∈ (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ IsUnit ((X.toRingedSpace....
import Mathlib.Analysis.NormedSpace.Spectrum import Mathlib.Topology.ContinuousFunction.NonUnitalFunctionalCalculus import Mathlib.Topology.ContinuousFunction.StoneWeierstrass section UniqueUnital section NNReal open NNReal variable {X : Type*} [TopologicalSpace X] variable {A : Type*} [TopologicalSpace A] [Ring...
Mathlib/Topology/ContinuousFunction/UniqueCFC.lean
207
218
theorem RCLike.uniqueNonUnitalContinuousFunctionalCalculus_of_compactSpace_quasispectrum [TopologicalSpace A] [T2Space A] [NonUnitalRing A] [StarRing A] [Module 𝕜 A] [IsScalarTower 𝕜 A A] [SMulCommClass 𝕜 A A] [h : ∀ a : A, CompactSpace (quasispectrum 𝕜 a)] : UniqueNonUnitalContinuousFunctionalCalculus ...
rw [DFunLike.ext'_iff, ← Set.eqOn_univ, ← (ContinuousMapZero.adjoin_id_dense h0).closure_eq] refine Set.EqOn.closure (fun f hf ↦ ?_) hφ hψ rw [← NonUnitalStarAlgHom.mem_equalizer] apply adjoin_le ?_ hf rw [Set.singleton_subset_iff] exact h compactSpace_quasispectrum := h
[ " φ = ψ", " Set.EqOn (⇑φ) (⇑ψ) (closure ↑(adjoin 𝕜 {ContinuousMapZero.id h0}))", " φ f = ψ f", " f ∈ NonUnitalStarAlgHom.equalizer φ ψ", " {ContinuousMapZero.id h0} ⊆ ↑(NonUnitalStarAlgHom.equalizer φ ψ)", " ContinuousMapZero.id h0 ∈ ↑(NonUnitalStarAlgHom.equalizer φ ψ)" ]
[]
import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Analysis.NormedSpace.BallAction import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.InnerProductSpace.Calculus import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Geometry.Manifold.Algebra.LieGroup import Mathlib.Geometry.Manifol...
Mathlib/Geometry/Manifold/Instances/Sphere.lean
385
386
theorem sphere_ext_iff (u v : sphere (0 : E) 1) : u = v ↔ ⟪(u : E), v⟫_ℝ = 1 := by
simp [Subtype.ext_iff, inner_eq_one_iff_of_norm_one]
[ " u = v ↔ ⟪↑u, ↑v⟫_ℝ = 1" ]
[]
import Mathlib.Topology.Category.Profinite.Basic import Mathlib.Topology.LocallyConstant.Basic import Mathlib.Topology.DiscreteQuotient import Mathlib.Topology.Category.TopCat.Limits.Cofiltered import Mathlib.Topology.Category.TopCat.Limits.Konig #align_import topology.category.Profinite.cofiltered_limit from "leanpr...
Mathlib/Topology/Category/Profinite/CofilteredLimit.lean
116
126
theorem exists_locallyConstant_fin_two (hC : IsLimit C) (f : LocallyConstant C.pt (Fin 2)) : ∃ (j : J) (g : LocallyConstant (F.obj j) (Fin 2)), f = g.comap (C.π.app _) := by
let U := f ⁻¹' {0} have hU : IsClopen U := f.isLocallyConstant.isClopen_fiber _ obtain ⟨j, V, hV, h⟩ := exists_isClopen_of_cofiltered C hC hU use j, LocallyConstant.ofIsClopen hV apply LocallyConstant.locallyConstant_eq_of_fiber_zero_eq simp only [Fin.isValue, Functor.const_obj_obj, LocallyConstant.coe_com...
[ " ∃ j V, IsClopen V ∧ U = ⇑(C.π.app j) ⁻¹' V", " ∀ (i j : J) (f : i ⟶ j),\n ∀ V ∈ (fun j => {W | IsClopen W}) j, ⇑((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i", " ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)", " TopologicalSpace.IsTopologicalBasis ((fun j =...
[ " ∃ j V, IsClopen V ∧ U = ⇑(C.π.app j) ⁻¹' V", " ∀ (i j : J) (f : i ⟶ j),\n ∀ V ∈ (fun j => {W | IsClopen W}) j, ⇑((F ⋙ toTopCat).map f) ⁻¹' V ∈ (fun j => {W | IsClopen W}) i", " ∀ (j : J), TopologicalSpace.IsTopologicalBasis ((fun j => {W | IsClopen W}) j)", " TopologicalSpace.IsTopologicalBasis ((fun j =...
import Mathlib.Data.ZMod.Basic import Mathlib.Algebra.Group.Nat import Mathlib.Tactic.IntervalCases import Mathlib.GroupTheory.SpecificGroups.Dihedral import Mathlib.GroupTheory.SpecificGroups.Cyclic #align_import group_theory.specific_groups.quaternion from "leanprover-community/mathlib"@"879155bff5af618b9062cbb2915...
Mathlib/GroupTheory/SpecificGroups/Quaternion.lean
211
222
theorem orderOf_xa [NeZero n] (i : ZMod (2 * n)) : orderOf (xa i) = 4 := by
change _ = 2 ^ 2 haveI : Fact (Nat.Prime 2) := Fact.mk Nat.prime_two apply orderOf_eq_prime_pow · intro h simp only [pow_one, xa_sq] at h injection h with h' apply_fun ZMod.val at h' apply_fun (· / n) at h' simp only [ZMod.val_natCast, ZMod.val_zero, Nat.zero_div, Nat.mod_mul_left_div_self,...
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
[ " ∀ (a b c : QuaternionGroup n), a * b * c = a * (b * c)", " a i * a j * a k = a i * (a j * a k)", " a i * a j * xa k = a i * (a j * xa k)", " a i * xa j * a k = a i * (xa j * a k)", " a i * xa j * xa k = a i * (xa j * xa k)", " xa i * a j * a k = xa i * (a j * a k)", " xa i * a j * xa k = xa i * (a j *...
import Mathlib.NumberTheory.FLT.Basic import Mathlib.NumberTheory.PythagoreanTriples import Mathlib.RingTheory.Coprime.Lemmas import Mathlib.Tactic.LinearCombination #align_import number_theory.fermat4 from "leanprover-community/mathlib"@"10b4e499f43088dd3bb7b5796184ad5216648ab1" noncomputable section open scope...
Mathlib/NumberTheory/FLT/Four.lean
89
105
theorem coprime_of_minimal {a b c : ℤ} (h : Minimal a b c) : IsCoprime a b := by
apply Int.gcd_eq_one_iff_coprime.mp by_contra hab obtain ⟨p, hp, hpa, hpb⟩ := Nat.Prime.not_coprime_iff_dvd.mp hab obtain ⟨a1, rfl⟩ := Int.natCast_dvd.mpr hpa obtain ⟨b1, rfl⟩ := Int.natCast_dvd.mpr hpb have hpc : (p : ℤ) ^ 2 ∣ c := by rw [← Int.pow_dvd_pow_iff two_ne_zero, ← h.1.2.2] apply Dvd.int...
[ " Fermat42 a b c ↔ Fermat42 b a c", " a ≠ 0 ∧ b ≠ 0 ∧ a ^ 4 + b ^ 4 = c ^ 2 ↔ b ≠ 0 ∧ a ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2", " a ≠ 0 ∧ b ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2 ↔ b ≠ 0 ∧ a ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2", " Fermat42 a b c ↔ Fermat42 (k * a) (k * b) (k ^ 2 * c)", " a ≠ 0 ∧ b ≠ 0 ∧ a ^ 4 + b ^ 4 = c ^ 2 ↔ k * a ≠ ...
[ " Fermat42 a b c ↔ Fermat42 b a c", " a ≠ 0 ∧ b ≠ 0 ∧ a ^ 4 + b ^ 4 = c ^ 2 ↔ b ≠ 0 ∧ a ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2", " a ≠ 0 ∧ b ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2 ↔ b ≠ 0 ∧ a ≠ 0 ∧ b ^ 4 + a ^ 4 = c ^ 2", " Fermat42 a b c ↔ Fermat42 (k * a) (k * b) (k ^ 2 * c)", " a ≠ 0 ∧ b ≠ 0 ∧ a ^ 4 + b ^ 4 = c ^ 2 ↔ k * a ≠ ...
import Mathlib.LinearAlgebra.Ray import Mathlib.LinearAlgebra.Determinant #align_import linear_algebra.orientation from "leanprover-community/mathlib"@"0c1d80f5a86b36c1db32e021e8d19ae7809d5b79" noncomputable section section OrderedCommSemiring variable (R : Type*) [StrictOrderedCommSemiring R] variable (M : Typ...
Mathlib/LinearAlgebra/Orientation.lean
74
75
theorem Orientation.map_refl : (Orientation.map ι <| LinearEquiv.refl R M) = Equiv.refl _ := by
rw [Orientation.map, AlternatingMap.domLCongr_refl, Module.Ray.map_refl]
[ " map ι (LinearEquiv.refl R M) = Equiv.refl (Orientation R M ι)" ]
[]
import Mathlib.Algebra.Polynomial.Splits #align_import algebra.cubic_discriminant from "leanprover-community/mathlib"@"930133160e24036d5242039fe4972407cd4f1222" noncomputable section @[ext] structure Cubic (R : Type*) where (a b c d : R) #align cubic Cubic namespace Cubic open Cubic Polynomial open Polynom...
Mathlib/Algebra/CubicDiscriminant.lean
130
130
theorem d_of_eq (h : P.toPoly = Q.toPoly) : P.d = Q.d := by
rw [← coeff_eq_d, h, coeff_eq_d]
[ " C w * (X - C x) * (X - C y) * (X - C z) =\n { a := w, b := w * -(x + y + z), c := w * (x * y + x * z + y * z), d := w * -(x * y * z) }.toPoly", " C w * (X - C x) * (X - C y) * (X - C z) =\n C w * X ^ 3 + C w * -(C x + C y + C z) * X ^ 2 + C w * (C x * C y + C x * C z + C y * C z) * X +\n C w * -(C x ...
[ " C w * (X - C x) * (X - C y) * (X - C z) =\n { a := w, b := w * -(x + y + z), c := w * (x * y + x * z + y * z), d := w * -(x * y * z) }.toPoly", " C w * (X - C x) * (X - C y) * (X - C z) =\n C w * X ^ 3 + C w * -(C x + C y + C z) * X ^ 2 + C w * (C x * C y + C x * C z + C y * C z) * X +\n C w * -(C x ...
import Mathlib.Algebra.CharP.Invertible import Mathlib.Algebra.MvPolynomial.Variables import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Expand import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.ZMod.Basic #align_import ring_theory.witt_vector.witt_polynomial from "leanprover-c...
Mathlib/RingTheory/WittVector/WittPolynomial.lean
218
234
theorem constantCoeff_xInTermsOfW [hp : Fact p.Prime] [Invertible (p : R)] (n : ℕ) : constantCoeff (xInTermsOfW p R n) = 0 := by
apply Nat.strongInductionOn n; clear n intro n IH rw [xInTermsOfW_eq, mul_comm, RingHom.map_mul, RingHom.map_sub, map_sum, constantCoeff_C, constantCoeff_X, zero_sub, mul_neg, neg_eq_zero] -- Porting note: here, we should be able to do `rw [sum_eq_zero]`, but the goal that -- is created is not what we ex...
[ " wittPolynomial p R n = ∑ i ∈ range (n + 1), C (↑p ^ i) * X i ^ p ^ (n - i)", " ∀ x ∈ range (n + 1), (monomial (single x (p ^ (n - x)))) (↑p ^ x) = C (↑p ^ x) * X x ^ p ^ (n - x)", " (monomial (single i (p ^ (n - i)))) (↑p ^ i) = C (↑p ^ i) * X i ^ p ^ (n - i)", " X i ^ 0 = 1", " (map f) (W_ R n) = W_ S n"...
[ " wittPolynomial p R n = ∑ i ∈ range (n + 1), C (↑p ^ i) * X i ^ p ^ (n - i)", " ∀ x ∈ range (n + 1), (monomial (single x (p ^ (n - x)))) (↑p ^ x) = C (↑p ^ x) * X x ^ p ^ (n - x)", " (monomial (single i (p ^ (n - i)))) (↑p ^ i) = C (↑p ^ i) * X i ^ p ^ (n - i)", " X i ^ 0 = 1", " (map f) (W_ R n) = W_ S n"...
import Mathlib.Data.List.Cycle import Mathlib.GroupTheory.Perm.Cycle.Type import Mathlib.GroupTheory.Perm.List #align_import group_theory.perm.cycle.concrete from "leanprover-community/mathlib"@"00638177efd1b2534fc5269363ebf42a7871df9a" open Equiv Equiv.Perm List variable {α : Type*} namespace Equiv.Perm secti...
Mathlib/GroupTheory/Perm/Cycle/Concrete.lean
259
260
theorem toList_nthLe_zero (h : x ∈ p.support) : (toList p x).nthLe 0 (length_toList_pos_of_mem_support _ _ h) = x := by
simp [toList]
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x ≠ [y]", " False", " 2 ≤ (p.toList x).length ↔ x ∈ p.support", " (p.toList x).get ⟨n, hn⟩ = (p ^ n) x", " (p.toList x).get ⟨0, ⋯⟩ = x", " (p.toList x).nthLe n hn = (p ^ n) x", "...
[ " toList 1 x = []", " p.toList x = [] ↔ x ∉ p.support", " (p.toList x).length = (p.cycleOf x).support.card", " p.toList x ≠ [y]", " False", " 2 ≤ (p.toList x).length ↔ x ∈ p.support", " (p.toList x).get ⟨n, hn⟩ = (p ^ n) x", " (p.toList x).get ⟨0, ⋯⟩ = x", " (p.toList x).nthLe n hn = (p ^ n) x" ]
import Mathlib.MeasureTheory.PiSystem import Mathlib.Order.OmegaCompletePartialOrder import Mathlib.Topology.Constructions import Mathlib.MeasureTheory.MeasurableSpace.Basic open Set namespace MeasureTheory variable {ι : Type _} {α : ι → Type _} section cylinder def cylinder (s : Finset ι) (S : Set (∀ i : s, α...
Mathlib/MeasureTheory/Constructions/Cylinders.lean
237
244
theorem disjoint_cylinder_iff [Nonempty (∀ i, α i)] {s t : Finset ι} {S : Set (∀ i : s, α i)} {T : Set (∀ i : t, α i)} [DecidableEq ι] : Disjoint (cylinder s S) (cylinder t T) ↔ Disjoint ((fun f : ∀ i : (s ∪ t : Finset ι), α i ↦ fun j : s ↦ f ⟨j, Finset.mem_union_left t j.prop⟩) ⁻¹' S) ...
simp_rw [Set.disjoint_iff, subset_empty_iff, inter_cylinder, cylinder_eq_empty_iff]
[ " cylinder s ∅ = ∅", " cylinder s univ = univ", " cylinder s S = ∅ ↔ S = ∅", " cylinder s S = ∅", " S = ∅", " False", " f' ∈ cylinder s S", " (fun i => f' ↑i) ∈ S", " cylinder s₁ S₁ ∩ cylinder s₂ S₂ = cylinder (s₁ ∪ s₂) ((fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₁ ∩ (fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₂)", " f ∈ cylind...
[ " cylinder s ∅ = ∅", " cylinder s univ = univ", " cylinder s S = ∅ ↔ S = ∅", " cylinder s S = ∅", " S = ∅", " False", " f' ∈ cylinder s S", " (fun i => f' ↑i) ∈ S", " cylinder s₁ S₁ ∩ cylinder s₂ S₂ = cylinder (s₁ ∪ s₂) ((fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₁ ∩ (fun f j => f ⟨↑j, ⋯⟩) ⁻¹' S₂)", " f ∈ cylind...
import Mathlib.Analysis.NormedSpace.PiLp import Mathlib.Analysis.InnerProductSpace.PiL2 #align_import analysis.matrix from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f6dddd2b4f5" noncomputable section open scoped NNReal Matrix namespace Matrix variable {R l m n α β : Type*} [Fintype l] [Fintyp...
Mathlib/Analysis/Matrix.lean
161
162
theorem nnnorm_row (v : n → α) : ‖row v‖₊ = ‖v‖₊ := by
simp [nnnorm_def, Pi.nnnorm_def]
[ " ‖A‖ = ↑(Finset.univ.sup fun i => Finset.univ.sup fun j => ‖A i j‖₊)", " ‖A‖ ≤ r ↔ ∀ (i : m) (j : n), ‖A i j‖ ≤ r", " ‖A‖₊ ≤ r ↔ ∀ (i : m) (j : n), ‖A i j‖₊ ≤ r", " ‖A‖ < r ↔ ∀ (i : m) (j : n), ‖A i j‖ < r", " ‖A‖₊ < r ↔ ∀ (i : m) (j : n), ‖A i j‖₊ < r", " ‖A.map f‖₊ = ‖A‖₊", " ‖col v‖₊ = ‖v‖₊", " ‖r...
[ " ‖A‖ = ↑(Finset.univ.sup fun i => Finset.univ.sup fun j => ‖A i j‖₊)", " ‖A‖ ≤ r ↔ ∀ (i : m) (j : n), ‖A i j‖ ≤ r", " ‖A‖₊ ≤ r ↔ ∀ (i : m) (j : n), ‖A i j‖₊ ≤ r", " ‖A‖ < r ↔ ∀ (i : m) (j : n), ‖A i j‖ < r", " ‖A‖₊ < r ↔ ∀ (i : m) (j : n), ‖A i j‖₊ < r", " ‖A.map f‖₊ = ‖A‖₊", " ‖col v‖₊ = ‖v‖₊" ]
import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.LinearAlgebra.Matrix.Block #align_import analysis.inner_product_space.gram_schmidt_ortho from "leanprover-community/mathlib"@"1a4df69ca1a9a0e5e26bfe12e2b92814216016d0" open Finset Submodule FiniteDimensional variable (𝕜 : Type*) {E : Type*} [RCLike �...
Mathlib/Analysis/InnerProductSpace/GramSchmidtOrtho.lean
133
139
theorem mem_span_gramSchmidt (f : ι → E) {i j : ι} (hij : i ≤ j) : f i ∈ span 𝕜 (gramSchmidt 𝕜 f '' Set.Iic j) := by
rw [gramSchmidt_def' 𝕜 f i] simp_rw [orthogonalProjection_singleton] exact Submodule.add_mem _ (subset_span <| mem_image_of_mem _ hij) (Submodule.sum_mem _ fun k hk => smul_mem (span 𝕜 (gramSchmidt 𝕜 f '' Set.Iic j)) _ <| subset_span <| mem_image_of_mem (gramSchmidt 𝕜 f) <| (Finset.mem_Iio.1 hk).le...
[ " (invImage (fun x => x) IsWellOrder.toHasWellFounded).1 (↑i) n", " gramSchmidt 𝕜 f n = f n - ∑ i ∈ Iio n, ↑((orthogonalProjection (span 𝕜 {gramSchmidt 𝕜 f i})) (f n))", " f n = gramSchmidt 𝕜 f n + ∑ i ∈ Iio n, ↑((orthogonalProjection (span 𝕜 {gramSchmidt 𝕜 f i})) (f n))", " f n = gramSchmidt 𝕜 f n + ∑...
[ " (invImage (fun x => x) IsWellOrder.toHasWellFounded).1 (↑i) n", " gramSchmidt 𝕜 f n = f n - ∑ i ∈ Iio n, ↑((orthogonalProjection (span 𝕜 {gramSchmidt 𝕜 f i})) (f n))", " f n = gramSchmidt 𝕜 f n + ∑ i ∈ Iio n, ↑((orthogonalProjection (span 𝕜 {gramSchmidt 𝕜 f i})) (f n))", " f n = gramSchmidt 𝕜 f n + ∑...
import Mathlib.Data.Real.Irrational import Mathlib.Data.Rat.Encodable import Mathlib.Topology.GDelta #align_import topology.instances.irrational from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set Filter Metric open Filter Topology protected theorem IsGδ.setOf_irrational : Is...
Mathlib/Topology/Instances/Irrational.lean
45
51
theorem dense_irrational : Dense { x : ℝ | Irrational x } := by
refine Real.isTopologicalBasis_Ioo_rat.dense_iff.2 ?_ simp only [gt_iff_lt, Rat.cast_lt, not_lt, ge_iff_le, Rat.cast_le, mem_iUnion, mem_singleton_iff, exists_prop, forall_exists_index, and_imp] rintro _ a b hlt rfl _ rw [inter_comm] exact exists_irrational_btwn (Rat.cast_lt.2 hlt)
[ " Dense {x | Irrational x}", " ∀ o ∈ ⋃ a, ⋃ b, ⋃ (_ : a < b), {Ioo ↑a ↑b}, o.Nonempty → (o ∩ {x | Irrational x}).Nonempty", " ∀ (o : Set ℝ) (x x_1 : ℚ), x < x_1 → o = Ioo ↑x ↑x_1 → o.Nonempty → (o ∩ {x | Irrational x}).Nonempty", " (Ioo ↑a ↑b ∩ {x | Irrational x}).Nonempty", " ({x | Irrational x} ∩ Ioo ↑a ↑...
[]
import Mathlib.Data.Multiset.Basic #align_import data.multiset.range from "leanprover-community/mathlib"@"0a0ec35061ed9960bf0e7ffb0335f44447b58977" open List Nat namespace Multiset -- range def range (n : ℕ) : Multiset ℕ := List.range n #align multiset.range Multiset.range theorem coe_range (n : ℕ) : ↑(List...
Mathlib/Data/Multiset/Range.lean
34
35
theorem range_succ (n : ℕ) : range (succ n) = n ::ₘ range n := by
rw [range, List.range_succ, ← coe_add, add_comm]; rfl
[ " range n.succ = n ::ₘ range n", " ↑[n] + ↑(List.range n) = n ::ₘ range n" ]
[]
import Mathlib.Analysis.Convex.Function import Mathlib.Analysis.Convex.StrictConvexSpace import Mathlib.MeasureTheory.Function.AEEqOfIntegral import Mathlib.MeasureTheory.Integral.Average #align_import analysis.convex.integral from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Mea...
Mathlib/Analysis/Convex/Integral.lean
112
119
theorem ConvexOn.average_mem_epigraph [IsFiniteMeasure μ] [NeZero μ] (hg : ConvexOn ℝ s g) (hgc : ContinuousOn g s) (hsc : IsClosed s) (hfs : ∀ᵐ x ∂μ, f x ∈ s) (hfi : Integrable f μ) (hgi : Integrable (g ∘ f) μ) : (⨍ x, f x ∂μ, ⨍ x, g (f x) ∂μ) ∈ {p : E × ℝ | p.1 ∈ s ∧ g p.1 ≤ p.2} := by
have ht_mem : ∀ᵐ x ∂μ, (f x, g (f x)) ∈ {p : E × ℝ | p.1 ∈ s ∧ g p.1 ≤ p.2} := hfs.mono fun x hx => ⟨hx, le_rfl⟩ exact average_pair hfi hgi ▸ hg.convex_epigraph.average_mem (hsc.epigraph hgc) ht_mem (hfi.prod_mk hgi)
[ " ∫ (x : α), f x ∂μ ∈ s", " (range g ∩ s).Nonempty", " f x₀ ∈ range g", " ∫ (a : α), g a ∂μ ∈ s", " ∀ᵐ (x : α) ∂μ, g x ∈ closure (range g ∩ s)", " g x ∈ closure (range g ∩ s)", " g x ∈ range g ∩ s", " ∀ i ∈ (G n).range, 0 ≤ (μ (↑(G n) ⁻¹' {i})).toReal", " ∑ i ∈ (G n).range, (μ (↑(G n) ⁻¹' {i})).toRe...
[ " ∫ (x : α), f x ∂μ ∈ s", " (range g ∩ s).Nonempty", " f x₀ ∈ range g", " ∫ (a : α), g a ∂μ ∈ s", " ∀ᵐ (x : α) ∂μ, g x ∈ closure (range g ∩ s)", " g x ∈ closure (range g ∩ s)", " g x ∈ range g ∩ s", " ∀ i ∈ (G n).range, 0 ≤ (μ (↑(G n) ⁻¹' {i})).toReal", " ∑ i ∈ (G n).range, (μ (↑(G n) ⁻¹' {i})).toRe...
import Mathlib.Analysis.Normed.Group.Pointwise import Mathlib.Analysis.NormedSpace.Real #align_import analysis.normed_space.pointwise from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Metric Set open Pointwise Topology variable {𝕜 E : Type*} variable [NormedField 𝕜] sectio...
Mathlib/Analysis/NormedSpace/Pointwise.lean
84
88
theorem smul_ball {c : 𝕜} (hc : c ≠ 0) (x : E) (r : ℝ) : c • ball x r = ball (c • x) (‖c‖ * r) := by
ext y rw [mem_smul_set_iff_inv_smul_mem₀ hc] conv_lhs => rw [← inv_smul_smul₀ hc x] simp [← div_eq_inv_mul, div_lt_iff (norm_pos_iff.2 hc), mul_comm _ r, dist_smul₀]
[ " c • ball x r = ball (c • x) (‖c‖ * r)", " y ∈ c • ball x r ↔ y ∈ ball (c • x) (‖c‖ * r)", " c⁻¹ • y ∈ ball x r ↔ y ∈ ball (c • x) (‖c‖ * r)", "𝕜 : Type u_1\nE : Type u_2\ninst✝² : NormedField 𝕜\ninst✝¹ : SeminormedAddCommGroup E\ninst✝ : NormedSpace 𝕜 E\nc : 𝕜\nhc : c ≠ 0\nx : E\nr : ℝ\ny : E\n| c⁻¹ • y...
[]
import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Tactic.NthRewrite #align_import data.nat.gcd.basic from "leanprover-community/mathlib"@"e8638a0fcaf73e4500469f368ef9494e495099b3" namespace Nat theorem gcd_greatest {a b d : ℕ} (hda : d ∣ a) (hdb : d ∣ b) (hd ...
Mathlib/Data/Nat/GCD/Basic.lean
53
54
theorem gcd_add_mul_right_left (m n k : ℕ) : gcd (m + k * n) n = gcd m n := by
rw [gcd_comm, gcd_add_mul_right_right, gcd_comm]
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n", " (m + k * n).gcd n = m.gcd n" ]
[ " m.gcd (n + k * m) = m.gcd n", " m.gcd (n + m * k) = m.gcd n", " m.gcd (k * m + n) = m.gcd n", " m.gcd (m * k + n) = m.gcd n" ]
import Batteries.Data.List.Lemmas namespace List universe u v variable {α : Type u} {β : Type v} @[simp] theorem eraseIdx_zero (l : List α) : eraseIdx l 0 = tail l := by cases l <;> rfl theorem eraseIdx_eq_take_drop_succ : ∀ (l : List α) (i : Nat), l.eraseIdx i = l.take i ++ l.drop (i + 1) | nil, _ => by s...
.lake/packages/batteries/Batteries/Data/List/EraseIdx.lean
43
47
theorem eraseIdx_append_of_lt_length {l : List α} {k : Nat} (hk : k < length l) (l' : List α) : eraseIdx (l ++ l') k = eraseIdx l k ++ l' := by
rw [eraseIdx_eq_take_drop_succ, take_append_of_le_length, drop_append_of_le_length, eraseIdx_eq_take_drop_succ, append_assoc] all_goals omega
[ " l.eraseIdx 0 = l.tail", " [].eraseIdx 0 = [].tail", " (head✝ :: tail✝).eraseIdx 0 = (head✝ :: tail✝).tail", " [].eraseIdx x✝ = take x✝ [] ++ drop (x✝ + 1) []", " (a :: l).eraseIdx 0 = take 0 (a :: l) ++ drop (0 + 1) (a :: l)", " (a :: l).eraseIdx (i + 1) = take (i + 1) (a :: l) ++ drop (i + 1 + 1) (a ::...
[ " l.eraseIdx 0 = l.tail", " [].eraseIdx 0 = [].tail", " (head✝ :: tail✝).eraseIdx 0 = (head✝ :: tail✝).tail", " [].eraseIdx x✝ = take x✝ [] ++ drop (x✝ + 1) []", " (a :: l).eraseIdx 0 = take 0 (a :: l) ++ drop (0 + 1) (a :: l)", " (a :: l).eraseIdx (i + 1) = take (i + 1) (a :: l) ++ drop (i + 1 + 1) (a ::...
import Mathlib.Init.Algebra.Classes import Mathlib.Logic.Nontrivial.Basic import Mathlib.Order.BoundedOrder import Mathlib.Data.Option.NAry import Mathlib.Tactic.Lift import Mathlib.Data.Option.Basic #align_import order.with_bot from "leanprover-community/mathlib"@"0111834459f5d7400215223ea95ae38a1265a907" variabl...
Mathlib/Order/WithBot.lean
143
145
theorem unbot'_eq_unbot'_iff {d : α} {x y : WithBot α} : unbot' d x = unbot' d y ↔ x = y ∨ x = d ∧ y = ⊥ ∨ x = ⊥ ∧ y = d := by
induction y <;> simp [unbot'_eq_iff, or_comm]
[ " unbot' d x = y ↔ x = ↑y ∨ x = ⊥ ∧ y = d", " unbot' d ⊥ = y ↔ ⊥ = ↑y ∨ ⊥ = ⊥ ∧ y = d", " unbot' d ↑a✝ = y ↔ ↑a✝ = ↑y ∨ ↑a✝ = ⊥ ∧ y = d", " unbot' d x = d ↔ x = ↑d ∨ x = ⊥", " unbot' d x = unbot' d y ↔ x = y ∨ x = ↑d ∧ y = ⊥ ∨ x = ⊥ ∧ y = ↑d", " unbot' d x = unbot' d ⊥ ↔ x = ⊥ ∨ x = ↑d ∧ ⊥ = ⊥ ∨ x = ⊥ ∧ ⊥...
[ " unbot' d x = y ↔ x = ↑y ∨ x = ⊥ ∧ y = d", " unbot' d ⊥ = y ↔ ⊥ = ↑y ∨ ⊥ = ⊥ ∧ y = d", " unbot' d ↑a✝ = y ↔ ↑a✝ = ↑y ∨ ↑a✝ = ⊥ ∧ y = d", " unbot' d x = d ↔ x = ↑d ∨ x = ⊥" ]
import Mathlib.LinearAlgebra.CliffordAlgebra.Fold import Mathlib.LinearAlgebra.ExteriorAlgebra.Basic #align_import linear_algebra.exterior_algebra.of_alternating from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" variable {R M N N' : Type*} variable [CommRing R] [AddCommGroup M] [AddCo...
Mathlib/LinearAlgebra/ExteriorAlgebra/OfAlternating.lean
89
92
theorem liftAlternating_one (f : ∀ i, M [⋀^Fin i]→ₗ[R] N) : liftAlternating (R := R) (M := M) (N := N) f (1 : ExteriorAlgebra R M) = f 0 0 := by
dsimp [liftAlternating] rw [foldl_one]
[ " Module R (M [⋀^ι]→ₗ[R] N)", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] ExteriorAlgebra R M →ₗ[R] N", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] N", " M [⋀^Fin 0]→ₗ[R] N ≃ₗ[R] N", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] ExteriorAlgebra R M →ₗ[R] (i : ℕ) → M [⋀^Fin i]→ₗ[R] N", " M →ₗ[R] ((i : ℕ) → M [⋀^Fin i]→ₗ[R]...
[ " Module R (M [⋀^ι]→ₗ[R] N)", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] ExteriorAlgebra R M →ₗ[R] N", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] N", " M [⋀^Fin 0]→ₗ[R] N ≃ₗ[R] N", " ((i : ℕ) → M [⋀^Fin i]→ₗ[R] N) →ₗ[R] ExteriorAlgebra R M →ₗ[R] (i : ℕ) → M [⋀^Fin i]→ₗ[R] N", " M →ₗ[R] ((i : ℕ) → M [⋀^Fin i]→ₗ[R]...
import Mathlib.RingTheory.Localization.FractionRing import Mathlib.Algebra.Polynomial.RingDivision #align_import field_theory.ratfunc from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d010e417b10abb1b6" noncomputable section open scoped Classical open scoped nonZeroDivisors Polynomial universe u v va...
Mathlib/FieldTheory/RatFunc/Defs.lean
154
155
theorem mk_eq_div' (p q : K[X]) : RatFunc.mk p q = ofFractionRing (algebraMap _ _ p / algebraMap _ _ q) := by
rw [RatFunc.mk]
[ " { toFractionRing := x } = { toFractionRing := y }", " { toFractionRing := x } = { toFractionRing := { toFractionRing := x }.toFractionRing }", " P", " ∀ {a c : K[X]} {b d : ↥K[X]⁰},\n (Localization.r K[X]⁰) (a, b) (c, d) → (fun p q => f p ↑q) a b = (fun p q => f p ↑q) c d", " (fun p q => f p ↑q) p q = ...
[ " { toFractionRing := x } = { toFractionRing := y }", " { toFractionRing := x } = { toFractionRing := { toFractionRing := x }.toFractionRing }", " P", " ∀ {a c : K[X]} {b d : ↥K[X]⁰},\n (Localization.r K[X]⁰) (a, b) (c, d) → (fun p q => f p ↑q) a b = (fun p q => f p ↑q) c d", " (fun p q => f p ↑q) p q = ...
import Mathlib.Algebra.Algebra.Hom import Mathlib.RingTheory.Ideal.Quotient #align_import algebra.ring_quot from "leanprover-community/mathlib"@"e5820f6c8fcf1b75bcd7738ae4da1c5896191f72" universe uR uS uT uA u₄ variable {R : Type uR} [Semiring R] variable {S : Type uS} [CommSemiring S] variable {T : Type uT} vari...
Mathlib/Algebra/RingQuot.lean
79
80
theorem Rel.smul {r : A → A → Prop} (k : S) ⦃a b : A⦄ (h : Rel r a b) : Rel r (k • a) (k • b) := by
simp only [Algebra.smul_def, Rel.mul_right h]
[ " Rel r (a + b) (a + c)", " Rel r (b + a) (c + a)", " Rel r (-a) (-b)", " Rel r (a - c) (b - c)", " Rel r (a - b) (a - c)", " Rel r (k • a) (k • b)" ]
[ " Rel r (a + b) (a + c)", " Rel r (b + a) (c + a)", " Rel r (-a) (-b)", " Rel r (a - c) (b - c)", " Rel r (a - b) (a - c)" ]
import Mathlib.Data.ENat.Lattice import Mathlib.Order.OrderIsoNat import Mathlib.Tactic.TFAE #align_import order.height from "leanprover-community/mathlib"@"bf27744463e9620ca4e4ebe951fe83530ae6949b" open List hiding le_antisymm open OrderDual universe u v variable {α β : Type*} namespace Set section LT varia...
Mathlib/Order/Height.lean
135
138
theorem one_le_chainHeight_iff : 1 ≤ s.chainHeight ↔ s.Nonempty := by
rw [← Nat.cast_one, Set.le_chainHeight_iff] simp only [length_eq_one, @and_comm (_ ∈ _), @eq_comm _ _ [_], exists_exists_eq_and, singleton_mem_subchain_iff, Set.Nonempty]
[ " a :: l ∈ s.subchain ↔ a ∈ s ∧ l ∈ s.subchain ∧ ∀ b ∈ l.head?, a < b", " [a] ∈ s.subchain ↔ a ∈ s", " ∃ l ∈ s.subchain, l.length = n", " n ≤ l.length", " [↑n ≤ s.chainHeight, ∃ l ∈ s.subchain, l.length = n, ∃ l ∈ s.subchain, n ≤ l.length].TFAE", " ↑n ≤ s.chainHeight → ∃ l ∈ s.subchain, l.length = n", "...
[ " a :: l ∈ s.subchain ↔ a ∈ s ∧ l ∈ s.subchain ∧ ∀ b ∈ l.head?, a < b", " [a] ∈ s.subchain ↔ a ∈ s", " ∃ l ∈ s.subchain, l.length = n", " n ≤ l.length", " [↑n ≤ s.chainHeight, ∃ l ∈ s.subchain, l.length = n, ∃ l ∈ s.subchain, n ≤ l.length].TFAE", " ↑n ≤ s.chainHeight → ∃ l ∈ s.subchain, l.length = n", "...
import Mathlib.SetTheory.Cardinal.Finite #align_import data.finite.card from "leanprover-community/mathlib"@"3ff3f2d6a3118b8711063de7111a0d77a53219a8" noncomputable section open scoped Classical variable {α β γ : Type*} def Finite.equivFin (α : Type*) [Finite α] : α ≃ Fin (Nat.card α) := by have := (Finite....
Mathlib/Data/Finite/Card.lean
78
80
theorem card_le_one_iff_subsingleton [Finite α] : Nat.card α ≤ 1 ↔ Subsingleton α := by
haveI := Fintype.ofFinite α simp only [Nat.card_eq_fintype_card, Fintype.card_le_one_iff_subsingleton]
[ " α ≃ Fin (Nat.card α)", " α ≃ Fin n", " Nat.card α = if h : Finite α then Fintype.card α else 0", " 0 < Nat.card α ↔ Nonempty α", " Nat.card α = Nat.card β ↔ Nonempty (α ≃ β)", " Nat.card α ≤ 1 ↔ Subsingleton α" ]
[ " α ≃ Fin (Nat.card α)", " α ≃ Fin n", " Nat.card α = if h : Finite α then Fintype.card α else 0", " 0 < Nat.card α ↔ Nonempty α", " Nat.card α = Nat.card β ↔ Nonempty (α ≃ β)" ]
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
104
107
theorem ascPochhammer_eval_cast (n k : ℕ) : (((ascPochhammer ℕ n).eval k : ℕ) : S) = ((ascPochhammer S n).eval k : S) := by
rw [← ascPochhammer_map (algebraMap ℕ S), eval_map, ← eq_natCast (algebraMap ℕ S), eval₂_at_natCast,Nat.cast_id]
[ " 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.Complex.Circle import Mathlib.Analysis.NormedSpace.BallAction #align_import analysis.complex.unit_disc.basic from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" open Set Function Metric noncomputable section local notation "conj'" => starRingEnd ℂ namespace Co...
Mathlib/Analysis/Complex/UnitDisc/Basic.lean
53
55
theorem normSq_lt_one (z : 𝔻) : normSq z < 1 := by
convert (Real.sqrt_lt' one_pos).1 z.abs_lt_one exact (one_pow 2).symm
[ " CommSemigroup 𝔻", " CommSemigroup ↑(ball 0 1)", " HasDistribNeg 𝔻", " HasDistribNeg ↑(ball 0 1)", " normSq ↑z < 1", " 1 = 1 ^ 2" ]
[ " CommSemigroup 𝔻", " CommSemigroup ↑(ball 0 1)", " HasDistribNeg 𝔻", " HasDistribNeg ↑(ball 0 1)" ]
import Mathlib.MeasureTheory.MeasurableSpace.Basic import Mathlib.Data.Set.MemPartition import Mathlib.Order.Filter.CountableSeparatingOn open Set MeasureTheory namespace MeasurableSpace variable {α β : Type*} class CountablyGenerated (α : Type*) [m : MeasurableSpace α] : Prop where isCountablyGenerated : ∃ b...
Mathlib/MeasureTheory/MeasurableSpace/CountablyGenerated.lean
96
101
theorem CountablyGenerated.comap [m : MeasurableSpace β] [h : CountablyGenerated β] (f : α → β) : @CountablyGenerated α (.comap f m) := by
rcases h with ⟨⟨b, hbc, rfl⟩⟩ rw [comap_generateFrom] letI := generateFrom (preimage f '' b) exact ⟨_, hbc.image _, rfl⟩
[ " MeasurableSet s", " generateFrom (range (natGeneratingSequence α)) = m", " CountablyGenerated α" ]
[ " MeasurableSet s", " generateFrom (range (natGeneratingSequence α)) = m" ]
import Mathlib.Algebra.Algebra.Operations import Mathlib.Algebra.Algebra.Subalgebra.Basic import Mathlib.Algebra.Ring.Subring.Pointwise import Mathlib.RingTheory.Adjoin.Basic #align_import algebra.algebra.subalgebra.pointwise from "leanprover-community/mathlib"@"b2c707cd190a58ea0565c86695a19e99ccecc215" namespace...
Mathlib/Algebra/Algebra/Subalgebra/Pointwise.lean
27
32
theorem mul_toSubmodule_le (S T : Subalgebra R A) : (Subalgebra.toSubmodule S)* (Subalgebra.toSubmodule T) ≤ Subalgebra.toSubmodule (S ⊔ T) := by
rw [Submodule.mul_le] intro y hy z hz show y * z ∈ S ⊔ T exact mul_mem (Algebra.mem_sup_left hy) (Algebra.mem_sup_right hz)
[ " toSubmodule S * toSubmodule T ≤ toSubmodule (S ⊔ T)", " ∀ m ∈ toSubmodule S, ∀ n ∈ toSubmodule T, m * n ∈ toSubmodule (S ⊔ T)", " y * z ∈ toSubmodule (S ⊔ T)", " y * z ∈ S ⊔ T" ]
[]
import Mathlib.MeasureTheory.Function.L1Space import Mathlib.MeasureTheory.Function.SimpleFuncDense #align_import measure_theory.function.simple_func_dense_lp from "leanprover-community/mathlib"@"5a2df4cd59cb31e97a516d4603a14bed5c2f9425" noncomputable section set_option linter.uppercaseLean3 false open Set Func...
Mathlib/MeasureTheory/Function/SimpleFuncDenseLp.lean
85
90
theorem norm_approxOn_zero_le [OpensMeasurableSpace E] {f : β → E} (hf : Measurable f) {s : Set E} (h₀ : (0 : E) ∈ s) [SeparableSpace s] (x : β) (n : ℕ) : ‖approxOn f hf s 0 h₀ n x‖ ≤ ‖f x‖ + ‖f x‖ := by
have := edist_approxOn_y0_le hf h₀ x n simp [edist_comm (0 : E), edist_eq_coe_nnnorm] at this exact mod_cast this
[ " ‖↑(approxOn f hf s y₀ h₀ n) x - f x‖₊ ≤ ‖f x - y₀‖₊", " ‖↑(approxOn f hf s y₀ h₀ n) x - y₀‖ ≤ ‖f x - y₀‖ + ‖f x - y₀‖", " ‖↑(approxOn f hf s 0 h₀ n) x‖ ≤ ‖f x‖ + ‖f x‖" ]
[ " ‖↑(approxOn f hf s y₀ h₀ n) x - f x‖₊ ≤ ‖f x - y₀‖₊", " ‖↑(approxOn f hf s y₀ h₀ n) x - y₀‖ ≤ ‖f x - y₀‖ + ‖f x - y₀‖" ]
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
94
98
theorem gcdB_zero_right {s : ℕ} (h : s ≠ 0) : gcdB s 0 = 0 := by
unfold gcdB xgcd obtain ⟨s, rfl⟩ := Nat.exists_eq_succ_of_ne_zero h rw [xgcdAux] simp
[ " (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, ...