Context
stringlengths
57
6.04k
file_name
stringlengths
21
79
start
int64
14
1.49k
end
int64
18
1.5k
theorem
stringlengths
25
1.55k
proof
stringlengths
5
7.36k
goals
listlengths
0
224
goals_before
listlengths
0
220
import Mathlib.Algebra.MvPolynomial.Variables #align_import data.mv_polynomial.comm_ring from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section open Set Function Finsupp AddMonoidAlgebra universe u v variable {R : Type u} {S : Type v} namespace MvPolynomial varia...
Mathlib/Algebra/MvPolynomial/CommRing.lean
100
102
theorem degrees_sub [DecidableEq σ] (p q : MvPolynomial σ R) : (p - q).degrees ≤ p.degrees ⊔ q.degrees := by
simpa only [sub_eq_add_neg] using le_trans (degrees_add p (-q)) (by rw [degrees_neg])
[ " (-p).degrees = p.degrees", " (p.support.sup fun s => toMultiset s) = p.degrees", " (p - q).degrees ≤ p.degrees ⊔ q.degrees", " p.degrees ⊔ (-q).degrees ≤ p.degrees ⊔ q.degrees" ]
[ " (-p).degrees = p.degrees", " (p.support.sup fun s => toMultiset s) = p.degrees" ]
import Mathlib.Algebra.GroupPower.IterateHom import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Order.Archimedean import Mathlib.Algebra.Order.Group.Instances import Mathlib.GroupTheory.GroupAction.Pi open Function Set structure AddConstMap (G H : Type*) [Add G] [Add H] (a : G) (b : H) where protected...
Mathlib/Algebra/AddConstMap/Basic.lean
107
109
theorem map_nsmul_const [AddMonoid G] [AddMonoid H] [AddConstMapClass F G H a b] (f : F) (n : ℕ) : f (n • a) = f 0 + n • b := by
simpa using map_add_nsmul f 0 n
[ " f (x + n • a) = f x + n • b", " f (x + ↑n) = f x + n • b", " f (x + ↑n) = f x + ↑n", " f a = f 0 + b", " f (n • a) = f 0 + n • b" ]
[ " f (x + n • a) = f x + n • b", " f (x + ↑n) = f x + n • b", " f (x + ↑n) = f x + ↑n", " f a = f 0 + b" ]
import Mathlib.Algebra.Group.NatPowAssoc import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.Induction import Mathlib.Algebra.Polynomial.Eval namespace Polynomial section MulActionWithZero variable {R : Type*} [Semiring R] (r : R) (p : R[X]) {S : Type*} [AddCommMonoid S] [Pow S ℕ] [Mu...
Mathlib/Algebra/Polynomial/Smeval.lean
57
58
theorem smeval_C : (C r).smeval x = r • x ^ 0 := by
simp only [smeval_eq_sum, smul_pow, zero_smul, sum_C_index]
[ " p.smeval x = p.sum (smul_pow x)", " (C r).smeval x = r • x ^ 0" ]
[ " p.smeval x = p.sum (smul_pow x)" ]
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
116
116
theorem ascPochhammer_zero_eval_zero : (ascPochhammer S 0).eval 0 = 1 := by
simp
[ " 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.GroupTheory.Coprod.Basic import Mathlib.GroupTheory.Complement open Monoid Coprod Multiplicative Subgroup Function def HNNExtension.con (G : Type*) [Group G] (A B : Subgroup G) (φ : A ≃* B) : Con (G ∗ Multiplicative ℤ) := conGen (fun x y => ∃ (a : A), x = inr (ofAdd 1) * inl (a : G) ∧ ...
Mathlib/GroupTheory/HNNExtension.lean
69
71
theorem of_mul_t (b : B) : (of (b : G) : HNNExtension G A B φ) * t = t * of (φ.symm b : G) := by
rw [t_mul_of]; simp
[ " Group (HNNExtension G A B φ)", " Group (HNNExtension.con G A B φ).Quotient", " (fun x x_1 => x * x_1) (inr (ofAdd 1)) (inl ↑a) = inr (ofAdd 1) * inl ↑a ∧\n (fun x x_1 => x * x_1) (inl ↑(φ a)) (inr (ofAdd 1)) = inl ↑(φ a) * inr (ofAdd 1)", " of ↑b * t = t * of ↑(φ.symm b)", " of ↑b * t = of ↑(φ (φ.symm ...
[ " Group (HNNExtension G A B φ)", " Group (HNNExtension.con G A B φ).Quotient", " (fun x x_1 => x * x_1) (inr (ofAdd 1)) (inl ↑a) = inr (ofAdd 1) * inl ↑a ∧\n (fun x x_1 => x * x_1) (inl ↑(φ a)) (inr (ofAdd 1)) = inl ↑(φ a) * inr (ofAdd 1)" ]
import Mathlib.Algebra.Order.BigOperators.Ring.Finset import Mathlib.Data.Nat.Totient import Mathlib.GroupTheory.OrderOfElement import Mathlib.GroupTheory.Subgroup.Simple import Mathlib.Tactic.Group import Mathlib.GroupTheory.Exponent #align_import group_theory.specific_groups.cyclic from "leanprover-community/mathli...
Mathlib/GroupTheory/SpecificGroups/Cyclic.lean
145
149
theorem zpowers_eq_top_of_prime_card {G : Type*} [Group G] {_ : Fintype G} {p : ℕ} [hp : Fact p.Prime] (h : Fintype.card G = p) {g : G} (hg : g ≠ 1) : zpowers g = ⊤ := by
subst h have := (zpowers g).eq_bot_or_eq_top_of_prime_card rwa [zpowers_eq_bot, or_iff_right hg] at this
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1", " Nontrivial α", " IsCyclic α", " ∃ m, ∀ (g : G), σ g = g ^ m", " σ g = g ^ m", " σ ((fun x => h ^ x) n) = (fun x => h ^ x) n ^ m", " ∀ (x_1 : α), x_1 ∈ zpowers x", " ↑(zpowers x) = Set.univ", " H = ⊥ ∨ H = ⊤", " zpowers g = ⊤" ]
[ " x ∈ zpowers 1", " 1 ∈ zpowers 1", " Nontrivial α", " IsCyclic α", " ∃ m, ∀ (g : G), σ g = g ^ m", " σ g = g ^ m", " σ ((fun x => h ^ x) n) = (fun x => h ^ x) n ^ m", " ∀ (x_1 : α), x_1 ∈ zpowers x", " ↑(zpowers x) = Set.univ", " H = ⊥ ∨ H = ⊤" ]
import Mathlib.Algebra.DualNumber import Mathlib.Analysis.NormedSpace.TrivSqZeroExt #align_import analysis.normed_space.dual_number from "leanprover-community/mathlib"@"806c0bb86f6128cfa2f702285727518eb5244390" open NormedSpace -- For `NormedSpace.exp`. namespace DualNumber open TrivSqZeroExt variable (𝕜 : Typ...
Mathlib/Analysis/NormedSpace/DualNumber.lean
38
39
theorem exp_smul_eps (r : R) : exp 𝕜 (r • eps : DualNumber R) = 1 + r • eps := by
rw [eps, ← inr_smul, exp_inr]
[ " exp 𝕜 (r • ε) = 1 + r • ε" ]
[]
import Mathlib.ModelTheory.Satisfiability #align_import model_theory.types from "leanprover-community/mathlib"@"98bd247d933fb581ff37244a5998bd33d81dd46d" set_option linter.uppercaseLean3 false universe u v w w' open Cardinal Set open scoped Classical open Cardinal FirstOrder namespace FirstOrder namespace La...
Mathlib/ModelTheory/Types.lean
129
132
theorem setOf_mem_eq_univ_iff (φ : L[[α]].Sentence) : { p : T.CompleteType α | φ ∈ p } = Set.univ ↔ (L.lhomWithConstants α).onTheory T ⊨ᵇ φ := by
rw [models_iff_not_satisfiable, ← compl_empty_iff, compl_setOf_mem, ← setOf_subset_eq_empty_iff] simp
[ " p = q", " { toTheory := toTheory✝, subset' := subset'✝, isMaximal' := isMaximal'✝ } = q", " { toTheory := toTheory✝¹, subset' := subset'✝¹, isMaximal' := isMaximal'✝¹ } =\n { toTheory := toTheory✝, subset' := subset'✝, isMaximal' := isMaximal'✝ }", " False", " ¬{φ, Formula.not φ}.IsSatisfiable", " {φ...
[ " p = q", " { toTheory := toTheory✝, subset' := subset'✝, isMaximal' := isMaximal'✝ } = q", " { toTheory := toTheory✝¹, subset' := subset'✝¹, isMaximal' := isMaximal'✝¹ } =\n { toTheory := toTheory✝, subset' := subset'✝, isMaximal' := isMaximal'✝ }", " False", " ¬{φ, Formula.not φ}.IsSatisfiable", " {φ...
import Mathlib.Algebra.Order.Ring.Defs import Mathlib.Algebra.Ring.Invertible import Mathlib.Data.Nat.Cast.Order #align_import algebra.order.invertible from "leanprover-community/mathlib"@"ee0c179cd3c8a45aa5bffbf1b41d8dbede452865" variable {α : Type*} [LinearOrderedSemiring α] {a : α} @[simp] theorem invOf_pos [I...
Mathlib/Algebra/Order/Invertible.lean
35
35
theorem invOf_lt_zero [Invertible a] : ⅟ a < 0 ↔ a < 0 := by
simp only [← not_le, invOf_nonneg]
[ " 0 < a * ⅟a", " ⅟a ≤ 0 ↔ a ≤ 0", " ⅟a < 0 ↔ a < 0" ]
[ " 0 < a * ⅟a", " ⅟a ≤ 0 ↔ a ≤ 0" ]
import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Order.AbsoluteValue import Mathlib.Data.Int.Cast.Lemmas import Mathlib.GroupTheory.GroupAction.Units #align_import data.int.absolute_value from "leanprover-community/mathlib"@"9aba7801eeecebb61f58a5763c2b6dd1b47dc6ef" variable {R S : Type*} [Ring R] [Linea...
Mathlib/Data/Int/AbsoluteValue.lean
28
29
theorem AbsoluteValue.map_units_int (abv : AbsoluteValue ℤ S) (x : ℤˣ) : abv x = 1 := by
rcases Int.units_eq_one_or x with (rfl | rfl) <;> simp
[ " abv ↑x = 1", " abv ↑1 = 1", " abv ↑(-1) = 1" ]
[]
import Mathlib.Algebra.BigOperators.Ring import Mathlib.Data.Fintype.Basic import Mathlib.Data.Int.GCD import Mathlib.RingTheory.Coprime.Basic #align_import ring_theory.coprime.lemmas from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" universe u v section RelPrime variable {α I} [Comm...
Mathlib/RingTheory/Coprime/Lemmas.lean
245
248
theorem IsRelPrime.prod_left_iff : IsRelPrime (∏ i ∈ t, s i) x ↔ ∀ i ∈ t, IsRelPrime (s i) x := by
classical refine Finset.induction_on t (iff_of_true isRelPrime_one_left fun _ ↦ by simp) fun b t hbt ih ↦ ?_ rw [Finset.prod_insert hbt, IsRelPrime.mul_left_iff, ih, Finset.forall_mem_insert]
[ " (∀ i ∈ t, IsRelPrime (s i) x) → IsRelPrime (∏ i ∈ t, s i) x", " IsRelPrime (∏ i ∈ insert b t, s i) x", " IsRelPrime (s b * ∏ x ∈ t, s x) x", " (∀ i ∈ t, IsRelPrime x (s i)) → IsRelPrime x (∏ i ∈ t, s i)", " IsRelPrime (∏ i ∈ t, s i) x ↔ ∀ i ∈ t, IsRelPrime (s i) x", " x✝ ∈ ∅ → IsRelPrime (s x✝) x", " ...
[ " (∀ i ∈ t, IsRelPrime (s i) x) → IsRelPrime (∏ i ∈ t, s i) x", " IsRelPrime (∏ i ∈ insert b t, s i) x", " IsRelPrime (s b * ∏ x ∈ t, s x) x", " (∀ i ∈ t, IsRelPrime x (s i)) → IsRelPrime x (∏ i ∈ t, s i)" ]
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Mul import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.deriv.mul from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w noncomputable section open scoped Classical...
Mathlib/Analysis/Calculus/Deriv/Mul.lean
92
95
theorem HasDerivAt.smul (hc : HasDerivAt c c' x) (hf : HasDerivAt f f' x) : HasDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x := by
rw [← hasDerivWithinAt_univ] at * exact hc.smul hf
[ " HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) s x", " HasDerivAt (fun y => c y • f y) (c x • f' + c' • f x) x", " HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) univ x" ]
[ " HasDerivWithinAt (fun y => c y • f y) (c x • f' + c' • f x) s x" ]
import Mathlib.Order.Filter.Lift import Mathlib.Topology.Defs.Filter #align_import topology.basic from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" noncomputable section open Set Filter universe u v w x def TopologicalSpace.ofClosed {X : Type u} (T : Set (Set X)) (empty_mem : ∅ ∈...
Mathlib/Topology/Basic.lean
115
116
theorem IsOpen.union (h₁ : IsOpen s₁) (h₂ : IsOpen s₂) : IsOpen (s₁ ∪ s₂) := by
rw [union_eq_iUnion]; exact isOpen_iUnion (Bool.forall_bool.2 ⟨h₂, h₁⟩)
[ " (fun X_1 => X_1ᶜ ∈ T) univ", " (fun X_1 => X_1ᶜ ∈ T) (s ∩ t)", " (fun X_1 => X_1ᶜ ∈ T) (⋃₀ s)", " ⋂₀ (compl '' s) ∈ T", " t = t'", " IsOpen x✝ ↔ IsOpen x✝", " IsOpen (s₁ ∪ s₂)", " IsOpen (⋃ b, bif b then s₁ else s₂)" ]
[ " (fun X_1 => X_1ᶜ ∈ T) univ", " (fun X_1 => X_1ᶜ ∈ T) (s ∩ t)", " (fun X_1 => X_1ᶜ ∈ T) (⋃₀ s)", " ⋂₀ (compl '' s) ∈ T", " t = t'", " IsOpen x✝ ↔ IsOpen x✝" ]
import Mathlib.MeasureTheory.Measure.MeasureSpaceDef #align_import measure_theory.measure.ae_disjoint from "leanprover-community/mathlib"@"bc7d81beddb3d6c66f71449c5bc76c38cb77cf9e" open Set Function namespace MeasureTheory variable {ι α : Type*} {m : MeasurableSpace α} (μ : Measure α) def AEDisjoint (s t : Se...
Mathlib/MeasureTheory/Measure/AEDisjoint.lean
94
96
theorem iUnion_left_iff [Countable ι] {s : ι → Set α} : AEDisjoint μ (⋃ i, s i) t ↔ ∀ i, AEDisjoint μ (s i) t := by
simp only [AEDisjoint, iUnion_inter, measure_iUnion_null_iff]
[ " ∃ t, (∀ (i : ι), MeasurableSet (t i)) ∧ (∀ (i : ι), μ (t i) = 0) ∧ Pairwise (Disjoint on fun i => s i \\ t i)", " μ ((fun i => toMeasurable μ (s i ∩ ⋃ j ∈ {i}ᶜ, s j)) i) = 0", " μ (⋃ i_1 ∈ {i}ᶜ, s i ∩ s i_1) = 0", " Pairwise (Disjoint on fun i => s i \\ (fun i => toMeasurable μ (s i ∩ ⋃ j ∈ {i}ᶜ, s j)) i)",...
[ " ∃ t, (∀ (i : ι), MeasurableSet (t i)) ∧ (∀ (i : ι), μ (t i) = 0) ∧ Pairwise (Disjoint on fun i => s i \\ t i)", " μ ((fun i => toMeasurable μ (s i ∩ ⋃ j ∈ {i}ᶜ, s j)) i) = 0", " μ (⋃ i_1 ∈ {i}ᶜ, s i ∩ s i_1) = 0", " Pairwise (Disjoint on fun i => s i \\ (fun i => toMeasurable μ (s i ∩ ⋃ j ∈ {i}ᶜ, s j)) i)",...
import Mathlib.Analysis.NormedSpace.PiTensorProduct.ProjectiveSeminorm import Mathlib.LinearAlgebra.Isomorphisms universe uι u𝕜 uE uF variable {ι : Type uι} [Fintype ι] variable {𝕜 : Type u𝕜} [NontriviallyNormedField 𝕜] variable {E : ι → Type uE} [∀ i, SeminormedAddCommGroup (E i)] [∀ i, NormedSpace 𝕜 (E i)] ...
Mathlib/Analysis/NormedSpace/PiTensorProduct/InjectiveSeminorm.lean
116
119
theorem toDualContinuousMultilinearMap_le_projectiveSeminorm (x : ⨂[𝕜] i, E i) : ‖toDualContinuousMultilinearMap F x‖ ≤ projectiveSeminorm x := by
simp only [toDualContinuousMultilinearMap, LinearMap.coe_mk, AddHom.coe_mk] apply LinearMap.mkContinuous_norm_le _ (apply_nonneg _ _)
[ " ‖((↑lift).flip x ∘ₗ ContinuousMultilinearMap.toMultilinearMapLinear) x✝‖ ≤ projectiveSeminorm x * ‖x✝‖", " ‖(lift x✝.toMultilinearMap) x‖ ≤ projectiveSeminorm x * ‖x✝‖", " (fun x => ((↑lift).flip x ∘ₗ ContinuousMultilinearMap.toMultilinearMapLinear).mkContinuous (projectiveSeminorm x) ⋯)\n (x + y) =\n ...
[ " ‖((↑lift).flip x ∘ₗ ContinuousMultilinearMap.toMultilinearMapLinear) x✝‖ ≤ projectiveSeminorm x * ‖x✝‖", " ‖(lift x✝.toMultilinearMap) x‖ ≤ projectiveSeminorm x * ‖x✝‖", " (fun x => ((↑lift).flip x ∘ₗ ContinuousMultilinearMap.toMultilinearMapLinear).mkContinuous (projectiveSeminorm x) ⋯)\n (x + y) =\n ...
import Mathlib.LinearAlgebra.Basis import Mathlib.LinearAlgebra.Multilinear.Basic #align_import linear_algebra.multilinear.basis from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" open MultilinearMap variable {R : Type*} {ι : Type*} {n : ℕ} {M : Fin n → Type*} {M₂ : Type*} {M₃ : Type*...
Mathlib/LinearAlgebra/Multilinear/Basis.lean
32
49
theorem Basis.ext_multilinear_fin {f g : MultilinearMap R M M₂} {ι₁ : Fin n → Type*} (e : ∀ i, Basis (ι₁ i) R (M i)) (h : ∀ v : ∀ i, ι₁ i, (f fun i => e i (v i)) = g fun i => e i (v i)) : f = g := by
induction' n with m hm · ext x convert h finZeroElim · apply Function.LeftInverse.injective uncurry_curryLeft refine Basis.ext (e 0) ?_ intro i apply hm (Fin.tail e) intro j convert h (Fin.cons i j) iterate 2 rw [curryLeft_apply] congr 1 with x refine Fin.cases rfl (...
[ " f = g", " f x = g x", " (fun x => x.curryLeft) f = (fun x => x.curryLeft) g", " ∀ (i : ι₁ 0), ((fun x => x.curryLeft) f) ((e 0) i) = ((fun x => x.curryLeft) g) ((e 0) i)", " ((fun x => x.curryLeft) f) ((e 0) i) = ((fun x => x.curryLeft) g) ((e 0) i)", " ∀ (v : (i : Fin m) → ι₁ i.succ),\n ((((fun x =>...
[]
import Mathlib.Analysis.Complex.Basic import Mathlib.Topology.FiberBundle.IsHomeomorphicTrivialBundle #align_import analysis.complex.re_im_topology from "leanprover-community/mathlib"@"468b141b14016d54b479eb7a0fff1e360b7e3cf6" open Set noncomputable section namespace Complex theorem isHomeomorphicTrivialFiber...
Mathlib/Analysis/Complex/ReImTopology.lean
94
95
theorem interior_setOf_re_le (a : ℝ) : interior { z : ℂ | z.re ≤ a } = { z | z.re < a } := by
simpa only [interior_Iic] using interior_preimage_re (Iic a)
[ " interior {z | z.re ≤ a} = {z | z.re < a}" ]
[]
import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Order.Group.Basic import Mathlib.Algebra.Order.Group.OrderIso import Mathlib.Algebra.Order.Ring.Defs import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Order.Interval.Set.Basic import Mathlib.Logic.Pairwise #align_import data.set.intervals.group from "lean...
Mathlib/Algebra/Order/Interval/Set/Group.lean
212
214
theorem pairwise_disjoint_Ioc_zpow : Pairwise (Disjoint on fun n : ℤ => Ioc (b ^ n) (b ^ (n + 1))) := by
simpa only [one_mul] using pairwise_disjoint_Ioc_mul_zpow 1 b
[ " Pairwise (Disjoint on fun n => Ioc (a * b ^ n) (a * b ^ (n + 1)))", " Pairwise fun x y => Disjoint (Ioc (a * b ^ x) (a * b ^ (x + 1))) (Ioc (a * b ^ y) (a * b ^ (y + 1)))", " Pairwise fun x y => Ioc (a * b ^ x) (a * b ^ (x + 1)) ∩ Ioc (a * b ^ y) (a * b ^ (y + 1)) ⊆ ∅", " x ∈ ∅", " m = n", " 1 < b", "...
[ " Pairwise (Disjoint on fun n => Ioc (a * b ^ n) (a * b ^ (n + 1)))", " Pairwise fun x y => Disjoint (Ioc (a * b ^ x) (a * b ^ (x + 1))) (Ioc (a * b ^ y) (a * b ^ (y + 1)))", " Pairwise fun x y => Ioc (a * b ^ x) (a * b ^ (x + 1)) ∩ Ioc (a * b ^ y) (a * b ^ (y + 1)) ⊆ ∅", " x ∈ ∅", " m = n", " 1 < b", "...
import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Complex.Circle import Mathlib.Analysis.InnerProductSpace.l2Space import Mathlib.MeasureTheory.Function.ContinuousMapDense import Mathlib.MeasureTheory.Function.L2Space import Mathlib.MeasureTheory.Group.Integral import Mathlib.M...
Mathlib/Analysis/Fourier/AddCircle.lean
176
180
theorem fourier_norm [Fact (0 < T)] (n : ℤ) : ‖@fourier T n‖ = 1 := by
rw [ContinuousMap.norm_eq_iSup_norm] have : ∀ x : AddCircle T, ‖fourier n x‖ = 1 := fun x => abs_coe_circle _ simp_rw [this] exact @ciSup_const _ _ _ Zero.instNonempty _
[ " (fourier n) ↑x = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (↑2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " 2 * ↑π / ↑T * (↑n * ↑x) * Complex.I = 2 * ↑π * Complex.I * ↑n * ↑x / ↑...
[ " (fourier n) ↑x = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (↑2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " (2 * ↑π / ↑T * (↑n * ↑x) * Complex.I).exp = (2 * ↑π * Complex.I * ↑n * ↑x / ↑T).exp", " 2 * ↑π / ↑T * (↑n * ↑x) * Complex.I = 2 * ↑π * Complex.I * ↑n * ↑x / ↑...
import Mathlib.GroupTheory.FreeGroup.Basic import Mathlib.GroupTheory.QuotientGroup #align_import group_theory.presented_group from "leanprover-community/mathlib"@"d90e4e186f1d18e375dcd4e5b5f6364b01cb3e46" variable {α : Type*} def PresentedGroup (rels : Set (FreeGroup α)) := FreeGroup α ⧸ Subgroup.normalClosu...
Mathlib/GroupTheory/PresentedGroup.lean
53
58
theorem closure_range_of (rels : Set (FreeGroup α)) : Subgroup.closure (Set.range (PresentedGroup.of : α → PresentedGroup rels)) = ⊤ := by
have : (PresentedGroup.of : α → PresentedGroup rels) = QuotientGroup.mk' _ ∘ FreeGroup.of := rfl rw [this, Set.range_comp, ← MonoidHom.map_closure (QuotientGroup.mk' _), FreeGroup.closure_range_of, ← MonoidHom.range_eq_map] exact MonoidHom.range_top_of_surjective _ (QuotientGroup.mk'_surjective _)
[ " Subgroup.closure (Set.range of) = ⊤", " (QuotientGroup.mk' (Subgroup.normalClosure rels)).range = ⊤" ]
[]
import Mathlib.Data.List.Duplicate import Mathlib.Data.List.Sort #align_import data.list.nodup_equiv_fin from "leanprover-community/mathlib"@"008205aa645b3f194c1da47025c5f110c8406eab" namespace List variable {α : Type*} section Sublist theorem sublist_of_orderEmbedding_get?_eq {l l' : List α} (f : ℕ ↪o ℕ) ...
Mathlib/Data/List/NodupEquivFin.lean
211
232
theorem duplicate_iff_exists_distinct_get {l : List α} {x : α} : l.Duplicate x ↔ ∃ (n m : Fin l.length) (_ : n < m), x = l.get n ∧ x = l.get m := by
classical rw [duplicate_iff_two_le_count, le_count_iff_replicate_sublist, sublist_iff_exists_fin_orderEmbedding_get_eq] constructor · rintro ⟨f, hf⟩ refine ⟨f ⟨0, by simp⟩, f ⟨1, by simp⟩, f.lt_iff_lt.2 (Nat.zero_lt_one), ?_⟩ rw [← hf, ← hf]; simp · rintro ⟨n, m, hnm, h, h'⟩ r...
[ " l <+ l'", " [] <+ l'", " hd :: tl <+ l'", " (fun i => f (i + 1) - (f 0 + 1)) a ≤ (fun i => f (i + 1) - (f 0 + 1)) b ↔ a ≤ b", " f (a + 1) - (f 0 + 1) ≤ f (b + 1) - (f 0 + 1) ↔ a ≤ b", " f 0 + 1 ≤ f (b + 1)", " 0 < b + 1", " ∀ (ix : ℕ), tl.get? ix = (drop (f 0 + 1) l').get? (f' ix)", " tl.get? ix =...
[ " l <+ l'", " [] <+ l'", " hd :: tl <+ l'", " (fun i => f (i + 1) - (f 0 + 1)) a ≤ (fun i => f (i + 1) - (f 0 + 1)) b ↔ a ≤ b", " f (a + 1) - (f 0 + 1) ≤ f (b + 1) - (f 0 + 1) ↔ a ≤ b", " f 0 + 1 ≤ f (b + 1)", " 0 < b + 1", " ∀ (ix : ℕ), tl.get? ix = (drop (f 0 + 1) l').get? (f' ix)", " tl.get? ix =...
import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.Sym.Sym2 namespace List variable {α : Type*} section Sym2 protected def sym2 : List α → List (Sym2 α) | [] => [] | x :: xs => (x :: xs).map (fun y => s(x, y)) ++ xs.sym2
Mathlib/Data/List/Sym.lean
40
43
theorem mem_sym2_cons_iff {x : α} {xs : List α} {z : Sym2 α} : z ∈ (x :: xs).sym2 ↔ z = s(x, x) ∨ (∃ y, y ∈ xs ∧ z = s(x, y)) ∨ z ∈ xs.sym2 := by
simp only [List.sym2, map_cons, cons_append, mem_cons, mem_append, mem_map] simp only [eq_comm]
[ " z ∈ (x :: xs).sym2 ↔ z = s(x, x) ∨ (∃ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2", " z = s(x, x) ∨ (∃ a ∈ xs, s(x, a) = z) ∨ z ∈ xs.sym2 ↔ z = s(x, x) ∨ (∃ y ∈ xs, z = s(x, y)) ∨ z ∈ xs.sym2" ]
[]
import Mathlib.Data.Fintype.Card import Mathlib.Computability.Language import Mathlib.Tactic.NormNum #align_import computability.DFA from "leanprover-community/mathlib"@"32253a1a1071173b33dc7d6a218cf722c6feb514" open Computability universe u v -- Porting note: Required as `DFA` is used in mathlib3 set_option li...
Mathlib/Computability/DFA.lean
151
166
theorem pumping_lemma [Fintype σ] {x : List α} (hx : x ∈ M.accepts) (hlen : Fintype.card σ ≤ List.length x) : ∃ a b c, x = a ++ b ++ c ∧ a.length + b.length ≤ Fintype.card σ ∧ b ≠ [] ∧ {a} * {b}∗ * {c} ≤ M.accepts := by
obtain ⟨_, a, b, c, hx, hlen, hnil, rfl, hb, hc⟩ := M.evalFrom_split (s := M.start) hlen rfl use a, b, c, hx, hlen, hnil intro y hy rw [Language.mem_mul] at hy rcases hy with ⟨ab, hab, c', hc', rfl⟩ rw [Language.mem_mul] at hab rcases hab with ⟨a', ha', b', hb', rfl⟩ rw [Set.mem_singleton_iff] at ha' h...
[ " M.evalFrom s (x ++ [a]) = M.step (M.evalFrom s x) a", " x ∈ M.accepts ↔ M.evalFrom M.start x ∈ M.accept", " ∃ q a b c,\n x = a ++ b ++ c ∧\n a.length + b.length ≤ Fintype.card σ ∧ b ≠ [] ∧ M.evalFrom s a = q ∧ M.evalFrom q b = q ∧ M.evalFrom q c = t", " Fintype.card σ < Fintype.card (Fin (Fintype.ca...
[ " M.evalFrom s (x ++ [a]) = M.step (M.evalFrom s x) a", " x ∈ M.accepts ↔ M.evalFrom M.start x ∈ M.accept", " ∃ q a b c,\n x = a ++ b ++ c ∧\n a.length + b.length ≤ Fintype.card σ ∧ b ≠ [] ∧ M.evalFrom s a = q ∧ M.evalFrom q b = q ∧ M.evalFrom q c = t", " Fintype.card σ < Fintype.card (Fin (Fintype.ca...
import Mathlib.MeasureTheory.Integral.Lebesgue #align_import measure_theory.measure.giry_monad from "leanprover-community/mathlib"@"56f4cd1ef396e9fd389b5d8371ee9ad91d163625" noncomputable section open scoped Classical open ENNReal open scoped Classical open Set Filter variable {α β : Type*} namespace MeasureT...
Mathlib/MeasureTheory/Measure/GiryMonad.lean
78
82
theorem measurable_map (f : α → β) (hf : Measurable f) : Measurable fun μ : Measure α => map f μ := by
refine measurable_of_measurable_coe _ fun s hs => ?_ simp_rw [map_apply hf hs] exact measurable_coe (hf hs)
[ " borel ℝ≥0∞ ≤ MeasurableSpace.map (fun μ => μ s) (MeasurableSpace.map f inst✝)", " borel ℝ≥0∞ ≤ MeasurableSpace.map ((fun μ => μ s) ∘ f) inst✝", " MeasurableAdd₂ (Measure α)", " Measurable fun b => (b.1 + b.2) s", " Measurable fun b => b.1 s + b.2 s", " Measurable fun b => b.1 s", " Measurable fun b =>...
[ " borel ℝ≥0∞ ≤ MeasurableSpace.map (fun μ => μ s) (MeasurableSpace.map f inst✝)", " borel ℝ≥0∞ ≤ MeasurableSpace.map ((fun μ => μ s) ∘ f) inst✝", " MeasurableAdd₂ (Measure α)", " Measurable fun b => (b.1 + b.2) s", " Measurable fun b => b.1 s + b.2 s", " Measurable fun b => b.1 s", " Measurable fun b =>...
import Mathlib.Algebra.Algebra.RestrictScalars import Mathlib.Analysis.NormedSpace.OperatorNorm.Basic import Mathlib.Analysis.RCLike.Basic #align_import analysis.normed_space.extend from "leanprover-community/mathlib"@"3f655f5297b030a87d641ad4e825af8d9679eb0b" open RCLike open ComplexConjugate variable {𝕜 : Ty...
Mathlib/Analysis/NormedSpace/Extend.lean
88
90
theorem extendTo𝕜'_apply_re (fr : F →ₗ[ℝ] ℝ) (x : F) : re (fr.extendTo𝕜' x : 𝕜) = fr x := by
simp only [extendTo𝕜'_apply, map_sub, zero_mul, mul_zero, sub_zero, rclike_simps]
[ " F →ₗ[𝕜] 𝕜", " ∀ (x y : F), fc (x + y) = fc x + fc y", " fc (x + y) = fc x + fc y", " ↑(fr x) + ↑(fr y) - I * (↑(fr (I • x)) + ↑(fr (I • y))) = ↑(fr x) - I * ↑(fr (I • x)) + (↑(fr y) - I * ↑(fr (I • y)))", " ↑(fr x) + ↑(fr y) - (I * ↑(fr (I • x)) + I * ↑(fr (I • y))) =\n ↑(fr x) - I * ↑(fr (I • x)) + ...
[ " F →ₗ[𝕜] 𝕜", " ∀ (x y : F), fc (x + y) = fc x + fc y", " fc (x + y) = fc x + fc y", " ↑(fr x) + ↑(fr y) - I * (↑(fr (I • x)) + ↑(fr (I • y))) = ↑(fr x) - I * ↑(fr (I • x)) + (↑(fr y) - I * ↑(fr (I • y)))", " ↑(fr x) + ↑(fr y) - (I * ↑(fr (I • x)) + I * ↑(fr (I • y))) =\n ↑(fr x) - I * ↑(fr (I • x)) + ...
import Mathlib.LinearAlgebra.QuadraticForm.TensorProduct import Mathlib.LinearAlgebra.QuadraticForm.IsometryEquiv suppress_compilation universe uR uM₁ uM₂ uM₃ uM₄ variable {R : Type uR} {M₁ : Type uM₁} {M₂ : Type uM₂} {M₃ : Type uM₃} {M₄ : Type uM₄} open scoped TensorProduct namespace QuadraticForm variable [Co...
Mathlib/LinearAlgebra/QuadraticForm/TensorProduct/Isometries.lean
37
46
theorem tmul_comp_tensorMap {Q₁ : QuadraticForm R M₁} {Q₂ : QuadraticForm R M₂} {Q₃ : QuadraticForm R M₃} {Q₄ : QuadraticForm R M₄} (f : Q₁ →qᵢ Q₂) (g : Q₃ →qᵢ Q₄) : (Q₂.tmul Q₄).comp (TensorProduct.map f.toLinearMap g.toLinearMap) = Q₁.tmul Q₃ := by
have h₁ : Q₁ = Q₂.comp f.toLinearMap := QuadraticForm.ext fun x => (f.map_app x).symm have h₃ : Q₃ = Q₄.comp g.toLinearMap := QuadraticForm.ext fun x => (g.map_app x).symm refine (QuadraticForm.associated_rightInverse R).injective ?_ ext m₁ m₃ m₁' m₃' simp [-associated_apply, h₁, h₃, associated_tmul]
[ " (Q₂.tmul Q₄).comp (TensorProduct.map f.toLinearMap g.toLinearMap) = Q₁.tmul Q₃", " (associatedHom R) ((Q₂.tmul Q₄).comp (TensorProduct.map f.toLinearMap g.toLinearMap)) = (associatedHom R) (Q₁.tmul Q₃)", " ((TensorProduct.AlgebraTensorModule.curry\n (((TensorProduct.AlgebraTensorModule.curry\n ...
[]
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
73
77
theorem ContinuousMap.exists_extension (f : C(X₁, Y)) : ∃ (g : C(X, Y)), g.comp ⟨e, he.continuous⟩ = f := by
let e' : X₁ ≃ₜ Set.range e := Homeomorph.ofEmbedding _ he.toEmbedding obtain ⟨g, hg⟩ := (f.comp e'.symm).exists_restrict_eq he.isClosed_range exact ⟨g, by ext x; simpa using congr($(hg) ⟨e' x, x, rfl⟩)⟩
[ " ∃ g, g.comp { toFun := e, continuous_toFun := ⋯ } = f", " g.comp { toFun := e, continuous_toFun := ⋯ } = f", " (g.comp { toFun := e, continuous_toFun := ⋯ }) x = f x" ]
[]
import Mathlib.Algebra.Group.Support import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Nat.Cast.Field #align_import algebra.char_zero.lemmas from "leanprover-community/mathlib"@"acee671f47b8e7972a1eb6f4eed74b4b3abce829" open Function Set section AddMonoidWithOne variable {α M : Type*} [AddMonoidWith...
Mathlib/Algebra/CharZero/Lemmas.lean
166
168
theorem one_eq_bit1 {a : R} : 1 = bit1 a ↔ a = 0 := by
rw [eq_comm] exact bit1_eq_one
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0", " 1 = bit1 a ↔ a = 0" ]
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0" ]
import Mathlib.Algebra.Order.Ring.Cast import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Data.Nat.Bitwise import Mathlib.Data.Nat.PSub import Mathlib.Data.Nat.Size import Mathlib.Data.Num.Bitwise #align_import data.num.lemmas from "leanprover-community/mathlib"@"2196ab363eb097c008d4497125e0dde23fb36db2" set_opti...
Mathlib/Data/Num/Lemmas.lean
81
81
theorem one_add (n : PosNum) : 1 + n = succ n := by
cases n <;> rfl
[ " ↑↑n = ↑n", " ↑p + 1 + ↑p + 1 = ↑p + ↑p + 1 + 1", " 1 + n = n.succ", " 1 + one = one.succ", " 1 + a✝.bit1 = a✝.bit1.succ", " 1 + a✝.bit0 = a✝.bit0.succ" ]
[ " ↑↑n = ↑n", " ↑p + 1 + ↑p + 1 = ↑p + ↑p + 1 + 1" ]
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
145
160
theorem hasFDerivAt_stereoInvFunAux (v : E) : HasFDerivAt (stereoInvFunAux v) (ContinuousLinearMap.id ℝ E) 0 := by
have h₀ : HasFDerivAt (fun w : E => ‖w‖ ^ 2) (0 : E →L[ℝ] ℝ) 0 := by convert (hasStrictFDerivAt_norm_sq (0 : E)).hasFDerivAt simp have h₁ : HasFDerivAt (fun w : E => (‖w‖ ^ 2 + 4)⁻¹) (0 : E →L[ℝ] ℝ) 0 := by convert (hasFDerivAt_inv _).comp _ (h₀.add (hasFDerivAt_const 4 0)) <;> simp have h₂ : HasFDer...
[ " ContDiffOn ℝ ⊤ (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}", " ContDiffOn ℝ ⊤ (fun x => 2 / (1 - ((innerSL ℝ) v) x)) {x | ((innerSL ℝ) v) x ≠ 1}", " ContDiffOn ℝ ⊤ (fun x => 1 - ((innerSL ℝ) v) x) {x | ((innerSL ℝ) v) x ≠ 1}", " ∀ x ∈ {x | ((innerSL ℝ) v) x ≠ 1}, 1 - ((innerSL ℝ) v) x ≠ 0", " False", " ...
[ " ContDiffOn ℝ ⊤ (stereoToFun v) {x | ((innerSL ℝ) v) x ≠ 1}", " ContDiffOn ℝ ⊤ (fun x => 2 / (1 - ((innerSL ℝ) v) x)) {x | ((innerSL ℝ) v) x ≠ 1}", " ContDiffOn ℝ ⊤ (fun x => 1 - ((innerSL ℝ) v) x) {x | ((innerSL ℝ) v) x ≠ 1}", " ∀ x ∈ {x | ((innerSL ℝ) v) x ≠ 1}, 1 - ((innerSL ℝ) v) x ≠ 0", " False", " ...
import Mathlib.AlgebraicGeometry.AffineScheme import Mathlib.AlgebraicGeometry.Pullbacks import Mathlib.CategoryTheory.MorphismProperty.Limits import Mathlib.Data.List.TFAE #align_import algebraic_geometry.morphisms.basic from "leanprover-community/mathlib"@"434e2fd21c1900747afc6d13d8be7f4eedba7218" set_option lin...
Mathlib/AlgebraicGeometry/Morphisms/Basic.lean
131
141
theorem targetAffineLocally_respectsIso {P : AffineTargetMorphismProperty} (hP : P.toProperty.RespectsIso) : (targetAffineLocally P).RespectsIso := by
constructor · introv H U rw [morphismRestrict_comp, affine_cancel_left_isIso hP] exact H U · introv H rintro ⟨U, hU : IsAffineOpen U⟩; dsimp haveI : IsAffine _ := hU.map_isIso e.hom rw [morphismRestrict_comp, affine_cancel_right_isIso hP] exact H ⟨(Opens.map e.hom.val.base).obj U, hU.map_...
[ " P.toProperty f ↔ P f", " (∃ (h : IsAffine Y), P f) ↔ P f", " P (f ≫ g) ↔ P g", " P (f ≫ g) ↔ P f", " P.toProperty.RespectsIso", " ∀ {X Y Z : Scheme} (e : X ≅ Y) (f : Y ⟶ Z), P.toProperty f → P.toProperty (e.hom ≫ f)", " P.toProperty (e.hom ≫ f)", " ∀ {X Y Z : Scheme} (e : Y ≅ Z) (f : X ⟶ Y), P.toPro...
[ " P.toProperty f ↔ P f", " (∃ (h : IsAffine Y), P f) ↔ P f", " P (f ≫ g) ↔ P g", " P (f ≫ g) ↔ P f", " P.toProperty.RespectsIso", " ∀ {X Y Z : Scheme} (e : X ≅ Y) (f : Y ⟶ Z), P.toProperty f → P.toProperty (e.hom ≫ f)", " P.toProperty (e.hom ≫ f)", " ∀ {X Y Z : Scheme} (e : Y ≅ Z) (f : X ⟶ Y), P.toPro...
import Mathlib.Algebra.Polynomial.Reverse import Mathlib.Algebra.Regular.SMul #align_import data.polynomial.monic from "leanprover-community/mathlib"@"cbdf7b565832144d024caa5a550117c6df0204a5" noncomputable section open Finset open Polynomial namespace Polynomial universe u v y variable {R : Type u} {S : Typ...
Mathlib/Algebra/Polynomial/Monic.lean
65
73
theorem Monic.map [Semiring S] (f : R →+* S) (hp : Monic p) : Monic (p.map f) := by
unfold Monic nontriviality have : f p.leadingCoeff ≠ 0 := by rw [show _ = _ from hp, f.map_one] exact one_ne_zero rw [Polynomial.leadingCoeff, coeff_map] suffices p.coeff (p.map f).natDegree = 1 by simp [this] rwa [natDegree_eq_of_degree_eq (degree_map_eq_of_leadingCoeff_ne_zero f this)]
[ " Subsingleton R → (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " p = X ^ p.natDegree + ∑ i ∈ range p.natDegree, C (p.coeff i) * X ^ i", "R : Type u S : Type v a b : R m n : ℕ ι : Type y inst✝ : Semiring R p q r : R[X] hp : p.Monic | p", " C (p.coeff p.natD...
[ " Subsingleton R → (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " p = X ^ p.natDegree + ∑ i ∈ range p.natDegree, C (p.coeff i) * X ^ i", "R : Type u S : Type v a b : R m n : ℕ ι : Type y inst✝ : Semiring R p q r : R[X] hp : p.Monic | p", " C (p.coeff p.natD...
import Mathlib.CategoryTheory.Limits.Preserves.Basic #align_import category_theory.limits.preserves.limits from "leanprover-community/mathlib"@"e97cf15cd1aec9bd5c193b2ffac5a6dc9118912b" universe w' w v₁ v₂ u₁ u₂ noncomputable section namespace CategoryTheory open Category Limits variable {C : Type u₁} [Catego...
Mathlib/CategoryTheory/Limits/Preserves/Limits.lean
142
146
theorem preservesColimitsIso_inv_comp_desc (t : Cocone F) : (preservesColimitIso G F).inv ≫ G.map (colimit.desc _ t) = colimit.desc _ (G.mapCocone t) := by
ext simp [← G.map_comp]
[ " ∀ (j : J), G.map (t.lift c₂) ≫ (G.mapCone c₁).π.app j = (G.mapCone c₂).π.app j", " G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom = limit.lift (F ⋙ G) (G.mapCone t)", " (G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom) ≫ limit.π (F ⋙ G) j✝ =\n limit.lift (F ⋙ G) (G.mapCone t) ≫ limit.π (F ⋙ G) j...
[ " ∀ (j : J), G.map (t.lift c₂) ≫ (G.mapCone c₁).π.app j = (G.mapCone c₂).π.app j", " G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom = limit.lift (F ⋙ G) (G.mapCone t)", " (G.map (limit.lift F t) ≫ (preservesLimitIso G F).hom) ≫ limit.π (F ⋙ G) j✝ =\n limit.lift (F ⋙ G) (G.mapCone t) ≫ limit.π (F ⋙ G) j...
import Mathlib.RingTheory.RingHomProperties import Mathlib.RingTheory.IntegralClosure #align_import ring_theory.ring_hom.integral from "leanprover-community/mathlib"@"a7c017d750512a352b623b1824d75da5998457d0" namespace RingHom open scoped TensorProduct open TensorProduct Algebra.TensorProduct
Mathlib/RingTheory/RingHom/Integral.lean
24
25
theorem isIntegral_stableUnderComposition : StableUnderComposition fun f => f.IsIntegral := by
introv R hf hg; exact hf.trans _ _ hg
[ " StableUnderComposition fun {R S} [CommRing R] [CommRing S] f => f.IsIntegral", " (g.comp f).IsIntegral" ]
[]
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
613
615
theorem frobenius_norm_row (v : m → α) : ‖row v‖ = ‖(WithLp.equiv 2 _).symm v‖ := by
rw [frobenius_norm_def, Fintype.sum_unique, PiLp.norm_eq_of_L2, Real.sqrt_eq_rpow] simp only [row_apply, Real.rpow_two, WithLp.equiv_symm_pi_apply]
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => α)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => α)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => α)", " ‖A‖₊ = (∑ i : m, ∑ j : n, ‖A i j‖₊ ^ 2) ^ (1 / 2)", " ‖(WithLp.equiv 2 (m → WithLp 2 (n → α))).symm fun i => (WithLp.equiv 2 (n → α)).symm ...
[ " NormedAddCommGroup (PiLp 2 fun i => PiLp 2 fun j => α)", " BoundedSMul R (PiLp 2 fun i => PiLp 2 fun j => α)", " NormedSpace R (PiLp 2 fun i => PiLp 2 fun j => α)", " ‖A‖₊ = (∑ i : m, ∑ j : n, ‖A i j‖₊ ^ 2) ^ (1 / 2)", " ‖(WithLp.equiv 2 (m → WithLp 2 (n → α))).symm fun i => (WithLp.equiv 2 (n → α)).symm ...
import Mathlib.CategoryTheory.Equivalence #align_import algebraic_topology.dold_kan.compatibility from "leanprover-community/mathlib"@"32a7e535287f9c73f2e4d2aef306a39190f0b504" open CategoryTheory CategoryTheory.Category namespace AlgebraicTopology namespace DoldKan namespace Compatibility variable {A A' B B'...
Mathlib/AlgebraicTopology/DoldKan/Compatibility.lean
86
88
theorem equivalence₁CounitIso_eq : (equivalence₁ hF).counitIso = equivalence₁CounitIso hF := by
ext Y simp [equivalence₁, equivalence₀]
[ " (equivalence₁ hF).counitIso = equivalence₁CounitIso hF", " (equivalence₁ hF).counitIso.hom.app Y = (equivalence₁CounitIso hF).hom.app Y" ]
[]
import Mathlib.Data.Finsupp.Encodable import Mathlib.LinearAlgebra.Pi import Mathlib.LinearAlgebra.Span import Mathlib.Data.Set.Countable #align_import linear_algebra.finsupp from "leanprover-community/mathlib"@"9d684a893c52e1d6692a504a118bfccbae04feeb" noncomputable section open Set LinearMap Submodule namespa...
Mathlib/LinearAlgebra/Finsupp.lean
287
289
theorem span_single_image (s : Set M) (a : α) : Submodule.span R (single a '' s) = (Submodule.span R s).map (lsingle a : M →ₗ[R] α →₀ M) := by
rw [← span_image]; rfl
[ " ⇑(x + y) = ⇑x + ⇑y", " (x + y) x✝ = (⇑x + ⇑y) x✝", " { toFun := DFunLike.coe, map_add' := ⋯ }.toFun (x • y) =\n (RingHom.id R) x • { toFun := DFunLike.coe, map_add' := ⋯ }.toFun y", " { toFun := DFunLike.coe, map_add' := ⋯ }.toFun (x • y) x✝ =\n ((RingHom.id R) x • { toFun := DFunLike.coe, map_add' :=...
[ " ⇑(x + y) = ⇑x + ⇑y", " (x + y) x✝ = (⇑x + ⇑y) x✝", " { toFun := DFunLike.coe, map_add' := ⋯ }.toFun (x • y) =\n (RingHom.id R) x • { toFun := DFunLike.coe, map_add' := ⋯ }.toFun y", " { toFun := DFunLike.coe, map_add' := ⋯ }.toFun (x • y) x✝ =\n ((RingHom.id R) x • { toFun := DFunLike.coe, map_add' :=...
import Mathlib.Algebra.CharP.LocalRing import Mathlib.RingTheory.Ideal.Quotient import Mathlib.Tactic.FieldSimp #align_import algebra.char_p.mixed_char_zero from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" variable (R : Type*) [CommRing R] class MixedCharZero (p : ℕ) : Prop where ...
Mathlib/Algebra/CharP/MixedCharZero.lean
161
169
theorem of_algebraRat [Algebra ℚ R] : ∀ I : Ideal R, I ≠ ⊤ → CharZero (R ⧸ I) := by
intro I hI constructor intro a b h_ab contrapose! hI -- `↑a - ↑b` is a unit contained in `I`, which contradicts `I ≠ ⊤`. refine I.eq_top_of_isUnit_mem ?_ (IsUnit.map (algebraMap ℚ R) (IsUnit.mk0 (a - b : ℚ) ?_)) · simpa only [← Ideal.Quotient.eq_zero_iff_mem, map_sub, sub_eq_zero, map_natCast] simpa on...
[ " ∀ (I : Ideal R), I ≠ ⊤ → CharZero (R ⧸ I)", " CharZero (R ⧸ I)", " Function.Injective Nat.cast", " a = b", " I = ⊤", " (algebraMap ℚ R) (↑a - ↑b) ∈ I", " ↑a - ↑b ≠ 0" ]
[]
import Mathlib.Algebra.Group.Support import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Nat.Cast.Field #align_import algebra.char_zero.lemmas from "leanprover-community/mathlib"@"acee671f47b8e7972a1eb6f4eed74b4b3abce829" open Function Set section AddMonoidWithOne variable {α M : Type*} [AddMonoidWith...
Mathlib/Algebra/CharZero/Lemmas.lean
132
133
theorem nat_mul_inj' {n : ℕ} {a b : R} (h : (n : R) * a = (n : R) * b) (w : n ≠ 0) : a = b := by
simpa [w] using nat_mul_inj h
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b" ]
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b" ]
import Mathlib.LinearAlgebra.Matrix.Gershgorin import Mathlib.NumberTheory.NumberField.CanonicalEmbedding.ConvexBody import Mathlib.NumberTheory.NumberField.Units.Basic import Mathlib.RingTheory.RootsOfUnity.Basic #align_import number_theory.number_field.units from "leanprover-community/mathlib"@"00f91228655eecdcd3ac...
Mathlib/NumberTheory/NumberField/Units/DirichletTheorem.lean
128
151
theorem log_le_of_logEmbedding_le {r : ℝ} {x : (𝓞 K)ˣ} (hr : 0 ≤ r) (h : ‖logEmbedding K x‖ ≤ r) (w : InfinitePlace K) : |Real.log (w x)| ≤ (Fintype.card (InfinitePlace K)) * r := by
have tool : ∀ x : ℝ, 0 ≤ x → x ≤ mult w * x := fun x hx => by nth_rw 1 [← one_mul x] refine mul_le_mul ?_ le_rfl hx ?_ all_goals { rw [mult]; split_ifs <;> norm_num } by_cases hw : w = w₀ · have hyp := congr_arg (‖·‖) (sum_logEmbedding_component x).symm replace hyp := (le_of_eq hyp).trans (norm_s...
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log, map_zero' := ⋯ }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑...
[ " (fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log) 0 = 0", " (fun w => 0) = 0", " { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑(Additive.toMul x))).log, map_zero' := ⋯ }.toFun\n (x✝¹ + x✝) =\n { toFun := fun x w => ↑(↑w).mult * (↑w ((algebraMap (𝓞 K) K) ↑...
import Mathlib.Algebra.Field.Rat import Mathlib.Algebra.Group.Commute.Basic import Mathlib.Algebra.GroupWithZero.Units.Lemmas import Mathlib.Algebra.Order.Field.Rat import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Data.Rat.Lemmas #align_import data.rat.cast from "leanprover-community/mathlib"@"acebd8d49928f6ed8920e...
Mathlib/Data/Rat/Cast/Defs.lean
120
121
theorem cast_natCast (n : ℕ) : ((n : ℚ) : α) = n := by
rw [← Int.cast_natCast, cast_intCast, Int.cast_natCast]
[ " ↑n / ↑1 = ↑n", " ↑↑n = ↑n" ]
[ " ↑n / ↑1 = ↑n" ]
import Mathlib.Algebra.Ring.Int import Mathlib.Data.ZMod.Basic import Mathlib.FieldTheory.Finite.Basic import Mathlib.Data.Fintype.BigOperators #align_import number_theory.sum_four_squares from "leanprover-community/mathlib"@"bd9851ca476957ea4549eb19b40e7b5ade9428cc" open Finset Polynomial FiniteField Equiv the...
Mathlib/NumberTheory/SumFourSquares.lean
78
96
theorem exists_sq_add_sq_add_one_eq_mul (p : ℕ) [hp : Fact p.Prime] : ∃ (a b k : ℕ), 0 < k ∧ k < p ∧ a ^ 2 + b ^ 2 + 1 = k * p := by
rcases hp.1.eq_two_or_odd' with (rfl | hodd) · use 1, 0, 1; simp rcases Nat.sq_add_sq_zmodEq p (-1) with ⟨a, b, ha, hb, hab⟩ rcases Int.modEq_iff_dvd.1 hab.symm with ⟨k, hk⟩ rw [sub_neg_eq_add, mul_comm] at hk have hk₀ : 0 < k := by refine pos_of_mul_pos_left ?_ (Nat.cast_nonneg p) rw [← hk] po...
[ " (a * x - b * y - c * z - d * w) ^ 2 + (a * y + b * x + c * w - d * z) ^ 2 + (a * z - b * w + c * x + d * y) ^ 2 +\n (a * w + b * z - c * y + d * x) ^ 2 =\n (a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2) * (x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2)", " (↑a * ↑x - ↑b * ↑y - ↑c * ↑z - ↑d * ↑w).natAbs ^ 2 + (↑a * ↑y + ↑b * ↑x + ↑c *...
[ " (a * x - b * y - c * z - d * w) ^ 2 + (a * y + b * x + c * w - d * z) ^ 2 + (a * z - b * w + c * x + d * y) ^ 2 +\n (a * w + b * z - c * y + d * x) ^ 2 =\n (a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2) * (x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2)", " (↑a * ↑x - ↑b * ↑y - ↑c * ↑z - ↑d * ↑w).natAbs ^ 2 + (↑a * ↑y + ↑b * ↑x + ↑c *...
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
98
102
theorem natDegree_mul_C_le (f : R[X]) (a : R) : (f * C a).natDegree ≤ f.natDegree := calc (f * C a).natDegree ≤ f.natDegree + (C a).natDegree := natDegree_mul_le _ = f.natDegree + 0 := by
rw [natDegree_C a] _ = f.natDegree := add_zero _
[ " (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.Polynomial.Reverse import Mathlib.Algebra.Regular.SMul #align_import data.polynomial.monic from "leanprover-community/mathlib"@"cbdf7b565832144d024caa5a550117c6df0204a5" noncomputable section open Finset open Polynomial namespace Polynomial universe u v y variable {R : Type u} {S : Typ...
Mathlib/Algebra/Polynomial/Monic.lean
117
125
theorem Monic.mul (hp : Monic p) (hq : Monic q) : Monic (p * q) := letI := Classical.decEq R if h0 : (0 : R) = 1 then haveI := subsingleton_of_zero_eq_one h0 Subsingleton.elim _ _ else by have : p.leadingCoeff * q.leadingCoeff ≠ 0 := by
simp [Monic.def.1 hp, Monic.def.1 hq, Ne.symm h0] rw [Monic.def, leadingCoeff_mul' this, Monic.def.1 hp, Monic.def.1 hq, one_mul]
[ " Subsingleton R → (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " p = X ^ p.natDegree + ∑ i ∈ range p.natDegree, C (p.coeff i) * X ^ i", "R : Type u S : Type v a b : R m n : ℕ ι : Type y inst✝ : Semiring R p q r : R[X] hp : p.Monic | p", " C (p.coeff p.natD...
[ " Subsingleton R → (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " (∀ (f g : R[X]), f = g) ∧ ∀ (a b : R), a = b", " p = X ^ p.natDegree + ∑ i ∈ range p.natDegree, C (p.coeff i) * X ^ i", "R : Type u S : Type v a b : R m n : ℕ ι : Type y inst✝ : Semiring R p q r : R[X] hp : p.Monic | p", " C (p.coeff p.natD...
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
106
128
theorem abs_det_basis_change [NoZeroDivisors K] {ι : Type*} [Fintype ι] [DecidableEq ι] (b : Basis ι ℤ R) (I : FractionalIdeal R⁰ K) (bI : Basis ι ℤ I) : |(b.localizationLocalization ℚ ℤ⁰ K).det ((↑) ∘ bI)| = absNorm I := by
have := IsFractionRing.nontrivial R K let b₀ : Basis ι ℚ K := b.localizationLocalization ℚ ℤ⁰ K let bI.num : Basis ι ℤ I.num := bI.map ((equivNum (nonZeroDivisors.coe_ne_zero _)).restrictScalars ℤ) rw [absNorm_eq, ← Ideal.natAbs_det_basis_change b I.num bI.num, Int.cast_natAbs, Int.cast_abs, Int.cast...
[ " ↑(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.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.FieldTheory.Finite.Basic import Mathlib.Data.Matrix.CharP #align_import linear_algebra.matrix.charpoly.finite_field from "leanprover-community/mathlib"@"b95b8c7a484a298228805c72c142f6b062eb0d70" noncomputable section open Polynomial Matrix open s...
Mathlib/LinearAlgebra/Matrix/Charpoly/FiniteField.lean
61
62
theorem ZMod.trace_pow_card {p : ℕ} [Fact p.Prime] (M : Matrix n n (ZMod p)) : trace (M ^ p) = trace M ^ p := by
have h := FiniteField.trace_pow_card M; rwa [ZMod.card] at h
[ " (M ^ Fintype.card K).charpoly = M.charpoly", " (M ^ p ^ k).charpoly = M.charpoly", " (⇑(frobenius K[X] p))^[k] (M ^ p ^ k).charpoly = (⇑(frobenius K[X] p))^[k] M.charpoly", " (M ^ p ^ k).charpoly ^ p ^ k = (⇑(frobenius K[X] p))^[k] M.charpoly", " (M ^ Fintype.card K).charpoly ^ Fintype.card K = (⇑(frobeni...
[ " (M ^ Fintype.card K).charpoly = M.charpoly", " (M ^ p ^ k).charpoly = M.charpoly", " (⇑(frobenius K[X] p))^[k] (M ^ p ^ k).charpoly = (⇑(frobenius K[X] p))^[k] M.charpoly", " (M ^ p ^ k).charpoly ^ p ^ k = (⇑(frobenius K[X] p))^[k] M.charpoly", " (M ^ Fintype.card K).charpoly ^ Fintype.card K = (⇑(frobeni...
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
144
160
theorem dropWhile_eq_self_iff : dropWhile p l = l ↔ ∀ hl : 0 < l.length, ¬p (l.get ⟨0, hl⟩) := by
cases' l with hd tl · simp only [dropWhile, true_iff] intro h by_contra rwa [length_nil, lt_self_iff_false] at h · rw [dropWhile] refine ⟨fun h => ?_, fun h => ?_⟩ · intro _ H rw [get] at H refine (cons_ne_self hd tl) (Sublist.antisymm ?_ (sublist_cons _ _)) rw [← h] s...
[ " [].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.Tactic.ApplyFun import Mathlib.Topology.UniformSpace.Basic import Mathlib.Topology.Separation #align_import topology.uniform_space.separation from "leanprover-community/mathlib"@"0c1f285a9f6e608ae2bdffa3f993eafb01eba829" open Filter Set Function Topology Uniformity UniformSpace open scoped Classical...
Mathlib/Topology/UniformSpace/Separation.lean
155
157
theorem t0Space_iff_uniformity' : T0Space α ↔ Pairwise fun x y ↦ ∃ r ∈ 𝓤 α, (x, y) ∉ r := by
simp [t0Space_iff_not_inseparable, inseparable_iff_ker_uniformity]
[ " 𝓝 (x, y) ≤ 𝓤 α", " 𝓝 (y, y) ≤ 𝓤 α", " Inseparable x y ↔ ClusterPt (x, y) (𝓤 α)", " Inseparable x y", " ∀ (i : Set (α × α)), (i ∈ 𝓤 α ∧ ∀ (a : α × α), ClusterPt a (𝓟 i) → a ∈ i) → (x, y) ∈ id i", " T0Space α ↔ ∀ (x y : α), (∀ r ∈ 𝓤 α, (x, y) ∈ r) → x = y", " T0Space α ↔ Pairwise fun x y => ∃ r ...
[ " 𝓝 (x, y) ≤ 𝓤 α", " 𝓝 (y, y) ≤ 𝓤 α", " Inseparable x y ↔ ClusterPt (x, y) (𝓤 α)", " Inseparable x y", " ∀ (i : Set (α × α)), (i ∈ 𝓤 α ∧ ∀ (a : α × α), ClusterPt a (𝓟 i) → a ∈ i) → (x, y) ∈ id i", " T0Space α ↔ ∀ (x y : α), (∀ r ∈ 𝓤 α, (x, y) ∈ r) → x = y" ]
import Mathlib.Algebra.Order.Ring.Nat #align_import data.nat.dist from "leanprover-community/mathlib"@"d50b12ae8e2bd910d08a94823976adae9825718b" namespace Nat def dist (n m : ℕ) := n - m + (m - n) #align nat.dist Nat.dist -- Should be aligned to `Nat.dist.eq_def`, but that is generated on demand and isn't pr...
Mathlib/Data/Nat/Dist.lean
81
82
theorem dist_add_add_left (k n m : ℕ) : dist (k + n) (k + m) = dist n m := by
rw [add_comm k n, add_comm k m]; apply dist_add_add_right
[ " n.dist m = m.dist n", " n.dist n = 0", " n.dist m = 0", " n.dist m = m - n", " n.dist m = n - m", " m.dist n = n - m", " m ≤ n + n.dist m", " m ≤ n.dist m + n", " n ≤ n.dist m + m", " n ≤ m.dist n + m", " n ≤ m + n.dist m", " n ≤ m + m.dist n", " n + k - (m + k) + (m + k - (n + k)) = n - m...
[ " n.dist m = m.dist n", " n.dist n = 0", " n.dist m = 0", " n.dist m = m - n", " n.dist m = n - m", " m.dist n = n - m", " m ≤ n + n.dist m", " m ≤ n.dist m + n", " n ≤ n.dist m + m", " n ≤ m.dist n + m", " n ≤ m + n.dist m", " n ≤ m + m.dist n", " n + k - (m + k) + (m + k - (n + k)) = n - m...
import Mathlib.Analysis.NormedSpace.Real import Mathlib.Analysis.Seminorm import Mathlib.Topology.MetricSpace.HausdorffDistance #align_import analysis.normed_space.riesz_lemma from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set Metric open Topology variable {𝕜 : Type*} [Norm...
Mathlib/Analysis/NormedSpace/RieszLemma.lean
108
114
theorem Metric.closedBall_infDist_compl_subset_closure {x : F} {s : Set F} (hx : x ∈ s) : closedBall x (infDist x sᶜ) ⊆ closure s := by
rcases eq_or_ne (infDist x sᶜ) 0 with h₀ | h₀ · rw [h₀, closedBall_zero'] exact closure_mono (singleton_subset_iff.2 hx) · rw [← closure_ball x h₀] exact closure_mono ball_infDist_compl_subset
[ " ∃ x₀ ∉ F, ∀ y ∈ F, r * ‖x₀‖ ≤ ‖x₀ - y‖", " r' < 1", " 2⁻¹ < 1", " 0 < 2⁻¹", " x - y₀ ∉ F", " False", " r * ‖x - y₀‖ < ‖x - y₀ - y‖", " r * ‖x - y₀‖ ≤ r' * ‖x - y₀‖", " r ≤ r'", " r' * ‖x - y₀‖ < d", " r' * dist x y₀ < d", " dist x (y₀ + y) = ‖x - y₀ - y‖", " ∃ x₀, ‖x₀‖ ≤ R ∧ ∀ y ∈ F, 1 ≤ ‖...
[ " ∃ x₀ ∉ F, ∀ y ∈ F, r * ‖x₀‖ ≤ ‖x₀ - y‖", " r' < 1", " 2⁻¹ < 1", " 0 < 2⁻¹", " x - y₀ ∉ F", " False", " r * ‖x - y₀‖ < ‖x - y₀ - y‖", " r * ‖x - y₀‖ ≤ r' * ‖x - y₀‖", " r ≤ r'", " r' * ‖x - y₀‖ < d", " r' * dist x y₀ < d", " dist x (y₀ + y) = ‖x - y₀ - y‖", " ∃ x₀, ‖x₀‖ ≤ R ∧ ∀ y ∈ F, 1 ≤ ‖...
import Mathlib.LinearAlgebra.Finsupp import Mathlib.RingTheory.Ideal.Over import Mathlib.RingTheory.Ideal.Prod import Mathlib.RingTheory.Ideal.MinimalPrime import Mathlib.RingTheory.Localization.Away.Basic import Mathlib.RingTheory.Nilpotent.Lemmas import Mathlib.Topology.Sets.Closeds import Mathlib.Topology.Sober #a...
Mathlib/AlgebraicGeometry/PrimeSpectrum/Basic.lean
147
149
theorem zeroLocus_span (s : Set R) : zeroLocus (Ideal.span s : Set R) = zeroLocus s := by
ext x exact (Submodule.gi R R).gc s x.asIdeal
[ " Function.Bijective (primeSpectrumProdOfSum R S)", " Function.Injective (primeSpectrumProdOfSum R S)", " Sum.inl { asIdeal := I, IsPrime := hI } = Sum.inl { asIdeal := I', IsPrime := hI' }", " Sum.inl { asIdeal := I, IsPrime := hI } = Sum.inr { asIdeal := J', IsPrime := hJ' }", " Sum.inr { asIdeal := J, Is...
[ " Function.Bijective (primeSpectrumProdOfSum R S)", " Function.Injective (primeSpectrumProdOfSum R S)", " Sum.inl { asIdeal := I, IsPrime := hI } = Sum.inl { asIdeal := I', IsPrime := hI' }", " Sum.inl { asIdeal := I, IsPrime := hI } = Sum.inr { asIdeal := J', IsPrime := hJ' }", " Sum.inr { asIdeal := J, Is...
import Mathlib.Order.Interval.Set.UnorderedInterval import Mathlib.Algebra.Order.Interval.Set.Monoid import Mathlib.Data.Set.Pointwise.Basic import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Group.MinMax #align_import data.set.pointwise.interval from "leanprover-community/mathlib"@"2196ab363eb097c...
Mathlib/Data/Set/Pointwise/Interval.lean
74
77
theorem Ico_mul_Icc_subset' (a b c d : α) : Ico a b * Icc c d ⊆ Ico (a * c) (b * d) := by
haveI := covariantClass_le_of_lt rintro x ⟨y, ⟨hya, hyb⟩, z, ⟨hzc, hzd⟩, rfl⟩ exact ⟨mul_le_mul' hya hzc, mul_lt_mul_of_lt_of_le hyb hzd⟩
[ " Icc a b * Ico c d ⊆ Ico (a * c) (b * d)", " (fun x x_1 => x * x_1) y z ∈ Ico (a * c) (b * d)", " Ico a b * Icc c d ⊆ Ico (a * c) (b * d)" ]
[ " Icc a b * Ico c d ⊆ Ico (a * c) (b * d)", " (fun x x_1 => x * x_1) y z ∈ Ico (a * c) (b * d)" ]
import Mathlib.Algebra.Order.Field.Power import Mathlib.NumberTheory.Padics.PadicVal #align_import number_theory.padics.padic_norm from "leanprover-community/mathlib"@"92ca63f0fb391a9ca5f22d2409a6080e786d99f7" def padicNorm (p : ℕ) (q : ℚ) : ℚ := if q = 0 then 0 else (p : ℚ) ^ (-padicValRat p q) #align padic_n...
Mathlib/NumberTheory/Padics/PadicNorm.lean
104
106
theorem padicNorm_p_lt_one (hp : 1 < p) : padicNorm p p < 1 := by
rw [padicNorm_p hp, inv_lt_one_iff] exact mod_cast Or.inr hp
[ " padicNorm p q = ↑p ^ (-padicValRat p q)", " 0 ≤ padicNorm p q", " 0 ≤ if q = 0 then 0 else ↑p ^ (-padicValRat p q)", " 0 ≤ ↑p ^ (-padicValRat p q)", " 0 ≤ ↑p", " padicNorm p 0 = 0", " padicNorm p 1 = 1", " padicNorm p ↑p = (↑p)⁻¹", " padicNorm p ↑q = 1", " padicNorm p✝ ↑q = 1", " (if ↑q = 0 th...
[ " padicNorm p q = ↑p ^ (-padicValRat p q)", " 0 ≤ padicNorm p q", " 0 ≤ if q = 0 then 0 else ↑p ^ (-padicValRat p q)", " 0 ≤ ↑p ^ (-padicValRat p q)", " 0 ≤ ↑p", " padicNorm p 0 = 0", " padicNorm p 1 = 1", " padicNorm p ↑p = (↑p)⁻¹", " padicNorm p ↑q = 1", " padicNorm p✝ ↑q = 1", " (if ↑q = 0 th...
import Mathlib.MeasureTheory.Integral.IntervalIntegral import Mathlib.Analysis.Calculus.Deriv.ZPow import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Analysis.SpecialFunctions.NonIntegrable import Mathlib.Analysis.Analytic.Basic #align_import measure_theory.integral.circle_integral from "leanprover-communit...
Mathlib/MeasureTheory/Integral/CircleIntegral.lean
117
117
theorem circleMap_mem_sphere' (c : ℂ) (R : ℝ) (θ : ℝ) : circleMap c R θ ∈ sphere c |R| := by
simp
[ " circleMap c R (θ + 2 * π) = circleMap c R θ", " circleMap c R θ - c = circleMap 0 R θ", " Complex.abs (circleMap 0 R θ) = |R|", " circleMap c R θ ∈ sphere c |R|" ]
[ " circleMap c R (θ + 2 * π) = circleMap c R θ", " circleMap c R θ - c = circleMap 0 R θ", " Complex.abs (circleMap 0 R θ) = |R|" ]
import Mathlib.Data.List.Range import Mathlib.Algebra.Order.Ring.Nat variable {α : Type*} namespace List @[simp] theorem length_iterate (f : α → α) (a : α) (n : ℕ) : length (iterate f a n) = n := by induction n generalizing a <;> simp [*] @[simp]
Mathlib/Data/List/Iterate.lean
25
26
theorem iterate_eq_nil {f : α → α} {a : α} {n : ℕ} : iterate f a n = [] ↔ n = 0 := by
rw [← length_eq_zero, length_iterate]
[ " (iterate f a n).length = n", " (iterate f a 0).length = 0", " (iterate f a (n✝ + 1)).length = n✝ + 1", " iterate f a n = [] ↔ n = 0" ]
[ " (iterate f a n).length = n", " (iterate f a 0).length = 0", " (iterate f a (n✝ + 1)).length = n✝ + 1" ]
import Mathlib.Algebra.NeZero import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Lifts import Mathlib.Algebra.Polynomial.Splits import Mathlib.RingTheory.RootsOfUnity.Complex import Mathlib.NumberTheory.ArithmeticFunction import Mathlib.RingTheory.RootsOfUnity.Basic import Mathlib.FieldTh...
Mathlib/RingTheory/Polynomial/Cyclotomic/Basic.lean
124
126
theorem roots_of_cyclotomic (n : ℕ) (R : Type*) [CommRing R] [IsDomain R] : (cyclotomic' n R).roots = (primitiveRoots n R).val := by
rw [cyclotomic']; exact roots_prod_X_sub_C (primitiveRoots n R)
[ " cyclotomic' 0 R = 1", " cyclotomic' 1 R = X - 1", " cyclotomic' 2 R = X + 1", " ∏ μ ∈ primitiveRoots 2 R, (X - C μ) = X + 1", " primitiveRoots 2 R = {-1}", " IsPrimitiveRoot (-1) 2 ∧ ∀ (x : R), IsPrimitiveRoot x 2 → x = -1", " (cyclotomic' n R).natDegree = n.totient", " (∏ μ ∈ primitiveRoots n R, (X...
[ " cyclotomic' 0 R = 1", " cyclotomic' 1 R = X - 1", " cyclotomic' 2 R = X + 1", " ∏ μ ∈ primitiveRoots 2 R, (X - C μ) = X + 1", " primitiveRoots 2 R = {-1}", " IsPrimitiveRoot (-1) 2 ∧ ∀ (x : R), IsPrimitiveRoot x 2 → x = -1", " (cyclotomic' n R).natDegree = n.totient", " (∏ μ ∈ primitiveRoots n R, (X...
import Mathlib.Algebra.Group.Support import Mathlib.Algebra.Order.Monoid.WithTop import Mathlib.Data.Nat.Cast.Field #align_import algebra.char_zero.lemmas from "leanprover-community/mathlib"@"acee671f47b8e7972a1eb6f4eed74b4b3abce829" open Function Set section AddMonoidWithOne variable {α M : Type*} [AddMonoidWith...
Mathlib/Algebra/CharZero/Lemmas.lean
182
182
theorem add_halves' (a : R) : a / 2 + a / 2 = a := by
rw [← add_div, half_add_self]
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0", " 1 = bit1 a ↔ a = 0", " (a + a) / 2 = a", " a / 2 + a / 2 = a" ]
[ " 2 ≠ 0", " a + a = 0 ↔ a = 0", " 0 = bit0 a ↔ a = 0", " bit0 a = 0 ↔ a = 0", " n = 0 ∨ a = b", " a = b", " ↑2 * a = ↑2 * b", " bit1 a = 1 ↔ a = 0", " 1 = bit1 0", " 1 = bit1 a ↔ a = 0", " (a + a) / 2 = a" ]
import Mathlib.Topology.MetricSpace.HausdorffDistance #align_import topology.metric_space.pi_nat from "leanprover-community/mathlib"@"49b7f94aab3a3bdca1f9f34c5d818afb253b3993" noncomputable section open scoped Classical open Topology Filter open TopologicalSpace Set Metric Filter Function attribute [local simp...
Mathlib/Topology/MetricSpace/PiNat.lean
175
186
theorem iUnion_cylinder_update (x : ∀ n, E n) (n : ℕ) : ⋃ k, cylinder (update x n k) (n + 1) = cylinder x n := by
ext y simp only [mem_cylinder_iff, mem_iUnion] constructor · rintro ⟨k, hk⟩ i hi simpa [hi.ne] using hk i (Nat.lt_succ_of_lt hi) · intro H refine ⟨y n, fun i hi => ?_⟩ rcases Nat.lt_succ_iff_lt_or_eq.1 hi with (h'i | rfl) · simp [H i h'i, h'i.ne] · simp
[ " x (firstDiff x y) ≠ y (firstDiff x y)", " x (Nat.find ⋯) ≠ y (Nat.find ⋯)", " x n = y n", " x n = y n ↔ ¬x n ≠ y n", " firstDiff x y = firstDiff y x", " min (firstDiff x y) (firstDiff y z) ≤ firstDiff x z", " False", " x (firstDiff x z) = z (firstDiff x z)", " cylinder x n = (↑(Finset.range n)).pi...
[ " x (firstDiff x y) ≠ y (firstDiff x y)", " x (Nat.find ⋯) ≠ y (Nat.find ⋯)", " x n = y n", " x n = y n ↔ ¬x n ≠ y n", " firstDiff x y = firstDiff y x", " min (firstDiff x y) (firstDiff y z) ≤ firstDiff x z", " False", " x (firstDiff x z) = z (firstDiff x z)", " cylinder x n = (↑(Finset.range n)).pi...
import Mathlib.Algebra.Algebra.Quasispectrum import Mathlib.FieldTheory.IsAlgClosed.Spectrum import Mathlib.Analysis.Complex.Liouville import Mathlib.Analysis.Complex.Polynomial import Mathlib.Analysis.Analytic.RadiusLiminf import Mathlib.Topology.Algebra.Module.CharacterSpace import Mathlib.Analysis.NormedSpace.Expon...
Mathlib/Analysis/NormedSpace/Spectrum.lean
79
80
theorem SpectralRadius.of_subsingleton [Subsingleton A] (a : A) : spectralRadius 𝕜 a = 0 := by
simp [spectralRadius]
[ " spectralRadius 𝕜 a = 0" ]
[]
import Mathlib.Tactic.NormNum import Mathlib.Tactic.TryThis import Mathlib.Util.AtomM set_option autoImplicit true namespace Mathlib.Tactic.Abel open Lean Elab Meta Tactic Qq initialize registerTraceClass `abel initialize registerTraceClass `abel.detail structure Context where α : Expr univ :...
Mathlib/Tactic/Abel.lean
144
146
theorem term_add_term {α} [AddCommMonoid α] (n₁ x a₁ n₂ a₂ n' a') (h₁ : n₁ + n₂ = n') (h₂ : a₁ + a₂ = a') : @term α _ n₁ x a₁ + @term α _ n₂ x a₂ = term n' x a' := by
simp [h₁.symm, h₂.symm, term, add_nsmul, add_assoc, add_left_comm]
[ " k + term n x a = term n x a'", " k + termg n x a = termg n x a'", " term n x a + k = term n x a'", " termg n x a + k = termg n x a'", " term n₁ x a₁ + term n₂ x a₂ = term n' x a'" ]
[ " k + term n x a = term n x a'", " k + termg n x a = termg n x a'", " term n x a + k = term n x a'", " termg n x a + k = termg n x a'" ]
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Topology.Algebra.Module.Basic #align_import analysis.normed_space.basic from "leanprover-community/mathlib"@"bc91ed7093bf098d253401e69df601fc33dde156" open Metric Set Function Filter open scoped NNReal Topology instance Real.punctured_nhds_module_neBot {E ...
Mathlib/Analysis/NormedSpace/Real.lean
124
128
theorem exists_norm_eq {c : ℝ} (hc : 0 ≤ c) : ∃ x : E, ‖x‖ = c := by
rcases exists_ne (0 : E) with ⟨x, hx⟩ rw [← norm_ne_zero_iff] at hx use c • ‖x‖⁻¹ • x simp [norm_smul, Real.norm_of_nonneg hc, abs_of_nonneg hc, inv_mul_cancel hx]
[ " ∃ x, ‖x‖ = c", " ‖c • ‖x‖⁻¹ • x‖ = c" ]
[]
import Mathlib.RingTheory.QuotientNilpotent import Mathlib.RingTheory.Smooth.Basic import Mathlib.RingTheory.Unramified.Basic #align_import ring_theory.etale from "leanprover-community/mathlib"@"73f96237417835f148a1f7bc1ff55f67119b7166" -- Porting note: added to make the syntax work below. open scoped TensorProdu...
Mathlib/RingTheory/Etale/Basic.lean
66
69
theorem iff_unramified_and_smooth : FormallyEtale R A ↔ FormallyUnramified R A ∧ FormallySmooth R A := by
rw [formallyUnramified_iff, formallySmooth_iff, formallyEtale_iff] simp_rw [← forall_and, Function.Bijective]
[ " FormallyEtale R A ↔ FormallyUnramified R A ∧ FormallySmooth R A", " (∀ ⦃B : Type u⦄ [inst : CommRing B] [inst_1 : Algebra R B] (I : Ideal B),\n I ^ 2 = ⊥ → Function.Bijective (Ideal.Quotient.mkₐ R I).comp) ↔\n (∀ ⦃B : Type u⦄ [inst : CommRing B] [inst_1 : Algebra R B] (I : Ideal B),\n I ^ 2 = ⊥ →...
[]
import Mathlib.Algebra.IsPrimePow import Mathlib.Algebra.Squarefree.Basic import Mathlib.Order.Hom.Bounded import Mathlib.Algebra.GCDMonoid.Basic #align_import ring_theory.chain_of_divisors from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e" variable {M : Type*} [CancelCommMonoidWithZero...
Mathlib/RingTheory/ChainOfDivisors.lean
111
132
theorem eq_second_of_chain_of_prime_dvd {p q r : Associates M} {n : ℕ} (hn : n ≠ 0) {c : Fin (n + 1) → Associates M} (h₁ : StrictMono c) (h₂ : ∀ {r : Associates M}, r ≤ q ↔ ∃ i, r = c i) (hp : Prime p) (hr : r ∣ q) (hp' : p ∣ r) : p = c 1 := by
cases' n with n · contradiction obtain ⟨i, rfl⟩ := h₂.1 (dvd_trans hp' hr) refine congr_arg c (eq_of_ge_of_not_gt ?_ fun hi => ?_) · rw [Fin.le_iff_val_le_val, Fin.val_one, Nat.succ_le_iff, ← Fin.val_zero' (n.succ + 1), ← Fin.lt_iff_val_lt_val, Fin.pos_iff_ne_zero] rintro rfl exact hp.not_unit ...
[ " ¬IsUnit p", " IsUnit b", " Associated (p * b) p", "M : Type u_1\ninst✝ : CancelCommMonoidWithZero M\np : Associates M\nh₁ : p ≠ 0\nhp : IsAtom p\na b : Associates M\nh : p = p * b\nha : a = p\n| p", " p ≠ ⊥", " b = ⊥", " b = p * ↑ha.unit⁻¹", " ∃ c, c 1 = p ∧ StrictMono c ∧ ∀ {r : Associates M}, r ≤ ...
[ " ¬IsUnit p", " IsUnit b", " Associated (p * b) p", "M : Type u_1\ninst✝ : CancelCommMonoidWithZero M\np : Associates M\nh₁ : p ≠ 0\nhp : IsAtom p\na b : Associates M\nh : p = p * b\nha : a = p\n| p", " p ≠ ⊥", " b = ⊥", " b = p * ↑ha.unit⁻¹", " ∃ c, c 1 = p ∧ StrictMono c ∧ ∀ {r : Associates M}, r ≤ ...
import Mathlib.Topology.Category.TopCat.OpenNhds import Mathlib.Topology.Sheaves.Presheaf import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing import Mathlib.CategoryTheory.Adjunction.Evaluation import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.Limits.Preserves.Filtered import Mathlib.Cat...
Mathlib/Topology/Sheaves/Stalks.lean
150
153
theorem stalkPushforward_germ (f : X ⟶ Y) (F : X.Presheaf C) (U : Opens Y) (x : (Opens.map f).obj U) : (f _* F).germ ⟨(f : X → Y) (x : X), x.2⟩ ≫ F.stalkPushforward C f x = F.germ x := by
simp [germ, stalkPushforward]
[ " (F.germ x) ((F.map i.op) s) = (F.germ ((fun x => ⟨↑x, ⋯⟩) x)) s", " colimit.ι (((whiskeringLeft (OpenNhds x)ᵒᵖ (Opens ↑X)ᵒᵖ C).obj (OpenNhds.inclusion x).op).obj F) U ≫ f₁ =\n colimit.ι (((whiskeringLeft (OpenNhds x)ᵒᵖ (Opens ↑X)ᵒᵖ C).obj (OpenNhds.inclusion x).op).obj F) U ≫ f₂", " colimit.ι (((whiskering...
[ " (F.germ x) ((F.map i.op) s) = (F.germ ((fun x => ⟨↑x, ⋯⟩) x)) s", " colimit.ι (((whiskeringLeft (OpenNhds x)ᵒᵖ (Opens ↑X)ᵒᵖ C).obj (OpenNhds.inclusion x).op).obj F) U ≫ f₁ =\n colimit.ι (((whiskeringLeft (OpenNhds x)ᵒᵖ (Opens ↑X)ᵒᵖ C).obj (OpenNhds.inclusion x).op).obj F) U ≫ f₂", " colimit.ι (((whiskering...
import Mathlib.Algebra.Polynomial.Mirror import Mathlib.Analysis.Complex.Polynomial #align_import data.polynomial.unit_trinomial from "leanprover-community/mathlib"@"302eab4f46abb63de520828de78c04cb0f9b5836" namespace Polynomial open scoped Polynomial open Finset section Semiring variable {R : Type*} [Semirin...
Mathlib/Algebra/Polynomial/UnitTrinomial.lean
61
64
theorem trinomial_trailing_coeff' (hkm : k < m) (hmn : m < n) : (trinomial k m n u v w).coeff k = u := by
rw [trinomial_def, coeff_add, coeff_add, coeff_C_mul_X_pow, coeff_C_mul_X_pow, coeff_C_mul_X_pow, if_pos rfl, if_neg hkm.ne, if_neg (hkm.trans hmn).ne, add_zero, add_zero]
[ " (trinomial k m n u v w).coeff n = w", " (trinomial k m n u v w).coeff m = v", " (trinomial k m n u v w).coeff k = u" ]
[ " (trinomial k m n u v w).coeff n = w", " (trinomial k m n u v w).coeff m = v" ]
import Mathlib.Algebra.Polynomial.Eval import Mathlib.RingTheory.Ideal.Quotient #align_import linear_algebra.smodeq from "leanprover-community/mathlib"@"146d3d1fa59c091fedaad8a4afa09d6802886d24" open Submodule open Polynomial variable {R : Type*} [Ring R] variable {A : Type*} [CommRing A] variable {M : Type*} [...
Mathlib/LinearAlgebra/SModEq.lean
114
119
theorem eval {R : Type*} [CommRing R] {I : Ideal R} {x y : R} (h : x ≡ y [SMOD I]) (f : R[X]) : f.eval x ≡ f.eval y [SMOD I] := by
rw [SModEq.def] at h ⊢ show Ideal.Quotient.mk I (f.eval x) = Ideal.Quotient.mk I (f.eval y) replace h : Ideal.Quotient.mk I x = Ideal.Quotient.mk I y := h rw [← Polynomial.eval₂_at_apply, ← Polynomial.eval₂_at_apply, h]
[ " x ≡ y [SMOD U] ↔ x - y ∈ U", " x ≡ y [SMOD ⊥] ↔ x = y", " x₁ + x₂ ≡ y₁ + y₂ [SMOD U]", " Submodule.Quotient.mk (x₁ + x₂) = Submodule.Quotient.mk (y₁ + y₂)", " c • x ≡ c • y [SMOD U]", " Submodule.Quotient.mk (c • x) = Submodule.Quotient.mk (c • y)", " x₁ * x₂ ≡ y₁ * y₂ [SMOD I]", " (Ideal.Quotient.m...
[ " x ≡ y [SMOD U] ↔ x - y ∈ U", " x ≡ y [SMOD ⊥] ↔ x = y", " x₁ + x₂ ≡ y₁ + y₂ [SMOD U]", " Submodule.Quotient.mk (x₁ + x₂) = Submodule.Quotient.mk (y₁ + y₂)", " c • x ≡ c • y [SMOD U]", " Submodule.Quotient.mk (c • x) = Submodule.Quotient.mk (c • y)", " x₁ * x₂ ≡ y₁ * y₂ [SMOD I]", " (Ideal.Quotient.m...
import Mathlib.RingTheory.Polynomial.Cyclotomic.Basic import Mathlib.RingTheory.RootsOfUnity.Minpoly #align_import ring_theory.polynomial.cyclotomic.roots from "leanprover-community/mathlib"@"7fdeecc0d03cd40f7a165e6cf00a4d2286db599f" namespace Polynomial variable {R : Type*} [CommRing R] {n : ℕ} theorem isRoot_...
Mathlib/RingTheory/Polynomial/Cyclotomic/Roots.lean
107
113
theorem roots_cyclotomic_nodup [NeZero (n : R)] : (cyclotomic n R).roots.Nodup := by
obtain h | ⟨ζ, hζ⟩ := (cyclotomic n R).roots.empty_or_exists_mem · exact h.symm ▸ Multiset.nodup_zero rw [mem_roots <| cyclotomic_ne_zero n R, isRoot_cyclotomic_iff] at hζ refine Multiset.nodup_of_le (roots.le_of_dvd (X_pow_sub_C_ne_zero (NeZero.pos_of_neZero_natCast R) 1) <| cyclotomic.dvd_X_pow_sub...
[ " ζ ^ n = 1", " ζ ^ 0 = 1", " 1 = 1 + eval ζ (∏ i ∈ n.divisors, cyclotomic i R)", " eval ζ (∏ i ∈ n.divisors, cyclotomic i R) = 0", " cyclotomic i R ∣ ∏ i ∈ n.divisors, cyclotomic i R", " ζ ^ n = 1 ↔ ∃ i ∈ n.divisors, (cyclotomic i R).IsRoot ζ", " (cyclotomic n R).IsRoot μ", " μ ∈ primitiveRoots n R",...
[ " ζ ^ n = 1", " ζ ^ 0 = 1", " 1 = 1 + eval ζ (∏ i ∈ n.divisors, cyclotomic i R)", " eval ζ (∏ i ∈ n.divisors, cyclotomic i R) = 0", " cyclotomic i R ∣ ∏ i ∈ n.divisors, cyclotomic i R", " ζ ^ n = 1 ↔ ∃ i ∈ n.divisors, (cyclotomic i R).IsRoot ζ", " (cyclotomic n R).IsRoot μ", " μ ∈ primitiveRoots n R",...
import Mathlib.Topology.Instances.Real import Mathlib.Order.Filter.Archimedean #align_import analysis.subadditive from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" noncomputable section open Set Filter Topology def Subadditive (u : ℕ → ℝ) : Prop := ∀ m n, u (m + n) ≤ u m + u n #al...
Mathlib/Analysis/Subadditive.lean
45
48
theorem lim_le_div (hbdd : BddBelow (range fun n => u n / n)) {n : ℕ} (hn : n ≠ 0) : h.lim ≤ u n / n := by
rw [Subadditive.lim] exact csInf_le (hbdd.mono <| image_subset_range _ _) ⟨n, hn.bot_lt, rfl⟩
[ " h.lim ≤ u n / ↑n", " sInf ((fun n => u n / ↑n) '' Ici 1) ≤ u n / ↑n" ]
[]
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
145
146
theorem of_b_eq_zero (ha : P.a = 0) (hb : P.b = 0) : P.toPoly = C P.c * X + C P.d := by
rw [of_a_eq_zero ha, hb, C_0, zero_mul, zero_add]
[ " 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.Analysis.Convex.Topology import Mathlib.Analysis.NormedSpace.Pointwise import Mathlib.Analysis.Seminorm import Mathlib.Analysis.LocallyConvex.Bounded import Mathlib.Analysis.RCLike.Basic #align_import analysis.convex.gauge from "leanprover-community/mathlib"@"373b03b5b9d0486534edbe94747f23cb3712f93d" ...
Mathlib/Analysis/Convex/Gauge.lean
103
110
theorem gauge_zero' : gauge (0 : Set E) = 0 := by
ext x rw [gauge_def'] obtain rfl | hx := eq_or_ne x 0 · simp only [csInf_Ioi, mem_zero, Pi.zero_apply, eq_self_iff_true, sep_true, smul_zero] · simp only [mem_zero, Pi.zero_apply, inv_eq_zero, smul_eq_zero] convert Real.sInf_empty exact eq_empty_iff_forall_not_mem.2 fun r hr => hr.2.elim (ne_of_gt hr...
[ " gauge s x = sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • x ∈ s}", " 0 < r ∧ x ∈ r • s ↔ r ∈ Ioi 0 ∧ r⁻¹ • x ∈ s", " ∃ b, 0 < b ∧ b < a ∧ x ∈ b • s", " gauge s 0 = 0", " sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • 0 ∈ s} = 0", " gauge 0 = 0", " gauge 0 x = 0 x", " sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • x ∈ 0} = 0 x", " sInf {r | r ∈ Ioi 0 ∧ ...
[ " gauge s x = sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • x ∈ s}", " 0 < r ∧ x ∈ r • s ↔ r ∈ Ioi 0 ∧ r⁻¹ • x ∈ s", " ∃ b, 0 < b ∧ b < a ∧ x ∈ b • s", " gauge s 0 = 0", " sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • 0 ∈ s} = 0" ]
import Mathlib.Algebra.Group.Equiv.TypeTags import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.Module.LinearMap.Basic import Mathlib.Algebra.MonoidAlgebra.Basic import Mathlib.LinearAlgebra.Dual import Mathlib.LinearAlgebra.Contraction import Mathlib.RingTheory.TensorProduct.Basic #align_import representation_...
Mathlib/RepresentationTheory/Basic.lean
221
234
theorem ofModule_asAlgebraHom_apply_apply (r : MonoidAlgebra k G) (m : RestrictScalars k (MonoidAlgebra k G) M) : ((ofModule M).asAlgebraHom r) m = (RestrictScalars.addEquiv _ _ _).symm (r • RestrictScalars.addEquiv _ _ _ m) := by
apply MonoidAlgebra.induction_on r · intro g simp only [one_smul, MonoidAlgebra.lift_symm_apply, MonoidAlgebra.of_apply, Representation.asAlgebraHom_single, Representation.ofModule, AddEquiv.apply_eq_iff_eq, RestrictScalars.lsmul_apply_apply] · intro f g fw gw simp only [fw, gw, map_add, add_...
[ " ρ.asAlgebraHom (Finsupp.single g r) = r • ρ g", " ρ.asAlgebraHom (Finsupp.single g 1) = ρ g", " ρ.asAlgebraHom ((of k G) g) = ρ g", " ρ.asModuleEquiv.symm (r • x) = (algebraMap k (MonoidAlgebra k G)) r • ρ.asModuleEquiv.symm x", " ρ.asModuleEquiv (ρ.asModuleEquiv.symm (r • x)) =\n ρ.asModuleEquiv ((alg...
[ " ρ.asAlgebraHom (Finsupp.single g r) = r • ρ g", " ρ.asAlgebraHom (Finsupp.single g 1) = ρ g", " ρ.asAlgebraHom ((of k G) g) = ρ g", " ρ.asModuleEquiv.symm (r • x) = (algebraMap k (MonoidAlgebra k G)) r • ρ.asModuleEquiv.symm x", " ρ.asModuleEquiv (ρ.asModuleEquiv.symm (r • x)) =\n ρ.asModuleEquiv ((alg...
import Mathlib.Algebra.GradedMonoid import Mathlib.Algebra.Order.Monoid.Canonical.Defs import Mathlib.Algebra.MvPolynomial.Basic #align_import ring_theory.mv_polynomial.weighted_homogeneous from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section open Set Function Fins...
Mathlib/RingTheory/MvPolynomial/WeightedHomogeneous.lean
196
204
theorem isWeightedHomogeneous_monomial (w : σ → M) (d : σ →₀ ℕ) (r : R) {m : M} (hm : weightedDegree w d = m) : IsWeightedHomogeneous w (monomial d r) m := by
classical intro c hc rw [coeff_monomial] at hc split_ifs at hc with h · subst c exact hm · contradiction
[ " (weightedDegree w) f = f.sum fun i c => c • w i", " weightedTotalDegree' w p = ⊥ ↔ p = 0", " (∀ (s : σ →₀ ℕ), coeff s p ≠ 0 → False) ↔ ∀ (d : σ →₀ ℕ), coeff d p = 0", " weightedTotalDegree' w 0 = ⊥", " (weightedDegree w) c = m", " coeff c a ≠ 0 ∨ coeff c b ≠ 0", " coeff c a + coeff c b = 0", " weigh...
[ " (weightedDegree w) f = f.sum fun i c => c • w i", " weightedTotalDegree' w p = ⊥ ↔ p = 0", " (∀ (s : σ →₀ ℕ), coeff s p ≠ 0 → False) ↔ ∀ (d : σ →₀ ℕ), coeff d p = 0", " weightedTotalDegree' w 0 = ⊥", " (weightedDegree w) c = m", " coeff c a ≠ 0 ∨ coeff c b ≠ 0", " coeff c a + coeff c b = 0", " weigh...
import Mathlib.LinearAlgebra.Contraction #align_import linear_algebra.coevaluation from "leanprover-community/mathlib"@"d6814c584384ddf2825ff038e868451a7c956f31" noncomputable section section coevaluation open TensorProduct FiniteDimensional open TensorProduct universe u v variable (K : Type u) [Field K] var...
Mathlib/LinearAlgebra/Coevaluation.lean
61
76
theorem contractLeft_assoc_coevaluation : (contractLeft K V).rTensor _ ∘ₗ (TensorProduct.assoc K _ _ _).symm.toLinearMap ∘ₗ (coevaluation K V).lTensor (Module.Dual K V) = (TensorProduct.lid K _).symm.toLinearMap ∘ₗ (TensorProduct.rid K _).toLinearMap := by
letI := Classical.decEq (Basis.ofVectorSpaceIndex K V) apply TensorProduct.ext apply (Basis.ofVectorSpace K V).dualBasis.ext; intro j; apply LinearMap.ext_ring rw [LinearMap.compr₂_apply, LinearMap.compr₂_apply, TensorProduct.mk_apply] simp only [LinearMap.coe_comp, Function.comp_apply, LinearEquiv.coe_toLin...
[ " (coevaluation K V) 1 =\n let bV := Basis.ofVectorSpace K V;\n ∑ i : ↑(Basis.ofVectorSpaceIndex K V), bV i ⊗ₜ[K] bV.coord i", " (((Basis.singleton Unit K).constr K) fun x =>\n ∑ i : ↑(Basis.ofVectorSpaceIndex K V), (Basis.ofVectorSpace K V) i ⊗ₜ[K] (Basis.ofVectorSpace K V).coord i)\n 1 =\n ...
[ " (coevaluation K V) 1 =\n let bV := Basis.ofVectorSpace K V;\n ∑ i : ↑(Basis.ofVectorSpaceIndex K V), bV i ⊗ₜ[K] bV.coord i", " (((Basis.singleton Unit K).constr K) fun x =>\n ∑ i : ↑(Basis.ofVectorSpaceIndex K V), (Basis.ofVectorSpace K V) i ⊗ₜ[K] (Basis.ofVectorSpace K V).coord i)\n 1 =\n ...
import Mathlib.Algebra.Algebra.Subalgebra.Basic import Mathlib.Data.Set.UnionLift #align_import algebra.algebra.subalgebra.basic from "leanprover-community/mathlib"@"b915e9392ecb2a861e1e766f0e1df6ac481188ca" namespace Subalgebra open Algebra variable {R A B : Type*} [CommSemiring R] [Semiring A] [Algebra R A] [...
Mathlib/Algebra/Algebra/Subalgebra/Directed.lean
78
81
theorem iSupLift_inclusion {i : ι} (x : K i) (h : K i ≤ T) : iSupLift K dir f hf T hT (inclusion h x) = f i x := by
dsimp [iSupLift, inclusion] rw [Set.iUnionLift_inclusion]
[ " (fun i x => (f i) x) i ⟨x, hxi⟩ = (fun i x => (f i) x) j ⟨x, hxj⟩", " (f i) ⟨x, hxi⟩ = (f j) ⟨x, hxj⟩", " ((f k).comp (inclusion hik)) ⟨x, hxi⟩ = ((f k).comp (inclusion hjk)) ⟨x, hxj⟩", " ↑T ⊆ ⋃ i, ↑(K i)", " Set.iUnionLift (fun i => ↑(K i)) (fun i x => (f i) x) ⋯ ↑T ⋯ 1 = 1", " ∀ (i : ι), ↑1 = ↑1", "...
[ " (fun i x => (f i) x) i ⟨x, hxi⟩ = (fun i x => (f i) x) j ⟨x, hxj⟩", " (f i) ⟨x, hxi⟩ = (f j) ⟨x, hxj⟩", " ((f k).comp (inclusion hik)) ⟨x, hxi⟩ = ((f k).comp (inclusion hjk)) ⟨x, hxj⟩", " ↑T ⊆ ⋃ i, ↑(K i)", " Set.iUnionLift (fun i => ↑(K i)) (fun i x => (f i) x) ⋯ ↑T ⋯ 1 = 1", " ∀ (i : ι), ↑1 = ↑1", "...
import Mathlib.Analysis.SpecialFunctions.Pow.NNReal #align_import analysis.special_functions.pow.asymptotics from "leanprover-community/mathlib"@"0b9eaaa7686280fad8cce467f5c3c57ee6ce77f8" set_option linter.uppercaseLean3 false noncomputable section open scoped Classical open Real Topology NNReal ENNReal Filter C...
Mathlib/Analysis/SpecialFunctions/Pow/Asymptotics.lean
36
46
theorem tendsto_rpow_atTop {y : ℝ} (hy : 0 < y) : Tendsto (fun x : ℝ => x ^ y) atTop atTop := by
rw [tendsto_atTop_atTop] intro b use max b 0 ^ (1 / y) intro x hx exact le_of_max_le_left (by convert rpow_le_rpow (rpow_nonneg (le_max_right b 0) (1 / y)) hx (le_of_lt hy) using 1 rw [← rpow_mul (le_max_right b 0), (eq_div_iff (ne_of_gt hy)).mp rfl, Real.rpow_one])
[ " Tendsto (fun x => x ^ y) atTop atTop", " ∀ (b : ℝ), ∃ i, ∀ (a : ℝ), i ≤ a → b ≤ a ^ y", " ∃ i, ∀ (a : ℝ), i ≤ a → b ≤ a ^ y", " ∀ (a : ℝ), max b 0 ^ (1 / y) ≤ a → b ≤ a ^ y", " b ≤ x ^ y", " max b ?m.800 ≤ x ^ y", " max b ?m.800 = (max b 0 ^ (1 / y)) ^ y" ]
[]
import Mathlib.Logic.Encodable.Lattice import Mathlib.MeasureTheory.MeasurableSpace.Defs #align_import measure_theory.pi_system from "leanprover-community/mathlib"@"98e83c3d541c77cdb7da20d79611a780ff8e7d90" open MeasurableSpace Set open scoped Classical open MeasureTheory def IsPiSystem {α} (C : Set (Set α)) :...
Mathlib/MeasureTheory/PiSystem.lean
149
151
theorem isPiSystem_image_Iic (s : Set α) : IsPiSystem (Iic '' s) := by
rintro _ ⟨a, ha, rfl⟩ _ ⟨b, hb, rfl⟩ - exact ⟨a ⊓ b, inf_ind a b ha hb, Iic_inter_Iic.symm⟩
[ " IsPiSystem {S}", " s ∩ t ∈ {S}", " IsPiSystem (insert ∅ S)", " s ∩ t ∈ insert ∅ S", " IsPiSystem (insert univ S)", " s ∩ t ∈ insert univ S", " IsPiSystem {s | ∃ t ∈ S, f ⁻¹' t = s}", " f ⁻¹' s ∩ f ⁻¹' t ∈ {s | ∃ t ∈ S, f ⁻¹' t = s}", " f ⁻¹' (s ∩ t) ∈ {s | ∃ t ∈ S, f ⁻¹' t = s}", " IsPiSystem (⋃...
[ " IsPiSystem {S}", " s ∩ t ∈ {S}", " IsPiSystem (insert ∅ S)", " s ∩ t ∈ insert ∅ S", " IsPiSystem (insert univ S)", " s ∩ t ∈ insert univ S", " IsPiSystem {s | ∃ t ∈ S, f ⁻¹' t = s}", " f ⁻¹' s ∩ f ⁻¹' t ∈ {s | ∃ t ∈ S, f ⁻¹' t = s}", " f ⁻¹' (s ∩ t) ∈ {s | ∃ t ∈ S, f ⁻¹' t = s}", " IsPiSystem (⋃...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Data.Nat.Choose.Sum import Mathlib.Data.Nat.Factorial.BigOperators import Mathlib.Data.Fin.VecNotation import Mathlib.Data.Finset.Sym import Mathlib.Data.Finsupp.Multiset #align_import data.nat.choose.multinomial from "leanprover-community/mathlib"@"2738d2ca56cbc...
Mathlib/Data/Nat/Choose/Multinomial.lean
112
114
theorem binomial_spec [DecidableEq α] (hab : a ≠ b) : (f a)! * (f b)! * multinomial {a, b} f = (f a + f b)! := by
simpa [Finset.sum_pair hab, Finset.prod_pair hab] using multinomial_spec {a, b} f
[ " multinomial ∅ f = 1", " multinomial (cons a s ha) f = (f a + ∑ i ∈ s, f i).choose (f a) * multinomial s f", " 0 < ∏ i ∈ cons a s ha, (f i)!", " multinomial (insert a s) f = (f a + ∑ i ∈ s, f i).choose (f a) * multinomial s f", " multinomial {a} f = 1", " (f a + ∑ i ∈ ∅, f i).choose (f a) * multinomial ∅...
[ " multinomial ∅ f = 1", " multinomial (cons a s ha) f = (f a + ∑ i ∈ s, f i).choose (f a) * multinomial s f", " 0 < ∏ i ∈ cons a s ha, (f i)!", " multinomial (insert a s) f = (f a + ∑ i ∈ s, f i).choose (f a) * multinomial s f", " multinomial {a} f = 1", " (f a + ∑ i ∈ ∅, f i).choose (f a) * multinomial ∅...
import Mathlib.LinearAlgebra.Dual open Function Module variable (R M N : Type*) [CommRing R] [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] structure PerfectPairing := toLin : M →ₗ[R] N →ₗ[R] R bijectiveLeft : Bijective toLin bijectiveRight : Bijective toLin.flip attribute [nolint docBlame] P...
Mathlib/LinearAlgebra/PerfectPairing.lean
96
100
theorem toDualRight_symm_toDualLeft (x : M) : p.toDualRight.symm.dualMap (p.toDualLeft x) = Dual.eval R M x := by
ext f simp only [LinearEquiv.dualMap_apply, Dual.eval_apply] exact toDualLeft_of_toDualRight_symm p x f
[ " x = y", " { toLin := toLin✝, bijectiveLeft := bijectiveLeft✝, bijectiveRight := bijectiveRight✝ } = y", " { toLin := toLin✝¹, bijectiveLeft := bijectiveLeft✝¹, bijectiveRight := bijectiveRight✝¹ } =\n { toLin := toLin✝, bijectiveLeft := bijectiveLeft✝, bijectiveRight := bijectiveRight✝ }", " (p (p.toDual...
[ " x = y", " { toLin := toLin✝, bijectiveLeft := bijectiveLeft✝, bijectiveRight := bijectiveRight✝ } = y", " { toLin := toLin✝¹, bijectiveLeft := bijectiveLeft✝¹, bijectiveRight := bijectiveRight✝¹ } =\n { toLin := toLin✝, bijectiveLeft := bijectiveLeft✝, bijectiveRight := bijectiveRight✝ }", " (p (p.toDual...
import Mathlib.Algebra.Divisibility.Basic import Mathlib.Algebra.Group.Basic import Mathlib.Algebra.Ring.Defs #align_import algebra.euclidean_domain.defs from "leanprover-community/mathlib"@"ee7b9f9a9ac2a8d9f04ea39bbfe6b1a3be053b38" universe u class EuclideanDomain (R : Type u) extends CommRing R, Nontrivial R ...
Mathlib/Algebra/EuclideanDomain/Defs.lean
131
133
theorem mod_add_div' (m k : R) : m % k + m / k * k = m := by
rw [mul_comm] exact mod_add_div _ _
[ " m % k + m / k * k = m", " m % k + k * (m / k) = m" ]
[]
import Mathlib.Algebra.Lie.Abelian import Mathlib.Algebra.Lie.IdealOperations import Mathlib.Algebra.Lie.Quotient #align_import algebra.lie.normalizer from "leanprover-community/mathlib"@"938fead7abdc0cbbca8eba7a1052865a169dc102" variable {R L M M' : Type*} variable [CommRing R] [LieRing L] [LieAlgebra R L] varia...
Mathlib/Algebra/Lie/Normalizer.lean
86
87
theorem top_lie_le_iff_le_normalizer (N' : LieSubmodule R L M) : ⁅(⊤ : LieIdeal R L), N⁆ ≤ N' ↔ N ≤ N'.normalizer := by
rw [lie_le_iff]; tauto
[ " ⁅x, a✝ + b✝⁆ ∈ N", " ⁅x, a✝⁆ + ⁅x, b✝⁆ ∈ N", " ⁅x, 0⁆ ∈ N", " ⁅x, t • m⁆ ∈ N", " t • ⁅x, m⁆ ∈ N", " ⁅y, ⁅x, m⁆⁆ ∈ N", " ⁅⁅y, x⁆, m⁆ + ⁅x, ⁅y, m⁆⁆ ∈ N", " N ≤ N.normalizer", " m ∈ N.normalizer", " ∀ (x : L), ⁅x, m⁆ ∈ N", " (N₁ ⊓ N₂).normalizer = N₁.normalizer ⊓ N₂.normalizer", " m✝ ∈ (N₁ ⊓ N₂...
[ " ⁅x, a✝ + b✝⁆ ∈ N", " ⁅x, a✝⁆ + ⁅x, b✝⁆ ∈ N", " ⁅x, 0⁆ ∈ N", " ⁅x, t • m⁆ ∈ N", " t • ⁅x, m⁆ ∈ N", " ⁅y, ⁅x, m⁆⁆ ∈ N", " ⁅⁅y, x⁆, m⁆ + ⁅x, ⁅y, m⁆⁆ ∈ N", " N ≤ N.normalizer", " m ∈ N.normalizer", " ∀ (x : L), ⁅x, m⁆ ∈ N", " (N₁ ⊓ N₂).normalizer = N₁.normalizer ⊓ N₂.normalizer", " m✝ ∈ (N₁ ⊓ N₂...
import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv import Mathlib.Analysis.Calculus.FDeriv.Add import Mathlib.Analysis.Calculus.FDeriv.Prod import Mathlib.Analysis.NormedSpace.Complemented #align_import analysis.calculus.implicit from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a21598...
Mathlib/Analysis/Calculus/Implicit.lean
201
214
theorem implicitFunction_hasStrictFDerivAt (g'inv : G →L[𝕜] E) (hg'inv : φ.rightDeriv.comp g'inv = ContinuousLinearMap.id 𝕜 G) (hg'invf : φ.leftDeriv.comp g'inv = 0) : HasStrictFDerivAt (φ.implicitFunction (φ.leftFun φ.pt)) g'inv (φ.rightFun φ.pt) := by
have := φ.hasStrictFDerivAt.to_localInverse simp only [prodFun] at this convert this.comp (φ.rightFun φ.pt) ((hasStrictFDerivAt_const _ _).prod (hasStrictFDerivAt_id _)) -- Porting note: added parentheses to help `simp` simp only [ContinuousLinearMap.ext_iff, (ContinuousLinearMap.comp_apply)] at hg'inv hg'in...
[ " map (Prod.fst ∘ φ.prodFun) (𝓝 φ.pt) = 𝓝 (φ.prodFun φ.pt).1", " HasStrictFDerivAt (φ.implicitFunction (φ.leftFun φ.pt)) g'inv (φ.rightFun φ.pt)", " g'inv =\n (↑(φ.leftDeriv.equivProdOfSurjectiveOfIsCompl φ.rightDeriv ⋯ ⋯ ⋯).symm).comp\n (ContinuousLinearMap.prod 0 (ContinuousLinearMap.id 𝕜 G))", "...
[ " map (Prod.fst ∘ φ.prodFun) (𝓝 φ.pt) = 𝓝 (φ.prodFun φ.pt).1" ]
import Mathlib.Algebra.Exact import Mathlib.RingTheory.TensorProduct.Basic section Modules open TensorProduct LinearMap section Semiring variable {R : Type*} [CommSemiring R] {M N P Q: Type*} [AddCommMonoid M] [AddCommMonoid N] [AddCommMonoid P] [AddCommMonoid Q] [Module R M] [Module R N] [Module R P] [...
Mathlib/LinearAlgebra/TensorProduct/RightExactness.lean
111
122
theorem LinearMap.lTensor_surjective (hg : Function.Surjective g) : Function.Surjective (lTensor Q g) := by
intro z induction z using TensorProduct.induction_on with | zero => exact ⟨0, map_zero _⟩ | tmul q p => obtain ⟨n, rfl⟩ := hg p exact ⟨q ⊗ₜ[R] n, rfl⟩ | add x y hx hy => obtain ⟨x, rfl⟩ := hx obtain ⟨y, rfl⟩ := hy exact ⟨x + y, map_add _ _ _⟩
[ " range g ≤ Submodule.comap ((TensorProduct.mk R Q P) q) (range (lTensor Q g))", " g n ∈ Submodule.comap ((TensorProduct.mk R Q P) q) (range (lTensor Q g))", " range g ≤ Submodule.comap ((TensorProduct.mk R P Q).flip q) (range (rTensor Q g))", " g n ∈ Submodule.comap ((TensorProduct.mk R P Q).flip q) (range (...
[ " range g ≤ Submodule.comap ((TensorProduct.mk R Q P) q) (range (lTensor Q g))", " g n ∈ Submodule.comap ((TensorProduct.mk R Q P) q) (range (lTensor Q g))", " range g ≤ Submodule.comap ((TensorProduct.mk R P Q).flip q) (range (rTensor Q g))", " g n ∈ Submodule.comap ((TensorProduct.mk R P Q).flip q) (range (...
import Mathlib.SetTheory.Game.Ordinal import Mathlib.SetTheory.Ordinal.NaturalOps #align_import set_theory.game.birthday from "leanprover-community/mathlib"@"a347076985674932c0e91da09b9961ed0a79508c" universe u open Ordinal namespace SetTheory open scoped NaturalOps PGame namespace PGame noncomputable def b...
Mathlib/SetTheory/Game/Birthday.lean
107
107
theorem birthday_one : birthday 1 = 1 := by
rw [birthday_def]; simp
[ " x.birthday = max (lsub fun i => (x.moveLeft i).birthday) (lsub fun i => (x.moveRight i).birthday)", " (mk α✝ β✝ a✝¹ a✝).birthday =\n max (lsub fun i => ((mk α✝ β✝ a✝¹ a✝).moveLeft i).birthday) (lsub fun i => ((mk α✝ β✝ a✝¹ a✝).moveRight i).birthday)", " max (lsub fun i => (a✝¹ i).birthday) (lsub fun i => (...
[ " x.birthday = max (lsub fun i => (x.moveLeft i).birthday) (lsub fun i => (x.moveRight i).birthday)", " (mk α✝ β✝ a✝¹ a✝).birthday =\n max (lsub fun i => ((mk α✝ β✝ a✝¹ a✝).moveLeft i).birthday) (lsub fun i => ((mk α✝ β✝ a✝¹ a✝).moveRight i).birthday)", " max (lsub fun i => (a✝¹ i).birthday) (lsub fun i => (...
import Mathlib.Algebra.Algebra.Spectrum import Mathlib.LinearAlgebra.GeneralLinearGroup import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.RingTheory.Nilpotent.Basic #align_import linear_algebra.eigenspace.basic from "leanprover-community/mathlib"@"6b0169218d01f2837d79ea2784882009a0da1aa1" universe u v...
Mathlib/LinearAlgebra/Eigenspace/Basic.lean
98
101
theorem hasEigenvalue_of_hasEigenvector {f : End R M} {μ : R} {x : M} (h : HasEigenvector f μ x) : HasEigenvalue f μ := by
rw [HasEigenvalue, Submodule.ne_bot_iff] use x; exact h
[ " f.eigenspace 0 = LinearMap.ker f", " f.HasEigenvalue μ", " ∃ x ∈ f.eigenspace μ, x ≠ 0", " x ∈ f.eigenspace μ ∧ x ≠ 0" ]
[ " f.eigenspace 0 = LinearMap.ker f" ]
import Mathlib.Topology.Separation import Mathlib.Topology.Bases #align_import topology.dense_embedding from "leanprover-community/mathlib"@"148aefbd371a25f1cff33c85f20c661ce3155def" noncomputable section open Set Filter open scoped Topology variable {α : Type*} {β : Type*} {γ : Type*} {δ : Type*} structure D...
Mathlib/Topology/DenseEmbedding.lean
83
90
theorem interior_compact_eq_empty [T2Space β] (di : DenseInducing i) (hd : Dense (range i)ᶜ) {s : Set α} (hs : IsCompact s) : interior s = ∅ := by
refine eq_empty_iff_forall_not_mem.2 fun x hx => ?_ rw [mem_interior_iff_mem_nhds] at hx have := di.closure_image_mem_nhds hx rw [(hs.image di.continuous).isClosed.closure_eq] at this rcases hd.inter_nhds_nonempty this with ⟨y, hyi, hys⟩ exact hyi (image_subset_range _ _ hys)
[ " closure (i '' s) ∈ 𝓝 (i a)", " U ⊆ closure (i '' s)", " Dense (i '' s) ↔ Dense s", " x ∈ closure s", " x ∈ univ", " interior s = ∅", " False" ]
[ " closure (i '' s) ∈ 𝓝 (i a)", " U ⊆ closure (i '' s)", " Dense (i '' s) ↔ Dense s", " x ∈ closure s", " x ∈ univ" ]
import Mathlib.SetTheory.Game.Basic import Mathlib.SetTheory.Ordinal.NaturalOps #align_import set_theory.game.ordinal from "leanprover-community/mathlib"@"b90e72c7eebbe8de7c8293a80208ea2ba135c834" universe u open SetTheory PGame open scoped NaturalOps PGame namespace Ordinal noncomputable def toPGame : Ordin...
Mathlib/SetTheory/Game/Ordinal.lean
134
137
theorem toPGame_le {a b : Ordinal} (h : a ≤ b) : a.toPGame ≤ b.toPGame := by
refine le_iff_forall_lf.2 ⟨fun i => ?_, isEmptyElim⟩ rw [toPGame_moveLeft'] exact toPGame_lf ((toLeftMovesToPGame_symm_lt i).trans_le h)
[ " let_fun this := ⋯;\n o.toPGame = mk (Quotient.out o).α PEmpty.{u_1 + 1} (fun x => (typein (fun x x_1 => x < x_1) x).toPGame) PEmpty.elim", " o.toPGame.LeftMoves = (Quotient.out o).α", " o.toPGame.RightMoves = PEmpty.{u_1 + 1}", " IsEmpty (toPGame 0).LeftMoves", " IsEmpty (Quotient.out 0).α", " IsEmpty ...
[ " let_fun this := ⋯;\n o.toPGame = mk (Quotient.out o).α PEmpty.{u_1 + 1} (fun x => (typein (fun x x_1 => x < x_1) x).toPGame) PEmpty.elim", " o.toPGame.LeftMoves = (Quotient.out o).α", " o.toPGame.RightMoves = PEmpty.{u_1 + 1}", " IsEmpty (toPGame 0).LeftMoves", " IsEmpty (Quotient.out 0).α", " IsEmpty ...
import Mathlib.Data.PFunctor.Multivariate.W import Mathlib.Data.QPF.Multivariate.Basic #align_import data.qpf.multivariate.constructions.fix from "leanprover-community/mathlib"@"28aa996fc6fb4317f0083c4e6daf79878d81be33" universe u v namespace MvQPF open TypeVec open MvFunctor (LiftP LiftR) open MvFunctor var...
Mathlib/Data/QPF/Multivariate/Constructions/Fix.lean
64
67
theorem recF_eq {α : TypeVec n} {β : Type u} (g : F (α.append1 β) → β) (a : q.P.A) (f' : q.P.drop.B a ⟹ α) (f : q.P.last.B a → q.P.W α) : recF g (q.P.wMk a f' f) = g (abs ⟨a, splitFun f' (recF g ∘ f)⟩) := by
rw [recF, MvPFunctor.wRec_eq]; rfl
[ " recF g ((P F).wMk a f' f) = g (abs ⟨a, splitFun f' (recF g ∘ f)⟩)", " g (abs ⟨a, splitFun f' fun i => (P F).wRec (fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) (f i)⟩) =\n g (abs ⟨a, splitFun f' (((P F).wRec fun a f' _f rec => g (abs ⟨a, splitFun f' rec⟩)) ∘ f)⟩)" ]
[]
import Mathlib.FieldTheory.Galois import Mathlib.Topology.Algebra.FilterBasis import Mathlib.Topology.Algebra.OpenSubgroup import Mathlib.Tactic.ByContra #align_import field_theory.krull_topology from "leanprover-community/mathlib"@"039a089d2a4b93c761b234f3e5f5aeb752bac60f" open scoped Classical Pointwise theore...
Mathlib/FieldTheory/KrullTopology.lean
93
100
theorem IntermediateField.fixingSubgroup.bot {K L : Type*} [Field K] [Field L] [Algebra K L] : IntermediateField.fixingSubgroup (⊥ : IntermediateField K L) = ⊤ := by
ext f refine ⟨fun _ => Subgroup.mem_top _, fun _ => ?_⟩ rintro ⟨x, hx : x ∈ (⊥ : IntermediateField K L)⟩ rw [IntermediateField.mem_bot] at hx rcases hx with ⟨y, rfl⟩ exact f.commutes y
[ " ⊥.fixingSubgroup = ⊤", " f ∈ ⊥.fixingSubgroup ↔ f ∈ ⊤", " f ∈ ⊥.fixingSubgroup", " f • ↑⟨x, hx⟩ = ↑⟨x, hx⟩", " f • ↑⟨x, hx✝⟩ = ↑⟨x, hx✝⟩", " f • ↑⟨(algebraMap K L) y, hx⟩ = ↑⟨(algebraMap K L) y, hx⟩" ]
[]
import Mathlib.Algebra.Group.Subgroup.Finite import Mathlib.Algebra.Group.Subgroup.Pointwise import Mathlib.GroupTheory.Congruence.Basic import Mathlib.GroupTheory.Coset #align_import group_theory.quotient_group from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf" open Function open scope...
Mathlib/GroupTheory/QuotientGroup.lean
149
152
theorem eq_iff_div_mem {N : Subgroup G} [nN : N.Normal] {x y : G} : (x : G ⧸ N) = y ↔ x / y ∈ N := by
refine eq_comm.trans (QuotientGroup.eq.trans ?_) rw [nN.mem_comm_iff, div_eq_mul_inv]
[ " Setoid.r (a * c) (b * d)", " (fun x y => x⁻¹ * y ∈ N) (a * c) (b * d)", " (a * c)⁻¹ * (b * d) ∈ N", " (a * c)⁻¹ * (b * d) = c⁻¹ * (a⁻¹ * b) * c⁻¹⁻¹ * (c⁻¹ * d)", " x⁻¹ * y ∈ N ↔ ∃ z ∈ N, x * z = y", " g • ⇑(mk' N) ⁻¹' U = ⇑(mk' N) ⁻¹' U", " x ∈ g • ⇑(mk' N) ⁻¹' U ↔ x ∈ ⇑(mk' N) ⁻¹' U", " (mk' N) (g⁻...
[ " Setoid.r (a * c) (b * d)", " (fun x y => x⁻¹ * y ∈ N) (a * c) (b * d)", " (a * c)⁻¹ * (b * d) ∈ N", " (a * c)⁻¹ * (b * d) = c⁻¹ * (a⁻¹ * b) * c⁻¹⁻¹ * (c⁻¹ * d)", " x⁻¹ * y ∈ N ↔ ∃ z ∈ N, x * z = y", " g • ⇑(mk' N) ⁻¹' U = ⇑(mk' N) ⁻¹' U", " x ∈ g • ⇑(mk' N) ⁻¹' U ↔ x ∈ ⇑(mk' N) ⁻¹' U", " (mk' N) (g⁻...
import Mathlib.Combinatorics.SetFamily.Shadow #align_import combinatorics.set_family.compression.uv from "leanprover-community/mathlib"@"6f8ab7de1c4b78a68ab8cf7dd83d549eb78a68a1" open Finset variable {α : Type*} theorem sup_sdiff_injOn [GeneralizedBooleanAlgebra α] (u v : α) : { x | Disjoint u x ∧ v ≤ x }....
Mathlib/Combinatorics/SetFamily/Compression/UV.lean
107
110
theorem compress_sdiff_sdiff (a b : α) : compress (a \ b) (b \ a) b = a := by
refine (compress_of_disjoint_of_le disjoint_sdiff_self_left sdiff_le).trans ?_ rw [sup_sdiff_self_right, sup_sdiff, disjoint_sdiff_self_right.sdiff_eq_left, sup_eq_right] exact sdiff_sdiff_le
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a", " compress (a \\ b) (b...
[ " Set.InjOn (fun x => (x ⊔ u) \\ v) {x | Disjoint u x ∧ v ≤ x}", " a = b", " ((a ⊔ u) \\ v) \\ u ⊔ v = ((b ⊔ u) \\ v) \\ u ⊔ v", " compress u v ((a ⊔ v) \\ u) = a", " compress u u a = a", " (if Disjoint u a ∧ u ≤ a then (a ⊔ u) \\ u else a) = a", " (a ⊔ u) \\ u = a", " a = a" ]
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Algebra.BigOperators.Ring import Mathlib.Algebra.Order.Group.Indicator import Mathlib.Order.LiminfLimsup import Mathlib.Order.Filter.Archimedean import Mathlib.Order.Filter.CountableInter import Mathlib.Topology.Algebra.Group.Basic import Mathlib.Data.Set.La...
Mathlib/Topology/Algebra/Order/LiminfLimsup.lean
487
498
theorem iUnion_Ici_eq_Ioi_of_lt_of_tendsto (x : R) {as : ι → R} (x_lt : ∀ i, x < as i) {F : Filter ι} [Filter.NeBot F] (as_lim : Filter.Tendsto as F (𝓝 x)) : ⋃ i : ι, Ici (as i) = Ioi x := by
have obs : x ∉ range as := by intro maybe_x_is rcases mem_range.mp maybe_x_is with ⟨i, hi⟩ simpa only [hi, lt_self_iff_false] using x_lt i -- Porting note: `rw at *` was too destructive. Let's only rewrite `obs` and the goal. have := iInf_eq_of_forall_le_of_tendsto (fun i ↦ (x_lt i).le) as_lim rw [...
[ " ⨅ i, as i = x", " ∀ (w : R), x < w → ∃ i, as i < w", " ⋃ i, Ici (as i) = Ioi x", " x ∉ range as", " False", " ⋃ i, Ici (as i) = Ioi (⨅ i, as i)" ]
[ " ⨅ i, as i = x", " ∀ (w : R), x < w → ∃ i, as i < w" ]
import Mathlib.Algebra.MvPolynomial.Supported import Mathlib.RingTheory.WittVector.Truncated #align_import ring_theory.witt_vector.mul_coeff from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section namespace WittVector variable (p : ℕ) [hp : Fact p.Prime] variable {k ...
Mathlib/RingTheory/WittVector/MulCoeff.lean
69
85
theorem wittPolyProdRemainder_vars (n : ℕ) : (wittPolyProdRemainder p n).vars ⊆ univ ×ˢ range n := by
rw [wittPolyProdRemainder] refine Subset.trans (vars_sum_subset _ _) ?_ rw [biUnion_subset] intro x hx apply Subset.trans (vars_mul _ _) refine union_subset ?_ ?_ · apply Subset.trans (vars_pow _ _) have : (p : 𝕄) = C (p : ℤ) := by simp only [Int.cast_natCast, eq_intCast] rw [this, vars_C] a...
[ " (wittPolyProd p n).vars ⊆ univ ×ˢ range (n + 1)", " ((rename (Prod.mk 0)) (wittPolynomial p ℤ n) * (rename (Prod.mk 1)) (wittPolynomial p ℤ n)).vars ⊆\n univ ×ˢ range (n + 1)", " ((rename (Prod.mk 0)) (wittPolynomial p ℤ n)).vars ∪ ((rename (Prod.mk 1)) (wittPolynomial p ℤ n)).vars ⊆\n univ ×ˢ range (n ...
[ " (wittPolyProd p n).vars ⊆ univ ×ˢ range (n + 1)", " ((rename (Prod.mk 0)) (wittPolynomial p ℤ n) * (rename (Prod.mk 1)) (wittPolynomial p ℤ n)).vars ⊆\n univ ×ˢ range (n + 1)", " ((rename (Prod.mk 0)) (wittPolynomial p ℤ n)).vars ∪ ((rename (Prod.mk 1)) (wittPolynomial p ℤ n)).vars ⊆\n univ ×ˢ range (n ...
import Mathlib.Data.Nat.Cast.Basic import Mathlib.Algebra.CharZero.Defs import Mathlib.Algebra.Order.Group.Abs import Mathlib.Data.Nat.Cast.NeZero import Mathlib.Algebra.Order.Ring.Nat #align_import data.nat.cast.basic from "leanprover-community/mathlib"@"acebd8d49928f6ed8920e502a6c90674e75bd441" variable {α β : T...
Mathlib/Data/Nat/Cast/Order.lean
134
134
theorem one_lt_cast : 1 < (n : α) ↔ 1 < n := by
rw [← cast_one, cast_lt]
[ " ↑n ≤ ↑(n + 1)", " ↑n ≤ ↑n + 1", " 1 < ↑n ↔ 1 < n" ]
[ " ↑n ≤ ↑(n + 1)", " ↑n ≤ ↑n + 1" ]
import Mathlib.Order.RelClasses import Mathlib.Order.Interval.Set.Basic #align_import order.bounded from "leanprover-community/mathlib"@"aba57d4d3dae35460225919dcd82fe91355162f9" namespace Set variable {α : Type*} {r : α → α → Prop} {s t : Set α} theorem Bounded.mono (hst : s ⊆ t) (hs : Bounded r t) : Bounde...
Mathlib/Order/Bounded.lean
108
113
theorem bounded_le_iff_bounded_lt [Preorder α] [NoMaxOrder α] : Bounded (· ≤ ·) s ↔ Bounded (· < ·) s := by
refine ⟨fun h => ?_, bounded_le_of_bounded_lt⟩ cases' h with a ha cases' exists_gt a with b hb exact ⟨b, fun c hc => lt_of_le_of_lt (ha c hc) hb⟩
[ " Unbounded (fun x x_1 => x ≤ x_1) s ↔ ∀ (a : α), ∃ b ∈ s, a < b", " Unbounded (fun x x_1 => x < x_1) s ↔ ∀ (a : α), ∃ b ∈ s, a ≤ b", " Bounded (fun x x_1 => x ≤ x_1) s ↔ Bounded (fun x x_1 => x < x_1) s", " Bounded (fun x x_1 => x < x_1) s" ]
[ " Unbounded (fun x x_1 => x ≤ x_1) s ↔ ∀ (a : α), ∃ b ∈ s, a < b", " Unbounded (fun x x_1 => x < x_1) s ↔ ∀ (a : α), ∃ b ∈ s, a ≤ b" ]
import Mathlib.Algebra.Associated import Mathlib.Algebra.GeomSum import Mathlib.Algebra.GroupWithZero.NonZeroDivisors import Mathlib.Algebra.Module.Defs import Mathlib.Algebra.SMulWithZero import Mathlib.Data.Nat.Choose.Sum import Mathlib.Data.Nat.Lattice import Mathlib.RingTheory.Nilpotent.Defs #align_import ring_th...
Mathlib/RingTheory/Nilpotent/Basic.lean
58
62
theorem IsNilpotent.isUnit_sub_one [Ring R] {r : R} (hnil : IsNilpotent r) : IsUnit (r - 1) := by
obtain ⟨n, hn⟩ := hnil refine ⟨⟨r - 1, -∑ i ∈ Finset.range n, r ^ i, ?_, ?_⟩, rfl⟩ · simp [mul_geom_sum, hn] · simp [geom_sum_mul, hn]
[ " IsNilpotent (-x)", " (-x) ^ n = 0", " IsNilpotent (t • a)", " (t • a) ^ k = 0", " IsUnit (r - 1)", " (r - 1) * -∑ i ∈ Finset.range n, r ^ i = 1", " (-∑ i ∈ Finset.range n, r ^ i) * (r - 1) = 1" ]
[ " IsNilpotent (-x)", " (-x) ^ n = 0", " IsNilpotent (t • a)", " (t • a) ^ k = 0" ]
import Mathlib.GroupTheory.GroupAction.BigOperators import Mathlib.Logic.Equiv.Fin import Mathlib.Algebra.BigOperators.Pi import Mathlib.Algebra.Module.Prod import Mathlib.Algebra.Module.Submodule.Ker #align_import linear_algebra.pi from "leanprover-community/mathlib"@"dc6c365e751e34d100e80fe6e314c3c3e0fd2988" un...
Mathlib/LinearAlgebra/Pi.lean
69
69
theorem pi_zero : pi (fun i => 0 : (i : ι) → M₂ →ₗ[R] φ i) = 0 := by
ext; rfl
[ " ker (pi f) = ⨅ i, ker (f i)", " c ∈ ker (pi f) ↔ c ∈ ⨅ i, ker (f i)", " pi f = 0 ↔ ∀ (i : ι), f i = 0", " (∀ (x : M₂) (a : ι), (f a) x = 0 x a) ↔ ∀ (i : ι) (x : M₂), (f i) x = 0 x", " (pi fun i => 0) = 0", " (pi fun i => 0) x✝¹ x✝ = 0 x✝¹ x✝" ]
[ " ker (pi f) = ⨅ i, ker (f i)", " c ∈ ker (pi f) ↔ c ∈ ⨅ i, ker (f i)", " pi f = 0 ↔ ∀ (i : ι), f i = 0", " (∀ (x : M₂) (a : ι), (f a) x = 0 x a) ↔ ∀ (i : ι) (x : M₂), (f i) x = 0 x" ]
import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Data.Int.Log #align_import analysis.special_functions.log.base from "leanprover-community/mathlib"@"f23a09ce6d3f367220dc3cecad6b7eb69eb01690" open Set Filter Function open Topology noncomputable section namespace Real variable {b x y : ℝ} -- @...
Mathlib/Analysis/SpecialFunctions/Log/Base.lean
97
98
theorem logb_mul_base {a b : ℝ} (h₁ : a ≠ 0) (h₂ : b ≠ 0) (c : ℝ) : logb (a * b) c = ((logb a c)⁻¹ + (logb b c)⁻¹)⁻¹ := by
rw [← inv_logb_mul_base h₁ h₂ c, inv_inv]
[ " b.logb 0 = 0", " b.logb 1 = 0", " False", " b.logb |x| = b.logb x", " b.logb (-x) = b.logb x", " b.logb (x * y) = b.logb x + b.logb y", " b.logb (x / y) = b.logb x - b.logb y", " b.logb x⁻¹ = -b.logb x", " (a.logb b)⁻¹ = b.logb a", " ((a * b).logb c)⁻¹ = (a.logb c)⁻¹ + (b.logb c)⁻¹", " c.logb ...
[ " b.logb 0 = 0", " b.logb 1 = 0", " False", " b.logb |x| = b.logb x", " b.logb (-x) = b.logb x", " b.logb (x * y) = b.logb x + b.logb y", " b.logb (x / y) = b.logb x - b.logb y", " b.logb x⁻¹ = -b.logb x", " (a.logb b)⁻¹ = b.logb a", " ((a * b).logb c)⁻¹ = (a.logb c)⁻¹ + (b.logb c)⁻¹", " c.logb ...
import Mathlib.Algebra.Homology.Homotopy import Mathlib.AlgebraicTopology.DoldKan.Notations #align_import algebraic_topology.dold_kan.homotopies from "leanprover-community/mathlib"@"b12099d3b7febf4209824444dd836ef5ad96db55" open CategoryTheory CategoryTheory.Category CategoryTheory.Limits CategoryTheory.Preadditi...
Mathlib/AlgebraicTopology/DoldKan/Homotopies.lean
156
166
theorem hσ'_naturality (q : ℕ) (n m : ℕ) (hnm : c.Rel m n) {X Y : SimplicialObject C} (f : X ⟶ Y) : f.app (op [n]) ≫ hσ' q n m hnm = hσ' q n m hnm ≫ f.app (op [m]) := by
have h : n + 1 = m := hnm subst h simp only [hσ', eqToHom_refl, comp_id] unfold hσ split_ifs · rw [zero_comp, comp_zero] · simp only [zsmul_comp, comp_zsmul] erw [f.naturality] rfl
[ " ¬c.Rel 0 j", " False", " j.succ ≤ 0", " X _[n + 1] = K[X].X m", " hσ' q n m hnm = 0", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ eqToHom ⋯ = 0", " 0 ≫ eqToHom ⋯ = 0", " hσ' q n m hnm = ((-1) ^ a • X.σ ⟨a, ⋯⟩) ≫ eqToHom ⋯", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ ...
[ " ¬c.Rel 0 j", " False", " j.succ ≤ 0", " X _[n + 1] = K[X].X m", " hσ' q n m hnm = 0", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ eqToHom ⋯ = 0", " 0 ≫ eqToHom ⋯ = 0", " hσ' q n m hnm = ((-1) ^ a • X.σ ⟨a, ⋯⟩) ≫ eqToHom ⋯", " (if n < q then 0 else (-1) ^ (n - q) • X.σ ⟨n - q, ⋯⟩) ≫ ...
import Mathlib.Analysis.Calculus.ContDiff.Basic import Mathlib.Analysis.Calculus.Deriv.Mul import Mathlib.Analysis.Calculus.Deriv.Shift import Mathlib.Analysis.Calculus.IteratedDeriv.Defs variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {F : Type*} [NormedAddCommGroup F] [NormedSpace 𝕜 F] {R : Type*} [Semi...
Mathlib/Analysis/Calculus/IteratedDeriv/Lemmas.lean
48
56
theorem iteratedDerivWithin_const_neg (hn : 0 < n) (c : F) : iteratedDerivWithin n (fun z => c - f z) s x = iteratedDerivWithin n (fun z => -f z) s x := by
obtain ⟨n, rfl⟩ := n.exists_eq_succ_of_ne_zero hn.ne' rw [iteratedDerivWithin_succ' h hx, iteratedDerivWithin_succ' h hx] refine iteratedDerivWithin_congr h ?_ hx intro y hy have : UniqueDiffWithinAt 𝕜 s y := h.uniqueDiffWithinAt hy rw [derivWithin.neg this] exact derivWithin_const_sub this _
[ " iteratedDerivWithin n (f + g) s x = iteratedDerivWithin n f s x + iteratedDerivWithin n g s x", " Set.EqOn (iteratedDerivWithin n f s) (iteratedDerivWithin n g s) s", " Set.EqOn (iteratedDerivWithin 0 f s) (iteratedDerivWithin 0 g s) s", " Set.EqOn (iteratedDerivWithin (n + 1) f s) (iteratedDerivWithin (n +...
[ " iteratedDerivWithin n (f + g) s x = iteratedDerivWithin n f s x + iteratedDerivWithin n g s x", " Set.EqOn (iteratedDerivWithin n f s) (iteratedDerivWithin n g s) s", " Set.EqOn (iteratedDerivWithin 0 f s) (iteratedDerivWithin 0 g s) s", " Set.EqOn (iteratedDerivWithin (n + 1) f s) (iteratedDerivWithin (n +...
import Mathlib.Topology.Algebra.Module.WeakDual import Mathlib.Algebra.Algebra.Spectrum import Mathlib.Topology.ContinuousFunction.Algebra import Mathlib.Data.Set.Lattice #align_import topology.algebra.module.character_space from "leanprover-community/mathlib"@"a148d797a1094ab554ad4183a4ad6f130358ef64" namespace ...
Mathlib/Topology/Algebra/Module/CharacterSpace.lean
128
134
theorem union_zero_isClosed [T2Space 𝕜] [ContinuousMul 𝕜] : IsClosed (characterSpace 𝕜 A ∪ {0}) := by
simp only [union_zero, Set.setOf_forall] exact isClosed_iInter fun x => isClosed_iInter fun y => isClosed_eq (eval_continuous _) <| (eval_continuous _).mul (eval_continuous _)
[ " φ = ψ", " ↑φ = ↑ψ", " ∀ (x : A), ↑φ x = ↑ψ x", " ↑φ x = 0 x", " characterSpace 𝕜 A ∪ {0} ≤ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " φ ∈ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " 0 ∈ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " 0 (x✝¹ * x✝) = 0 x✝¹ * 0 x✝", " IsClosed (characterSpace 𝕜 A ∪...
[ " φ = ψ", " ↑φ = ↑ψ", " ∀ (x : A), ↑φ x = ↑ψ x", " ↑φ x = 0 x", " characterSpace 𝕜 A ∪ {0} ≤ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " φ ∈ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " 0 ∈ {φ | ∀ (x y : A), φ (x * y) = φ x * φ y}", " 0 (x✝¹ * x✝) = 0 x✝¹ * 0 x✝" ]