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.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
154
163
theorem eigenspace_div (f : End K V) (a b : K) (hb : b ≠ 0) : eigenspace f (a / b) = LinearMap.ker (b • f - algebraMap K (End K V) a) := calc eigenspace f (a / b) = eigenspace f (b⁻¹ * a) := by
rw [div_eq_mul_inv, mul_comm] _ = LinearMap.ker (f - (b⁻¹ * a) • LinearMap.id) := by rw [eigenspace]; rfl _ = LinearMap.ker (f - b⁻¹ • a • LinearMap.id) := by rw [smul_smul] _ = LinearMap.ker (f - b⁻¹ • algebraMap K (End K V) a) := rfl _ = LinearMap.ker (b • (f - b⁻¹ • algebraMap K (End K V) a)) := by ...
[ " f.eigenspace 0 = LinearMap.ker f", " f.HasEigenvalue μ", " ∃ x ∈ f.eigenspace μ, x ≠ 0", " x ∈ f.eigenspace μ ∧ x ≠ 0", " x ∈ f.eigenspace μ ↔ f x = μ • x", " (f ^ n) v = μ ^ n • v", " (f ^ 0) v = μ ^ 0 • v", " (f ^ (n✝ + 1)) v = μ ^ (n✝ + 1) • v", " (f ^ n).HasEigenvalue (μ ^ n)", " ∃ x ∈ (f ^ ...
[ " f.eigenspace 0 = LinearMap.ker f", " f.HasEigenvalue μ", " ∃ x ∈ f.eigenspace μ, x ≠ 0", " x ∈ f.eigenspace μ ∧ x ≠ 0", " x ∈ f.eigenspace μ ↔ f x = μ • x", " (f ^ n) v = μ ^ n • v", " (f ^ 0) v = μ ^ 0 • v", " (f ^ (n✝ + 1)) v = μ ^ (n✝ + 1) • v", " (f ^ n).HasEigenvalue (μ ^ n)", " ∃ x ∈ (f ^ ...
import Mathlib.MeasureTheory.MeasurableSpace.Defs import Mathlib.SetTheory.Cardinal.Cofinality import Mathlib.SetTheory.Cardinal.Continuum #align_import measure_theory.card_measurable_space from "leanprover-community/mathlib"@"f2b108e8e97ba393f22bf794989984ddcc1da89b" universe u variable {α : Type u} open Cardi...
Mathlib/MeasureTheory/MeasurableSpace/Card.lean
68
71
theorem compl_mem_generateMeasurableRec {s : Set (Set α)} {i j : ω₁} (h : j < i) {t : Set α} (ht : t ∈ generateMeasurableRec s j) : tᶜ ∈ generateMeasurableRec s i := by
unfold generateMeasurableRec exact mem_union_left _ (mem_union_right _ ⟨t, mem_iUnion.2 ⟨⟨j, h⟩, ht⟩, rfl⟩)
[ " (invImage (fun x => x) (hasWellFoundedOut (aleph 1).ord)).1 (↑j) a✝", " s ⊆ generateMeasurableRec s i", " s ⊆\n let i := i;\n let S := ⋃ j, generateMeasurableRec s ↑j;\n s ∪ {∅} ∪ compl '' S ∪ range fun f => ⋃ n, ↑(f n)", " s ⊆ s", " ∅ ∈ generateMeasurableRec s i", " ∅ ∈\n let i := i;\n l...
[ " (invImage (fun x => x) (hasWellFoundedOut (aleph 1).ord)).1 (↑j) a✝", " s ⊆ generateMeasurableRec s i", " s ⊆\n let i := i;\n let S := ⋃ j, generateMeasurableRec s ↑j;\n s ∪ {∅} ∪ compl '' S ∪ range fun f => ⋃ n, ↑(f n)", " s ⊆ s", " ∅ ∈ generateMeasurableRec s i", " ∅ ∈\n let i := i;\n l...
import Mathlib.CategoryTheory.NatIso import Mathlib.Logic.Equiv.Defs #align_import category_theory.functor.fully_faithful from "leanprover-community/mathlib"@"70d50ecfd4900dd6d328da39ab7ebd516abe4025" -- declare the `v`'s first; see `CategoryTheory.Category` for an explanation universe v₁ v₂ v₃ u₁ u₂ u₃ namespac...
Mathlib/CategoryTheory/Functor/FullyFaithful.lean
125
127
theorem preimageIso_mapIso (f : X ≅ Y) : F.preimageIso (F.mapIso f) = f := by
ext simp
[ " F.map f = F.map g", " F.map (F.preimage (𝟙 (F.obj X))) = F.map (𝟙 X)", " F.map (F.preimage (f ≫ g)) = F.map (F.preimage f ≫ F.preimage g)", " F.map (F.preimage (F.map f)) = F.map f", " F.map (F.preimage f.hom ≫ F.preimage f.inv) = F.map (𝟙 X)", " F.map (F.preimage f.inv ≫ F.preimage f.hom) = F.map (�...
[ " F.map f = F.map g", " F.map (F.preimage (𝟙 (F.obj X))) = F.map (𝟙 X)", " F.map (F.preimage (f ≫ g)) = F.map (F.preimage f ≫ F.preimage g)", " F.map (F.preimage (F.map f)) = F.map f", " F.map (F.preimage f.hom ≫ F.preimage f.inv) = F.map (𝟙 X)", " F.map (F.preimage f.inv ≫ F.preimage f.hom) = F.map (�...
import Mathlib.CategoryTheory.Limits.Shapes.Terminal import Mathlib.CategoryTheory.Limits.Shapes.BinaryProducts #align_import category_theory.limits.shapes.strict_initial from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" universe v u namespace CategoryTheory namespace Limits open C...
Mathlib/CategoryTheory/Limits/Shapes/StrictInitial.lean
192
195
theorem IsTerminal.strict_hom_ext (hI : IsTerminal I) {A : C} (f g : I ⟶ A) : f = g := by
haveI := hI.isIso_from f haveI := hI.isIso_from g exact eq_of_inv_eq_inv (hI.hom_ext (inv f) (inv g))
[ " f = g" ]
[]
import Mathlib.Data.Countable.Basic import Mathlib.Logic.Encodable.Basic import Mathlib.Order.SuccPred.Basic import Mathlib.Order.Interval.Finset.Defs #align_import order.succ_pred.linear_locally_finite from "leanprover-community/mathlib"@"2705404e701abc6b3127da906f40bae062a169c9" open Order variable {ι : Type*}...
Mathlib/Order/SuccPred/LinearLocallyFinite.lean
108
112
theorem le_of_lt_succFn (j i : ι) (hij : j < succFn i) : j ≤ i := by
rw [lt_isGLB_iff (succFn_spec i)] at hij obtain ⟨k, hk_lb, hk⟩ := hij rw [mem_lowerBounds] at hk_lb exact not_lt.mp fun hi_lt_j ↦ not_le.mpr hk (hk_lb j hi_lt_j)
[ " i ≤ succFn i", " ∀ x ∈ Set.Ioi i, i ≤ x", " IsGLB (Set.Ioc i j) k", " (∀ x ∈ Set.Ioc i j, k ≤ x) ∧ ∀ (x : ι), (∀ x_1 ∈ Set.Ioc i j, x ≤ x_1) → x ≤ k", " ∀ x_1 ∈ Set.Ioi i, x ≤ x_1", " x ≤ y", " IsMax i", " False", " IsGLB (↑(Finset.Ioc i j)) i", " IsGLB (Set.Ioc i j) i", " i ∈ Finset.Ioc i j",...
[ " i ≤ succFn i", " ∀ x ∈ Set.Ioi i, i ≤ x", " IsGLB (Set.Ioc i j) k", " (∀ x ∈ Set.Ioc i j, k ≤ x) ∧ ∀ (x : ι), (∀ x_1 ∈ Set.Ioc i j, x ≤ x_1) → x ≤ k", " ∀ x_1 ∈ Set.Ioi i, x ≤ x_1", " x ≤ y", " IsMax i", " False", " IsGLB (↑(Finset.Ioc i j)) i", " IsGLB (Set.Ioc i j) i", " i ∈ Finset.Ioc i j",...
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Polynomial.Degree.Lemmas #align_import data.polynomial.erase_lead from "leanprover-community/mathlib"@"fa256f00ce018e7b40e1dc756e403c86680bf448" noncomputable section open Polynomial open Polynomial Finset namespace Polynomial variable {R : Type*}...
Mathlib/Algebra/Polynomial/EraseLead.lean
115
124
theorem card_support_eraseLead_add_one (h : f ≠ 0) : f.eraseLead.support.card + 1 = f.support.card := by
set c := f.support.card with hc cases h₁ : c case zero => by_contra exact h (card_support_eq_zero.mp h₁) case succ => rw [eraseLead_support, card_erase_of_mem (natDegree_mem_support_of_nonzero h), ← hc, h₁] rfl
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0", " f.eraseLead + C f.leadingCoeff * X ^ f.natDegree = f", " f - C f.leadingCoeff * X ^ f.n...
import Mathlib.Algebra.EuclideanDomain.Defs import Mathlib.Algebra.Ring.Divisibility.Basic import Mathlib.Algebra.Ring.Regular import Mathlib.Algebra.GroupWithZero.Divisibility import Mathlib.Algebra.Ring.Basic #align_import algebra.euclidean_domain.basic from "leanprover-community/mathlib"@"bf9bbbcf0c1c1ead18280b0d0...
Mathlib/Algebra/EuclideanDomain/Basic.lean
63
64
theorem dvd_mod_iff {a b c : R} (h : c ∣ b) : c ∣ a % b ↔ c ∣ a := by
rw [← dvd_add_right (h.mul_right _), div_add_mod]
[ " a * b / b = a", " a - a * b / b = 0", " False", " b ∣ a", " b ∣ b * (a / b)", " a % b = 0", " b * c = b * (b * c / b)", " c ∣ a % b ↔ c ∣ a" ]
[ " a * b / b = a", " a - a * b / b = 0", " False", " b ∣ a", " b ∣ b * (a / b)", " a % b = 0", " b * c = b * (b * c / b)" ]
import Mathlib.Algebra.BigOperators.Intervals import Mathlib.Algebra.BigOperators.Ring.List import Mathlib.Data.Int.ModEq import Mathlib.Data.Nat.Bits import Mathlib.Data.Nat.Log import Mathlib.Data.List.Indexes import Mathlib.Data.List.Palindrome import Mathlib.Tactic.IntervalCases import Mathlib.Tactic.Linarith impo...
Mathlib/Data/Nat/Digits.lean
60
60
theorem digitsAux_zero (b : ℕ) (h : 2 ≤ b) : digitsAux b h 0 = [] := by
rw [digitsAux]
[ " (invImage (fun x => x) instWellFoundedRelationOfSizeOf).1 ((n + 1) / b) n.succ", " b.digitsAux h 0 = []" ]
[ " (invImage (fun x => x) instWellFoundedRelationOfSizeOf).1 ((n + 1) / b) n.succ" ]
import Mathlib.CategoryTheory.Limits.Types import Mathlib.CategoryTheory.IsConnected import Mathlib.CategoryTheory.Limits.Final import Mathlib.CategoryTheory.Conj universe w v u namespace CategoryTheory.Limits.Types variable (C : Type u) [Category.{v} C] def constPUnitFunctor : C ⥤ Type w := (Functor.const C).o...
Mathlib/CategoryTheory/Limits/IsConnected.lean
106
112
theorem isConnected_iff_isColimit_pUnitCocone : IsConnected C ↔ Nonempty (IsColimit (pUnitCocone.{w} C)) := by
refine ⟨fun inst => ⟨isColimitPUnitCocone C⟩, fun ⟨h⟩ => ?_⟩ let colimitCocone : ColimitCocone (constPUnitFunctor C) := ⟨pUnitCocone.{w} C, h⟩ have : HasColimit (constPUnitFunctor.{w} C) := ⟨⟨colimitCocone⟩⟩ simp only [isConnected_iff_colimit_constPUnitFunctor_iso_pUnit.{w} C] exact ⟨colimit.isoColimitCocone...
[ " (pUnitCocone C).ι.app j ≫ (fun s => s.ι.app Classical.ofNonempty) s = s.ι.app j", " ((pUnitCocone C).ι.app j ≫ (fun s => s.ι.app Classical.ofNonempty) s) PUnit.unit = s.ι.app j PUnit.unit", " ∀ (j₁ j₂ : C), (j₁ ⟶ j₂) → s.ι.app j₁ PUnit.unit = s.ι.app j₂ PUnit.unit", " s.ι.app X PUnit.unit = s.ι.app Y PUnit....
[ " (pUnitCocone C).ι.app j ≫ (fun s => s.ι.app Classical.ofNonempty) s = s.ι.app j", " ((pUnitCocone C).ι.app j ≫ (fun s => s.ι.app Classical.ofNonempty) s) PUnit.unit = s.ι.app j PUnit.unit", " ∀ (j₁ j₂ : C), (j₁ ⟶ j₂) → s.ι.app j₁ PUnit.unit = s.ι.app j₂ PUnit.unit", " s.ι.app X PUnit.unit = s.ι.app Y PUnit....
import Mathlib.Algebra.Regular.Basic import Mathlib.LinearAlgebra.Matrix.MvPolynomial import Mathlib.LinearAlgebra.Matrix.Polynomial import Mathlib.RingTheory.Polynomial.Basic #align_import linear_algebra.matrix.adjugate from "leanprover-community/mathlib"@"a99f85220eaf38f14f94e04699943e185a5e1d1a" namespace Matr...
Mathlib/LinearAlgebra/Matrix/Adjugate.lean
145
150
theorem cramer_zero [Nontrivial n] : cramer (0 : Matrix n n α) = 0 := by
ext i j obtain ⟨j', hj'⟩ : ∃ j', j' ≠ j := exists_ne j apply det_eq_zero_of_column_eq_zero j' intro j'' simp [updateColumn_ne hj']
[ " IsLinearMap α A.cramerMap", " ∀ (x y : n → α), A.cramerMap (x + y) = A.cramerMap x + A.cramerMap y", " ∀ (c : α) (x : n → α), A.cramerMap (c • x) = c • A.cramerMap x", " A.cramerMap (x✝ + y✝) = A.cramerMap x✝ + A.cramerMap y✝", " A.cramerMap (c✝ • x✝) = c✝ • A.cramerMap x✝", " A.cramerMap (x✝ + y✝) i = ...
[ " IsLinearMap α A.cramerMap", " ∀ (x y : n → α), A.cramerMap (x + y) = A.cramerMap x + A.cramerMap y", " ∀ (c : α) (x : n → α), A.cramerMap (c • x) = c • A.cramerMap x", " A.cramerMap (x✝ + y✝) = A.cramerMap x✝ + A.cramerMap y✝", " A.cramerMap (c✝ • x✝) = c✝ • A.cramerMap x✝", " A.cramerMap (x✝ + y✝) i = ...
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
134
135
theorem gauge_neg_set_neg (x : E) : gauge (-s) (-x) = gauge s x := by
simp_rw [gauge_def', smul_neg, neg_mem_neg]
[ " 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", " gauge 0 = 0", " gauge 0 x = 0 x", " sInf {r | r ∈ Ioi 0 ∧ r⁻¹ • x ∈ 0} = 0 x", " sInf {r | r ∈ Ioi 0 ∧ ...
import Mathlib.Algebra.Polynomial.Degree.TrailingDegree import Mathlib.Algebra.Polynomial.EraseLead import Mathlib.Algebra.Polynomial.Eval #align_import data.polynomial.reverse from "leanprover-community/mathlib"@"44de64f183393284a16016dfb2a48ac97382f2bd" namespace Polynomial open Polynomial Finsupp Finset open...
Mathlib/Algebra/Polynomial/Reverse.lean
105
109
theorem reflect_support (N : ℕ) (f : R[X]) : (reflect N f).support = Finset.image (revAt N) f.support := by
rcases f with ⟨⟩ ext1 simp only [reflect, support_ofFinsupp, support_embDomain, Finset.mem_map, Finset.mem_image]
[ " revAtFun N (revAtFun N i) = i", " (if (if i ≤ N then N - i else i) ≤ N then N - if i ≤ N then N - i else i else if i ≤ N then N - i else i) = i", " N - (N - i) = i", " N - i = i", " False", " N - i ≤ N", " i = i", " Function.Injective (revAtFun N)", " a = b", " (revAt N) i = i", " (revAt (N + ...
[ " revAtFun N (revAtFun N i) = i", " (if (if i ≤ N then N - i else i) ≤ N then N - if i ≤ N then N - i else i else if i ≤ N then N - i else i) = i", " N - (N - i) = i", " N - i = i", " False", " N - i ≤ N", " i = i", " Function.Injective (revAtFun N)", " a = b", " (revAt N) i = i", " (revAt (N + ...
import Mathlib.Algebra.Algebra.Subalgebra.Operations import Mathlib.Algebra.Ring.Fin import Mathlib.RingTheory.Ideal.Quotient #align_import ring_theory.ideal.quotient_operations from "leanprover-community/mathlib"@"b88d81c84530450a8989e918608e5960f015e6c8" universe u v w namespace Ideal open Function RingHom var...
Mathlib/RingTheory/Ideal/QuotientOperations.lean
189
191
theorem mem_quotient_iff_mem {I J : Ideal R} (hIJ : I ≤ J) {x : R} : Quotient.mk I x ∈ J.map (Quotient.mk I) ↔ x ∈ J := by
rw [mem_quotient_iff_mem_sup, sup_eq_left.mpr hIJ]
[ " ker (Quotient.mk I) = I", " x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I", " map (Quotient.mk J) I = ⊥", " I ≤ J", " ker (Quotient.lift I f H) = map (Quotient.mk I) (ker f)", " ∀ (x : R ⧸ I), x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk I) (ker f)", " x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk ...
[ " ker (Quotient.mk I) = I", " x✝ ∈ ker (Quotient.mk I) ↔ x✝ ∈ I", " map (Quotient.mk J) I = ⊥", " I ≤ J", " ker (Quotient.lift I f H) = map (Quotient.mk I) (ker f)", " ∀ (x : R ⧸ I), x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk I) (ker f)", " x ∈ ker (Quotient.lift I f H) ↔ x ∈ map (Quotient.mk ...
import Mathlib.Analysis.Calculus.ContDiff.Bounds import Mathlib.Analysis.Calculus.IteratedDeriv.Defs import Mathlib.Analysis.Calculus.LineDeriv.Basic import Mathlib.Analysis.LocallyConvex.WithSeminorms import Mathlib.Analysis.Normed.Group.ZeroAtInfty import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Ana...
Mathlib/Analysis/Distribution/SchwartzSpace.lean
203
205
theorem decay_neg_aux (k n : ℕ) (f : 𝓢(E, F)) (x : E) : ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (-f : E → F) x‖ = ‖x‖ ^ k * ‖iteratedFDeriv ℝ n f x‖ := by
rw [iteratedFDeriv_neg_apply, norm_neg]
[ " f = g", " { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ } = g", " { toFun := toFun✝¹, smooth' := smooth'✝¹, decay' := decay'✝¹ } =\n { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ }", " ∃ C, 0 < C ∧ ∀ (x : E), ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (⇑f) x‖ ≤ C", " 0 < max C 1", " ‖x‖ ^ ...
[ " f = g", " { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ } = g", " { toFun := toFun✝¹, smooth' := smooth'✝¹, decay' := decay'✝¹ } =\n { toFun := toFun✝, smooth' := smooth'✝, decay' := decay'✝ }", " ∃ C, 0 < C ∧ ∀ (x : E), ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (⇑f) x‖ ≤ C", " 0 < max C 1", " ‖x‖ ^ ...
import Mathlib.RingTheory.PrincipalIdealDomain import Mathlib.RingTheory.Ideal.LocalRing import Mathlib.RingTheory.Valuation.PrimeMultiplicity import Mathlib.RingTheory.AdicCompletion.Basic #align_import ring_theory.discrete_valuation_ring.basic from "leanprover-community/mathlib"@"c163ec99dfc664628ca15d215fce0a5b9c2...
Mathlib/RingTheory/DiscreteValuationRing/Basic.lean
107
109
theorem exists_irreducible : ∃ ϖ : R, Irreducible ϖ := by
simp_rw [irreducible_iff_uniformizer] exact (IsPrincipalIdealRing.principal <| maximalIdeal R).principal
[ " Irreducible ϖ", " ∀ (a b : R), ϖ = a * b → IsUnit a ∨ IsUnit b", " IsUnit a ∨ IsUnit b", " False", " a * ϖ * (b * ϖ) = ϖ * (ϖ * (a * b))", " ϖ = 0", " ϖ * (a * b) ≠ 1", " maximalIdeal R = ⊥", " ∃ ϖ, Irreducible ϖ", " ∃ ϖ, maximalIdeal R = span {ϖ}" ]
[ " Irreducible ϖ", " ∀ (a b : R), ϖ = a * b → IsUnit a ∨ IsUnit b", " IsUnit a ∨ IsUnit b", " False", " a * ϖ * (b * ϖ) = ϖ * (ϖ * (a * b))", " ϖ = 0", " ϖ * (a * b) ≠ 1", " maximalIdeal R = ⊥" ]
import Mathlib.Data.Matrix.Block import Mathlib.Data.Matrix.Notation import Mathlib.LinearAlgebra.StdBasis import Mathlib.RingTheory.AlgebraTower import Mathlib.Algebra.Algebra.Subalgebra.Tower #align_import linear_algebra.matrix.to_lin from "leanprover-community/mathlib"@"0e2aab2b0d521f060f62a14d2cf2e2c54e8491d6" ...
Mathlib/LinearAlgebra/Matrix/ToLin.lean
91
99
theorem Matrix.vecMul_stdBasis (M : Matrix m n R) (i j) : (LinearMap.stdBasis R (fun _ ↦ R) i 1 ᵥ* M) j = M i j := by
have : (∑ i', (if i = i' then 1 else 0) * M i' j) = M i j := by simp_rw [boole_mul, Finset.sum_ite_eq, Finset.mem_univ, if_true] simp only [vecMul, dotProduct] convert this split_ifs with h <;> simp only [stdBasis_apply] · rw [h, Function.update_same] · rw [Function.update_noteq (Ne.symm h), Pi.zero_ap...
[ " ((LinearMap.stdBasis R (fun x => R) i) 1 ᵥ* M) j = M i j", " ∑ i' : m, (if i = i' then 1 else 0) * M i' j = M i j", " ∑ x : m, (LinearMap.stdBasis R (fun x => R) i) 1 x * M x j = M i j", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ = if i = x✝ then 1 else 0", " (LinearMap.stdBasis R (fun x => R) i) 1 x✝ =...
[]
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.Algebra.Module.Pi #align_import data.holor from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" universe u open List def HolorIndex (ds : List ℕ) : Type := { is : List ℕ // Forall₂ (· < ·) is ds } #align holor_index Hol...
Mathlib/Data/Holor.lean
58
59
theorem cast_type (is : List ℕ) (eq : ds₁ = ds₂) (h : Forall₂ (· < ·) is ds₁) : (cast (congr_arg HolorIndex eq) ⟨is, h⟩).val = is := by
subst eq; rfl
[ " ↑(cast ⋯ ⟨is, h⟩) = is" ]
[]
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.Polynomial.Degree.Lemmas #align_import data.polynomial.erase_lead from "leanprover-community/mathlib"@"fa256f00ce018e7b40e1dc756e403c86680bf448" noncomputable section open Polynomial open Polynomial Finset namespace Polynomial variable {R : Type*}...
Mathlib/Algebra/Polynomial/EraseLead.lean
60
60
theorem eraseLead_zero : eraseLead (0 : R[X]) = 0 := by
simp only [eraseLead, erase_zero]
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i", " eraseLead 0 = 0" ]
[ " f.eraseLead.support = f.support.erase f.natDegree", " f.eraseLead.coeff i = if i = f.natDegree then 0 else f.coeff i", " f.eraseLead.coeff f.natDegree = 0", " f.eraseLead.coeff i = f.coeff i" ]
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
91
92
theorem rtake_concat_succ (x : α) : rtake (l ++ [x]) (n + 1) = rtake l n ++ [x] := by
simp [rtake_eq_reverse_take_reverse]
[ " [].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.Analysis.NormedSpace.Basic #align_import analysis.normed_space.enorm from "leanprover-community/mathlib"@"57ac39bd365c2f80589a700f9fbb664d3a1a30c2" noncomputable section attribute [local instance] Classical.propDecidable open ENNReal structure ENorm (𝕜 : Type*) (V : Type*) [NormedField 𝕜] [Ad...
Mathlib/Analysis/NormedSpace/ENorm.lean
113
113
theorem map_sub_rev (x y : V) : e (x - y) = e (y - x) := by
rw [← neg_sub, e.map_neg]
[ " e₁ = e₂", " { toFun := toFun✝, eq_zero' := eq_zero'✝, map_add_le' := map_add_le'✝, map_smul_le' := map_smul_le'✝ } = e₂", " { toFun := toFun✝¹, eq_zero' := eq_zero'✝¹, map_add_le' := map_add_le'✝¹, map_smul_le' := map_smul_le'✝¹ } =\n { toFun := toFun✝, eq_zero' := eq_zero'✝, map_add_le' := map_add_le'✝, m...
[ " e₁ = e₂", " { toFun := toFun✝, eq_zero' := eq_zero'✝, map_add_le' := map_add_le'✝, map_smul_le' := map_smul_le'✝ } = e₂", " { toFun := toFun✝¹, eq_zero' := eq_zero'✝¹, map_add_le' := map_add_le'✝¹, map_smul_le' := map_smul_le'✝¹ } =\n { toFun := toFun✝, eq_zero' := eq_zero'✝, map_add_le' := map_add_le'✝, m...
import Mathlib.Data.Nat.Lattice import Mathlib.Logic.Denumerable import Mathlib.Logic.Function.Iterate import Mathlib.Order.Hom.Basic import Mathlib.Data.Set.Subsingleton #align_import order.order_iso_nat from "leanprover-community/mathlib"@"210657c4ea4a4a7b234392f70a3a2a83346dfa90" variable {α : Type*} namespa...
Mathlib/Order/OrderIsoNat.lean
66
81
theorem acc_iff_no_decreasing_seq {x} : Acc r x ↔ IsEmpty { f : ((· > ·) : ℕ → ℕ → Prop) ↪r r // x ∈ Set.range f } := by
constructor · refine fun h => h.recOn fun x _ IH => ?_ constructor rintro ⟨f, k, hf⟩ exact IsEmpty.elim' (IH (f (k + 1)) (hf ▸ f.map_rel_iff.2 (lt_add_one k))) ⟨f, _, rfl⟩ · have : ∀ x : { a // ¬Acc r a }, ∃ y : { a // ¬Acc r a }, r y.1 x.1 := by rintro ⟨x, hx⟩ cases exists_not_acc_lt_of_...
[ " ∃ b, ¬Acc r b ∧ r b a", " Acc r a", " Acc r b", " False", " Acc r x ↔ IsEmpty { f // x ∈ Set.range ⇑f }", " Acc r x → IsEmpty { f // x ∈ Set.range ⇑f }", " IsEmpty { f // x ∈ Set.range ⇑f }", " { f // x ∈ Set.range ⇑f } → False", " IsEmpty { f // x ∈ Set.range ⇑f } → Acc r x", " ∀ (x : { a // ¬A...
[ " ∃ b, ¬Acc r b ∧ r b a", " Acc r a", " Acc r b", " False" ]
import Mathlib.RepresentationTheory.Rep import Mathlib.Algebra.Category.FGModuleCat.Limits import Mathlib.CategoryTheory.Preadditive.Schur import Mathlib.RepresentationTheory.Basic #align_import representation_theory.fdRep from "leanprover-community/mathlib"@"19a70dceb9dff0994b92d2dd049de7d84d28112b" suppress_comp...
Mathlib/RepresentationTheory/FdRep.lean
113
114
theorem forget₂_ρ (V : FdRep k G) : ((forget₂ (FdRep k G) (Rep k G)).obj V).ρ = V.ρ := by
ext g v; rfl
[ " Linear k (FdRep k G)", " AddCommGroup (CoeSort.coe V)", " AddCommGroup ↑((forget₂ (FdRep k G) (FGModuleCat k)).obj V).obj", " Module k (CoeSort.coe V)", " Module k ↑((forget₂ (FdRep k G) (FGModuleCat k)).obj V).obj", " FiniteDimensional k (CoeSort.coe V)", " FiniteDimensional k ↑((forget₂ (FdRep k G) ...
[ " Linear k (FdRep k G)", " AddCommGroup (CoeSort.coe V)", " AddCommGroup ↑((forget₂ (FdRep k G) (FGModuleCat k)).obj V).obj", " Module k (CoeSort.coe V)", " Module k ↑((forget₂ (FdRep k G) (FGModuleCat k)).obj V).obj", " FiniteDimensional k (CoeSort.coe V)", " FiniteDimensional k ↑((forget₂ (FdRep k G) ...
import Mathlib.Algebra.Module.PID import Mathlib.Data.ZMod.Quotient #align_import group_theory.finite_abelian from "leanprover-community/mathlib"@"879155bff5af618b9062cbb2915347dafd749ad6" open scoped DirectSum private def directSumNeZeroMulHom {ι : Type} [DecidableEq ι] (p : ι → ℕ) (n : ι → ℕ) : (⨁ i : {i ...
Mathlib/GroupTheory/FiniteAbelian.lean
91
100
theorem finite_of_fg_torsion [AddCommGroup M] [Module ℤ M] [Module.Finite ℤ M] (hM : Module.IsTorsion ℤ M) : _root_.Finite M := by
rcases Module.equiv_directSum_of_isTorsion hM with ⟨ι, _, p, h, e, ⟨l⟩⟩ haveI : ∀ i : ι, NeZero (p i ^ e i).natAbs := fun i => ⟨Int.natAbs_ne_zero.mpr <| pow_ne_zero (e i) (h i).ne_zero⟩ haveI : ∀ i : ι, _root_.Finite <| ℤ ⧸ Submodule.span ℤ {p i ^ e i} := fun i => Finite.of_equiv _ (p i ^ e i).quotientS...
[ " (DirectSum.toAddMonoid fun i => if h : n i = 0 then 0 else DirectSum.of (fun j => ZMod (p ↑j ^ n ↑j)) ⟨i, h⟩)\n ((directSumNeZeroMulHom p n) x) =\n x", " (DirectSum.toAddMonoid fun i => if h : n i = 0 then 0 else DirectSum.of (fun j => ZMod (p ↑j ^ n ↑j)) ⟨i, h⟩)\n ((directSumNeZeroMulHom p n) 0) =...
[ " (DirectSum.toAddMonoid fun i => if h : n i = 0 then 0 else DirectSum.of (fun j => ZMod (p ↑j ^ n ↑j)) ⟨i, h⟩)\n ((directSumNeZeroMulHom p n) x) =\n x", " (DirectSum.toAddMonoid fun i => if h : n i = 0 then 0 else DirectSum.of (fun j => ZMod (p ↑j ^ n ↑j)) ⟨i, h⟩)\n ((directSumNeZeroMulHom p n) 0) =...
import Mathlib.Algebra.Homology.ShortComplex.ModuleCat import Mathlib.RepresentationTheory.GroupCohomology.Basic import Mathlib.RepresentationTheory.Invariants universe v u noncomputable section open CategoryTheory Limits Representation variable {k G : Type u} [CommRing k] [Group G] (A : Rep k G) namespace grou...
Mathlib/RepresentationTheory/GroupCohomology/LowDegree.lean
532
534
theorem map_one_snd_of_isMulTwoCocycle {f : G × G → M} (hf : IsMulTwoCocycle f) (g : G) : f (g, 1) = g • f (1, 1) := by
simpa only [mul_one, mul_left_inj] using hf g 1 1
[ " f 1 = 1", " f (1, g) = f (1, 1)", " f (g, 1) = g • f (1, 1)" ]
[ " f 1 = 1", " f (1, g) = f (1, 1)" ]
import Mathlib.Data.List.Basic namespace List variable {α β : Type*} @[simp] theorem reduceOption_cons_of_some (x : α) (l : List (Option α)) : reduceOption (some x :: l) = x :: l.reduceOption := by simp only [reduceOption, filterMap, id, eq_self_iff_true, and_self_iff] #align list.reduce_option_cons_of_some...
Mathlib/Data/List/ReduceOption.lean
25
26
theorem reduceOption_cons_of_none (l : List (Option α)) : reduceOption (none :: l) = l.reduceOption := by
simp only [reduceOption, filterMap, id]
[ " (some x :: l).reduceOption = x :: l.reduceOption", " (none :: l).reduceOption = l.reduceOption" ]
[ " (some x :: l).reduceOption = x :: l.reduceOption" ]
import Mathlib.RingTheory.OrzechProperty import Mathlib.RingTheory.Ideal.Quotient import Mathlib.RingTheory.PrincipalIdealDomain #align_import linear_algebra.invariant_basis_number from "leanprover-community/mathlib"@"5fd3186f1ec30a75d5f65732e3ce5e623382556f" noncomputable section open Function universe u v w ...
Mathlib/LinearAlgebra/InvariantBasisNumber.lean
188
194
theorem card_le_of_surjective [RankCondition R] {α β : Type*} [Fintype α] [Fintype β] (f : (α → R) →ₗ[R] β → R) (i : Surjective f) : Fintype.card β ≤ Fintype.card α := by
let P := LinearEquiv.funCongrLeft R R (Fintype.equivFin α) let Q := LinearEquiv.funCongrLeft R R (Fintype.equivFin β) exact le_of_fin_surjective R ((Q.symm.toLinearMap.comp f).comp P.toLinearMap) (((LinearEquiv.symm Q).surjective.comp i).comp (LinearEquiv.surjective P))
[ " StrongRankCondition R ↔ ∀ (n : ℕ) (f : (Fin (n + 1) → R) →ₗ[R] Fin n → R), ¬Injective ⇑f", " False", " n ≤ m", " StrongRankCondition R", " 0 = update 0 (Fin.last n) 1", " f 0 = f (update 0 (Fin.last n) 1)", " f 0 m = f (update 0 (Fin.last n) 1) m", " Fintype.card α ≤ Fintype.card β", " Fintype.car...
[ " StrongRankCondition R ↔ ∀ (n : ℕ) (f : (Fin (n + 1) → R) →ₗ[R] Fin n → R), ¬Injective ⇑f", " False", " n ≤ m", " StrongRankCondition R", " 0 = update 0 (Fin.last n) 1", " f 0 = f (update 0 (Fin.last n) 1)", " f 0 m = f (update 0 (Fin.last n) 1) m", " Fintype.card α ≤ Fintype.card β" ]
import Mathlib.Algebra.Order.Monoid.Unbundled.Basic #align_import algebra.order.monoid.min_max from "leanprover-community/mathlib"@"de87d5053a9fe5cbde723172c0fb7e27e7436473" open Function variable {α β : Type*} section CovariantClassMulLe variable [LinearOrder α] section Mul variable [Mul α] @[to_additive...
Mathlib/Algebra/Order/Monoid/Unbundled/MinMax.lean
99
103
theorem le_or_lt_of_mul_le_mul [CovariantClass α α (· * ·) (· ≤ ·)] [CovariantClass α α (Function.swap (· * ·)) (· < ·)] {a₁ a₂ b₁ b₂ : α} : a₁ * b₁ ≤ a₂ * b₂ → a₁ ≤ a₂ ∨ b₁ < b₂ := by
contrapose! exact fun h => mul_lt_mul_of_lt_of_le h.1 h.2
[ " a₁ * b₁ < a₂ * b₂ → a₁ < a₂ ∨ b₁ < b₂", " a₂ ≤ a₁ ∧ b₂ ≤ b₁ → a₂ * b₂ ≤ a₁ * b₁", " a₁ * b₁ ≤ a₂ * b₂ → a₁ ≤ a₂ ∨ b₁ < b₂", " a₂ < a₁ ∧ b₂ ≤ b₁ → a₂ * b₂ < a₁ * b₁" ]
[ " a₁ * b₁ < a₂ * b₂ → a₁ < a₂ ∨ b₁ < b₂", " a₂ ≤ a₁ ∧ b₂ ≤ b₁ → a₂ * b₂ ≤ a₁ * b₁" ]
import Mathlib.Data.Finsupp.Basic import Mathlib.Data.Finsupp.Order #align_import data.finsupp.multiset from "leanprover-community/mathlib"@"59694bd07f0a39c5beccba34bd9f413a160782bf" open Finset variable {α β ι : Type*} namespace Finsupp def toMultiset : (α →₀ ℕ) →+ Multiset α where toFun f := Finsupp.sum f...
Mathlib/Data/Finsupp/Multiset.lean
94
101
theorem toFinset_toMultiset [DecidableEq α] (f : α →₀ ℕ) : f.toMultiset.toFinset = f.support := by
refine f.induction ?_ ?_ · rw [toMultiset_zero, Multiset.toFinset_zero, support_zero] · intro a n f ha hn ih rw [toMultiset_add, Multiset.toFinset_add, ih, toMultiset_single, support_add_eq, support_single_ne_zero _ hn, Multiset.toFinset_nsmul _ _ hn, Multiset.toFinset_singleton] refine Disjoint.mo...
[ " toMultiset (single a n) = n • {a}", " 0 • {a} = 0", " toMultiset (∑ i ∈ s, single i n) = n • s.val", " Multiset.card (toMultiset f) = f.sum fun x => id", " Multiset.map g (toMultiset f) = toMultiset (mapDomain g f)", " Multiset.map g (toMultiset 0) = toMultiset (mapDomain g 0)", " ∀ (a : α) (b : ℕ) (f...
[ " toMultiset (single a n) = n • {a}", " 0 • {a} = 0", " toMultiset (∑ i ∈ s, single i n) = n • s.val", " Multiset.card (toMultiset f) = f.sum fun x => id", " Multiset.map g (toMultiset f) = toMultiset (mapDomain g f)", " Multiset.map g (toMultiset 0) = toMultiset (mapDomain g 0)", " ∀ (a : α) (b : ℕ) (f...
import Mathlib.Analysis.RCLike.Lemmas import Mathlib.MeasureTheory.Function.StronglyMeasurable.Inner import Mathlib.MeasureTheory.Integral.SetIntegral #align_import measure_theory.function.l2_space from "leanprover-community/mathlib"@"83a66c8775fa14ee5180c85cab98e970956401ad" set_option linter.uppercaseLean3 false...
Mathlib/MeasureTheory/Function/L2Space.lean
104
106
theorem _root_.integral_eq_zero_of_forall_integral_inner_eq_zero (f : α → E) (hf : Integrable f μ) (hf_int : ∀ c : E, ∫ x, ⟪c, f x⟫ ∂μ = 0) : ∫ x, f x ∂μ = 0 := by
specialize hf_int (∫ x, f x ∂μ); rwa [integral_inner hf, inner_self_eq_zero] at hf_int
[ " Integrable (fun x => f x ^ 2) μ", " Memℒp f 2 μ ↔ Integrable (fun x => ‖f x‖ ^ 2) μ", " Memℒp f 2 μ ↔ Memℒp (fun x => ‖f x‖ ^ 2) 1 μ", " ‖f x✝‖ ^ 2 = ‖f x✝‖ ^ ENNReal.toReal 2", " 1 = 2 / 2", " Memℒp f 2 μ ↔ Integrable (fun x => f x ^ 2) μ", " f x✝ ^ 2 = ‖f x✝‖ ^ 2", " ‖⟪f x, c⟫_𝕜‖ ≤ ?m.10094 * ‖f ...
[ " Integrable (fun x => f x ^ 2) μ", " Memℒp f 2 μ ↔ Integrable (fun x => ‖f x‖ ^ 2) μ", " Memℒp f 2 μ ↔ Memℒp (fun x => ‖f x‖ ^ 2) 1 μ", " ‖f x✝‖ ^ 2 = ‖f x✝‖ ^ ENNReal.toReal 2", " 1 = 2 / 2", " Memℒp f 2 μ ↔ Integrable (fun x => f x ^ 2) μ", " f x✝ ^ 2 = ‖f x✝‖ ^ 2", " ‖⟪f x, c⟫_𝕜‖ ≤ ?m.10094 * ‖f ...
import Mathlib.Data.Fin.Fin2 import Mathlib.Data.PFun import Mathlib.Data.Vector3 import Mathlib.NumberTheory.PellMatiyasevic #align_import number_theory.dioph from "leanprover-community/mathlib"@"a66d07e27d5b5b8ac1147cacfe353478e5c14002" open Fin2 Function Nat Sum local infixr:67 " ::ₒ " => Option.elim' local ...
Mathlib/NumberTheory/Dioph.lean
85
86
theorem IsPoly.neg {f : (α → ℕ) → ℤ} : IsPoly f → IsPoly (-f) := by
rw [← zero_sub]; exact (IsPoly.const 0).sub
[ " IsPoly f → IsPoly (-f)", " IsPoly f → IsPoly (0 - f)" ]
[]
import Mathlib.CategoryTheory.Sites.InducedTopology import Mathlib.CategoryTheory.Sites.LocallyBijective import Mathlib.CategoryTheory.Sites.PreservesLocallyBijective import Mathlib.CategoryTheory.Sites.Whiskering universe u namespace CategoryTheory open Functor Limits GrothendieckTopology variable {C : Type*} [C...
Mathlib/CategoryTheory/Sites/Equivalence.lean
51
65
theorem locallyCoverDense : LocallyCoverDense J e.inverse := by
intro X T convert T.prop ext Z f constructor · rintro ⟨_, _, g', hg, rfl⟩ exact T.val.downward_closed hg g' · intro hf refine ⟨e.functor.obj Z, (Adjunction.homEquiv e.toAdjunction _ _).symm f, e.unit.app Z, ?_, ?_⟩ · simp only [Adjunction.homEquiv_counit, Functor.id_obj, Equivalence.toAdjunctio...
[ " LocallyCoverDense J e.inverse", " Sieve.functorPushforward e.inverse (Sieve.functorPullback e.inverse ↑T) ∈ J.sieves (e.inverse.obj X)", " Sieve.functorPushforward e.inverse (Sieve.functorPullback e.inverse ↑T) = ↑T", " (Sieve.functorPushforward e.inverse (Sieve.functorPullback e.inverse ↑T)).arrows f ↔ (↑T...
[]
import Mathlib.Algebra.Polynomial.Degree.Definitions import Mathlib.Data.ENat.Basic #align_import data.polynomial.degree.trailing_degree from "leanprover-community/mathlib"@"302eab4f46abb63de520828de78c04cb0f9b5836" noncomputable section open Function Polynomial Finsupp Finset open scoped Polynomial namespace ...
Mathlib/Algebra/Polynomial/Degree/TrailingDegree.lean
102
108
theorem trailingDegree_eq_natTrailingDegree (hp : p ≠ 0) : trailingDegree p = (natTrailingDegree p : ℕ∞) := by
let ⟨n, hn⟩ := not_forall.1 (mt Option.eq_none_iff_forall_not_mem.2 (mt trailingDegree_eq_top.1 hp)) have hn : trailingDegree p = n := Classical.not_not.1 hn rw [natTrailingDegree, hn] rfl
[ " p.trailingDegree = ⊤", " p.trailingDegree = ↑p.natTrailingDegree", " ↑n = ↑(Option.getD (↑n) 0)" ]
[ " p.trailingDegree = ⊤" ]
import Mathlib.Data.Set.Finite import Mathlib.Order.Partition.Finpartition #align_import data.setoid.partition from "leanprover-community/mathlib"@"b363547b3113d350d053abdf2884e9850a56b205" namespace Setoid variable {α : Type*} theorem eq_of_mem_eqv_class {c : Set (Set α)} (H : ∀ a, ∃! b ∈ c, a ∈ b) {x b b'} ...
Mathlib/Data/Setoid/Partition.lean
122
130
theorem eq_eqv_class_of_mem {c : Set (Set α)} (H : ∀ a, ∃! b ∈ c, a ∈ b) {s y} (hs : s ∈ c) (hy : y ∈ s) : s = { x | (mkClasses c H).Rel x y } := by
ext x constructor · intro hx _s' hs' hx' rwa [eq_of_mem_eqv_class H hs' hx' hs hx] · intro hx obtain ⟨b', ⟨hc, hb'⟩, _⟩ := H x rwa [eq_of_mem_eqv_class H hs hy hc (hx b' hc hb')]
[ " x ∈ s", " (ker f).classes ⊆ Set.range fun y => {x | f x = y}", " {x_1 | (ker f).Rel x_1 x} ∈ Set.range fun y => {x | f x = y}", " ∃ y, {x | f x = y} = {x_1 | (ker f).Rel x_1 x}", " Fintype.card ↑(ker f).classes ≤ Fintype.card β", " r.Rel x y", " r₁.Rel a b ↔ r₂.Rel a b", " ∀ (y : Set α), y ∈ r.class...
[ " x ∈ s", " (ker f).classes ⊆ Set.range fun y => {x | f x = y}", " {x_1 | (ker f).Rel x_1 x} ∈ Set.range fun y => {x | f x = y}", " ∃ y, {x | f x = y} = {x_1 | (ker f).Rel x_1 x}", " Fintype.card ↑(ker f).classes ≤ Fintype.card β", " r.Rel x y", " r₁.Rel a b ↔ r₂.Rel a b", " ∀ (y : Set α), y ∈ r.class...
import Batteries.Tactic.Init import Batteries.Tactic.Alias import Batteries.Tactic.Lint.Misc instance {f : α → β} [DecidablePred p] : DecidablePred (p ∘ f) := inferInstanceAs <| DecidablePred fun x => p (f x) @[deprecated] alias proofIrrel := proof_irrel theorem Function.id_def : @id α = fun x => x := rfl al...
.lake/packages/batteries/Batteries/Logic.lean
72
72
theorem Eq.congr_left {x y z : α} (h : x = y) : x = z ↔ y = z := by
rw [h]
[ " h ▸ y = y", " ⋯ ▸ y = y", " f x y = f x' y'", " f x y = f x y", " x₁ = x₂ ↔ y₁ = y₂", " x₁ = x₂ ↔ x₁ = y₂", " x₁ = x₂ ↔ x₁ = x₂", " x = z ↔ y = z" ]
[ " h ▸ y = y", " ⋯ ▸ y = y", " f x y = f x' y'", " f x y = f x y", " x₁ = x₂ ↔ y₁ = y₂", " x₁ = x₂ ↔ x₁ = y₂", " x₁ = x₂ ↔ x₁ = x₂" ]
import Mathlib.Algebra.Field.Basic import Mathlib.Algebra.GroupWithZero.Units.Equiv import Mathlib.Algebra.Order.Field.Defs import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Order.Bounds.OrderIso import Mathlib.Tactic.Positivity.Core #align_import algebra.order.field.basic from "leanprover-community/mathlib"@"8477...
Mathlib/Algebra/Order/Field/Basic.lean
104
104
theorem inv_mul_le_iff' (h : 0 < b) : b⁻¹ * a ≤ c ↔ a ≤ c * b := by
rw [inv_mul_le_iff h, mul_comm]
[ " a ≤ b / c ↔ c * a ≤ b", " a = a / b * b", " c * b / b = c", " a / b ≤ c ↔ a ≤ b * c", " a / b ≤ c ↔ a / c ≤ b", " a < b / c ↔ c * a < b", " b / c < a ↔ b < c * a", " a / b < c ↔ a / c < b", " b⁻¹ * a ≤ c ↔ a ≤ b * c", " b⁻¹ * a ≤ c ↔ a ≤ c * b" ]
[ " a ≤ b / c ↔ c * a ≤ b", " a = a / b * b", " c * b / b = c", " a / b ≤ c ↔ a ≤ b * c", " a / b ≤ c ↔ a / c ≤ b", " a < b / c ↔ c * a < b", " b / c < a ↔ b < c * a", " a / b < c ↔ a / c < b", " b⁻¹ * a ≤ c ↔ a ≤ b * c" ]
import Mathlib.Analysis.Complex.UpperHalfPlane.Basic import Mathlib.Analysis.Convex.Contractible import Mathlib.Analysis.Convex.Normed import Mathlib.Analysis.Convex.Complex import Mathlib.Analysis.Complex.ReImTopology import Mathlib.Topology.Homotopy.Contractible import Mathlib.Topology.PartialHomeomorph #align_impo...
Mathlib/Analysis/Complex/UpperHalfPlane/Topology.lean
109
124
theorem ModularGroup_T_zpow_mem_verticalStrip (z : ℍ) {N : ℕ} (hn : 0 < N) : ∃ n : ℤ, ModularGroup.T ^ (N * n) • z ∈ verticalStrip N z.im := by
let n := Int.floor (z.re/N) use -n rw [modular_T_zpow_smul z (N * -n)] refine ⟨?_, (by simp only [mul_neg, Int.cast_neg, Int.cast_mul, Int.cast_natCast, vadd_im, le_refl])⟩ have h : (N * (-n : ℝ) +ᵥ z).re = -N * Int.floor (z.re / N) + z.re := by simp only [Int.cast_natCast, mul_neg, vadd_re, neg_mul]...
[ " NoncompactSpace ℍ", " False", " verticalStrip A B ⊆ verticalStrip A' B'", " z ∈ verticalStrip A' B'", " ∃ A B, 0 < B ∧ K ⊆ verticalStrip A B", " ∃ A B, 0 < B ∧ ∅ ⊆ verticalStrip A B", " ∃ n, ModularGroup.T ^ (↑N * n) • z ∈ verticalStrip (↑N) z.im", " ModularGroup.T ^ (↑N * -n) • z ∈ verticalStrip (↑...
[ " NoncompactSpace ℍ", " False", " verticalStrip A B ⊆ verticalStrip A' B'", " z ∈ verticalStrip A' B'", " ∃ A B, 0 < B ∧ K ⊆ verticalStrip A B", " ∃ A B, 0 < B ∧ ∅ ⊆ verticalStrip A B" ]
import Mathlib.Data.Finsupp.Defs #align_import data.finsupp.ne_locus from "leanprover-community/mathlib"@"f7fc89d5d5ff1db2d1242c7bb0e9062ce47ef47c" variable {α M N P : Type*} namespace Finsupp variable [DecidableEq α] section NHasZero variable [DecidableEq N] [Zero N] (f g : α →₀ N) def neLocus (f g : α →₀ ...
Mathlib/Data/Finsupp/NeLocus.lean
69
70
theorem neLocus_comm : f.neLocus g = g.neLocus f := by
simp_rw [neLocus, Finset.union_comm, ne_comm]
[ " a ∈ f.neLocus g ↔ f a ≠ g a", " ↑(f.neLocus g) = {x | f x ≠ g x}", " x✝ ∈ ↑(f.neLocus g) ↔ x✝ ∈ {x | f x ≠ g x}", " f.neLocus f = ∅", " f.neLocus g = g.neLocus f" ]
[ " a ∈ f.neLocus g ↔ f a ≠ g a", " ↑(f.neLocus g) = {x | f x ≠ g x}", " x✝ ∈ ↑(f.neLocus g) ↔ x✝ ∈ {x | f x ≠ g x}", " f.neLocus f = ∅" ]
import Mathlib.RingTheory.Ideal.Maps #align_import ring_theory.ideal.prod from "leanprover-community/mathlib"@"052f6013363326d50cb99c6939814a4b8eb7b301" universe u v variable {R : Type u} {S : Type v} [Semiring R] [Semiring S] (I I' : Ideal R) (J J' : Ideal S) namespace Ideal def prod : Ideal (R × S) where ...
Mathlib/RingTheory/Ideal/Prod.lean
50
58
theorem ideal_prod_eq (I : Ideal (R × S)) : I = Ideal.prod (map (RingHom.fst R S) I : Ideal R) (map (RingHom.snd R S) I) := by
apply Ideal.ext rintro ⟨r, s⟩ rw [mem_prod, mem_map_iff_of_surjective (RingHom.fst R S) Prod.fst_surjective, mem_map_iff_of_surjective (RingHom.snd R S) Prod.snd_surjective] refine ⟨fun h => ⟨⟨_, ⟨h, rfl⟩⟩, ⟨_, ⟨h, rfl⟩⟩⟩, ?_⟩ rintro ⟨⟨⟨r, s'⟩, ⟨h₁, rfl⟩⟩, ⟨⟨r', s⟩, ⟨h₂, rfl⟩⟩⟩ simpa using I.add_mem (I...
[ " ∀ {a b : R × S}, a ∈ {x | x.1 ∈ I ∧ x.2 ∈ J} → b ∈ {x | x.1 ∈ I ∧ x.2 ∈ J} → a + b ∈ {x | x.1 ∈ I ∧ x.2 ∈ J}", " (a₁, a₂) + (b₁, b₂) ∈ {x | x.1 ∈ I ∧ x.2 ∈ J}", " 0 ∈ { carrier := {x | x.1 ∈ I ∧ x.2 ∈ J}, add_mem' := ⋯ }.carrier", " ∀ (c : R × S) {x : R × S},\n x ∈ { carrier := {x | x.1 ∈ I ∧ x.2 ∈ J}, a...
[ " ∀ {a b : R × S}, a ∈ {x | x.1 ∈ I ∧ x.2 ∈ J} → b ∈ {x | x.1 ∈ I ∧ x.2 ∈ J} → a + b ∈ {x | x.1 ∈ I ∧ x.2 ∈ J}", " (a₁, a₂) + (b₁, b₂) ∈ {x | x.1 ∈ I ∧ x.2 ∈ J}", " 0 ∈ { carrier := {x | x.1 ∈ I ∧ x.2 ∈ J}, add_mem' := ⋯ }.carrier", " ∀ (c : R × S) {x : R × S},\n x ∈ { carrier := {x | x.1 ∈ I ∧ x.2 ∈ J}, a...
import Mathlib.Analysis.Convex.Body import Mathlib.Analysis.Convex.Measure import Mathlib.MeasureTheory.Group.FundamentalDomain #align_import measure_theory.group.geometry_of_numbers from "leanprover-community/mathlib"@"fd5edc43dc4f10b85abfe544b88f82cf13c5f844" namespace MeasureTheory open ENNReal FiniteDimensio...
Mathlib/MeasureTheory/Group/GeometryOfNumbers.lean
50
58
theorem exists_pair_mem_lattice_not_disjoint_vadd [AddCommGroup L] [Countable L] [AddAction L E] [MeasurableSpace L] [MeasurableVAdd L E] [VAddInvariantMeasure L E μ] (fund : IsAddFundamentalDomain L F μ) (hS : NullMeasurableSet s μ) (h : μ F < μ s) : ∃ x y : L, x ≠ y ∧ ¬Disjoint (x +ᵥ s) (y +ᵥ s) := by
contrapose! h exact ((fund.measure_eq_tsum _).trans (measure_iUnion₀ (Pairwise.mono h fun i j hij => (hij.mono inf_le_left inf_le_left).aedisjoint) fun _ => (hS.vadd _).inter fund.nullMeasurableSet).symm).trans_le (measure_mono <| Set.iUnion_subset fun _ => Set.inter_subset_right)
[ " ∃ x y, x ≠ y ∧ ¬Disjoint (x +ᵥ s) (y +ᵥ s)", " μ s ≤ μ F" ]
[]
import Mathlib.Algebra.Polynomial.Basic import Mathlib.FieldTheory.IsAlgClosed.Basic #align_import linear_algebra.matrix.charpoly.eigs from "leanprover-community/mathlib"@"48dc6abe71248bd6f4bffc9703dc87bdd4e37d0b" variable {n : Type*} [Fintype n] [DecidableEq n] variable {R : Type*} [Field R] variable {A : Matrix...
Mathlib/LinearAlgebra/Matrix/Charpoly/Eigs.lean
67
75
theorem trace_eq_sum_roots_charpoly_of_splits (hAps : A.charpoly.Splits (RingHom.id R)) : A.trace = (Matrix.charpoly A).roots.sum := by
cases' isEmpty_or_nonempty n with h · rw [Matrix.trace, Fintype.sum_empty, Matrix.charpoly, det_eq_one_of_card_eq_zero (Fintype.card_eq_zero_iff.2 h), Polynomial.roots_one, Multiset.empty_eq_zero, Multiset.sum_zero] · rw [trace_eq_neg_charpoly_coeff, neg_eq_iff_eq_neg, ← Polynomial.sum_roots_eq...
[ " A.det = A.charpoly.roots.prod", " A.trace = A.charpoly.roots.sum" ]
[ " A.det = A.charpoly.roots.prod" ]
import Mathlib.Data.Stream.Defs import Mathlib.Logic.Function.Basic import Mathlib.Init.Data.List.Basic import Mathlib.Data.List.Basic #align_import data.stream.init from "leanprover-community/mathlib"@"207cfac9fcd06138865b5d04f7091e46d9320432" set_option autoImplicit true open Nat Function Option namespace Stre...
Mathlib/Data/Stream/Init.lean
162
163
theorem map_eq (s : Stream' α) : map f s = f (head s)::map f (tail s) := by
rw [← Stream'.eta (map f s), tail_map, head_map]
[ " (s.head :: s.tail) i = s i", " (s.head :: s.tail) 0 = s 0", " (s.head :: s.tail) (n✝ + 1) = s (n✝ + 1)", " drop n (drop m s) = drop (n + m) s", " (drop n (drop m s)).get n✝ = (drop (n + m) s).get n✝", " (drop i s).tail = drop (i + 1) s", " (drop i s).tail.get n✝ = (drop (i + 1) s).get n✝", " (drop n...
[ " (s.head :: s.tail) i = s i", " (s.head :: s.tail) 0 = s 0", " (s.head :: s.tail) (n✝ + 1) = s (n✝ + 1)", " drop n (drop m s) = drop (n + m) s", " (drop n (drop m s)).get n✝ = (drop (n + m) s).get n✝", " (drop i s).tail = drop (i + 1) s", " (drop i s).tail.get n✝ = (drop (i + 1) s).get n✝", " (drop n...
import Mathlib.Combinatorics.SimpleGraph.Coloring #align_import combinatorics.simple_graph.partition from "leanprover-community/mathlib"@"2303b3e299f1c75b07bceaaac130ce23044d1386" universe u v namespace SimpleGraph variable {V : Type u} (G : SimpleGraph V) structure Partition where parts : Set (Set V) ...
Mathlib/Combinatorics/SimpleGraph/Partition.lean
98
102
theorem partOfVertex_ne_of_adj {v w : V} (h : G.Adj v w) : P.partOfVertex v ≠ P.partOfVertex w := by
intro hn have hw := P.mem_partOfVertex w rw [← hn] at hw exact P.independent _ (P.partOfVertex_mem v) (P.mem_partOfVertex v) hw (G.ne_of_adj h) h
[ " P.partOfVertex v ∈ P.parts", " v ∈ P.partOfVertex v", " P.partOfVertex v ≠ P.partOfVertex w", " False" ]
[ " P.partOfVertex v ∈ P.parts", " v ∈ P.partOfVertex v" ]
import Mathlib.Algebra.Order.Group.Defs import Mathlib.Algebra.Order.Monoid.WithTop #align_import algebra.order.group.with_top from "leanprover-community/mathlib"@"f178c0e25af359f6cbc72a96a243efd3b12423a3" namespace WithTop variable {α : Type*} namespace LinearOrderedAddCommGroup variable [LinearOrderedAddCommG...
Mathlib/Algebra/Order/Group/WithTop.lean
61
62
theorem top_sub {a : WithTop α} : (⊤ : WithTop α) - a = ⊤ := by
cases a <;> rfl
[ " ⊤ - a = ⊤", " ⊤ - ⊤ = ⊤", " ⊤ - ↑a✝ = ⊤" ]
[]
import Mathlib.Probability.ConditionalProbability import Mathlib.MeasureTheory.Measure.Count #align_import probability.cond_count from "leanprover-community/mathlib"@"117e93f82b5f959f8193857370109935291f0cc4" noncomputable section open ProbabilityTheory open MeasureTheory MeasurableSpace namespace ProbabilityT...
Mathlib/Probability/CondCount.lean
110
115
theorem condCount_eq_one_of (hs : s.Finite) (hs' : s.Nonempty) (ht : s ⊆ t) : condCount s t = 1 := by
haveI := condCount_isProbabilityMeasure hs hs' refine eq_of_le_of_not_lt prob_le_one ?_ rw [not_lt, ← condCount_self hs hs'] exact measure_mono ht
[ " condCount ∅ = 0", " (condCount s) ∅ = 0", " s.Finite", " False", " (condCount Set.univ) s = Measure.count s / ↑(Fintype.card Ω)", " Measure.count s / Measure.count Set.univ = Measure.count s / ↑(Fintype.card Ω)", " Measure.count Set.univ = ↑(Fintype.card Ω)", " ∑ x : Ω, 1 = ↑(Fintype.card Ω)", " M...
[ " condCount ∅ = 0", " (condCount s) ∅ = 0", " s.Finite", " False", " (condCount Set.univ) s = Measure.count s / ↑(Fintype.card Ω)", " Measure.count s / Measure.count Set.univ = Measure.count s / ↑(Fintype.card Ω)", " Measure.count Set.univ = ↑(Fintype.card Ω)", " ∑ x : Ω, 1 = ↑(Fintype.card Ω)", " M...
import Mathlib.Algebra.Homology.ShortComplex.ModuleCat import Mathlib.RepresentationTheory.GroupCohomology.Basic import Mathlib.RepresentationTheory.Invariants universe v u noncomputable section open CategoryTheory Limits Representation variable {k G : Type u} [CommRing k] [Group G] (A : Rep k G) namespace grou...
Mathlib/RepresentationTheory/GroupCohomology/LowDegree.lean
100
103
theorem dZero_ker_eq_invariants : LinearMap.ker (dZero A) = invariants A.ρ := by
ext x simp only [LinearMap.mem_ker, mem_invariants, ← @sub_eq_zero _ _ _ x, Function.funext_iff] rfl
[ " (fun m g => (A.ρ g) m - m) (x + y) g = ((fun m g => (A.ρ g) m - m) x + (fun m g => (A.ρ g) m - m) y) g", " (A.ρ g) x - x + ((A.ρ g) y - y) = ((fun g => (A.ρ g) x - x) + fun g => (A.ρ g) y - y) g", " { toFun := fun m g => (A.ρ g) m - m, map_add' := ⋯ }.toFun (r • x) g =\n ((RingHom.id k) r • { toFun := fun ...
[ " (fun m g => (A.ρ g) m - m) (x + y) g = ((fun m g => (A.ρ g) m - m) x + (fun m g => (A.ρ g) m - m) y) g", " (A.ρ g) x - x + ((A.ρ g) y - y) = ((fun g => (A.ρ g) x - x) + fun g => (A.ρ g) y - y) g", " { toFun := fun m g => (A.ρ g) m - m, map_add' := ⋯ }.toFun (r • x) g =\n ((RingHom.id k) r • { toFun := fun ...
import Batteries.Tactic.Lint.Basic import Mathlib.Algebra.Order.Monoid.Unbundled.Basic import Mathlib.Algebra.Order.Ring.Defs import Mathlib.Algebra.Order.ZeroLEOne import Mathlib.Data.Nat.Cast.Order import Mathlib.Init.Data.Int.Order set_option autoImplicit true namespace Linarith theorem lt_irrefl {α : Type u} ...
Mathlib/Tactic/Linarith/Lemmas.lean
30
31
theorem le_of_eq_of_le {α} [OrderedSemiring α] {a b : α} (ha : a = 0) (hb : b ≤ 0) : a + b ≤ 0 := by
simp [*]
[ " a + b = 0", " a + b ≤ 0" ]
[ " a + b = 0" ]
import Mathlib.Topology.MetricSpace.Basic #align_import topology.metric_space.infsep from "leanprover-community/mathlib"@"5316314b553dcf8c6716541851517c1a9715e22b" variable {α β : Type*} namespace Set section Einfsep open ENNReal open Function noncomputable def einfsep [EDist α] (s : Set α) : ℝ≥0∞ := ⨅ (x...
Mathlib/Topology/MetricSpace/Infsep.lean
98
100
theorem le_einfsep_image_iff {d} {f : β → α} {s : Set β} : d ≤ einfsep (f '' s) ↔ ∀ x ∈ s, ∀ y ∈ s, f x ≠ f y → d ≤ edist (f x) (f y) := by
simp_rw [le_einfsep_iff, forall_mem_image]
[ " d ≤ s.einfsep ↔ ∀ x ∈ s, ∀ y ∈ s, x ≠ y → d ≤ edist x y", " s.einfsep = 0 ↔ ∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C", " 0 < s.einfsep ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " (¬∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C) ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " s...
[ " d ≤ s.einfsep ↔ ∀ x ∈ s, ∀ y ∈ s, x ≠ y → d ≤ edist x y", " s.einfsep = 0 ↔ ∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C", " 0 < s.einfsep ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " (¬∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C) ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " s...
import Mathlib.LinearAlgebra.AffineSpace.Basis import Mathlib.LinearAlgebra.Matrix.NonsingularInverse #align_import linear_algebra.affine_space.matrix from "leanprover-community/mathlib"@"2de9c37fa71dde2f1c6feff19876dd6a7b1519f0" open Affine Matrix open Set universe u₁ u₂ u₃ u₄ variable {ι : Type u₁} {k : Type...
Mathlib/LinearAlgebra/AffineSpace/Matrix.lean
137
146
theorem isUnit_toMatrix_iff [Nontrivial k] (p : ι → P) : IsUnit (b.toMatrix p) ↔ AffineIndependent k p ∧ affineSpan k (range p) = ⊤ := by
constructor · rintro ⟨⟨B, A, hA, hA'⟩, rfl : B = b.toMatrix p⟩ exact ⟨b.affineIndependent_of_toMatrix_right_inv p hA, b.affineSpan_eq_top_of_toMatrix_left_inv p hA'⟩ · rintro ⟨h_tot, h_ind⟩ let b' : AffineBasis ι k P := ⟨p, h_tot, h_ind⟩ change IsUnit (b.toMatrix b') exact b.isUnit_toMatrix...
[ " b.toMatrix ⇑b = 1", " b.toMatrix (⇑b) i j = 1 i j", " ∑ j : ι, b.toMatrix q i j = 1", " AffineIndependent k p", " ∀ (w1 w2 : ι' → k),\n ∑ i : ι', w1 i = 1 →\n ∑ i : ι', w2 i = 1 →\n (Finset.affineCombination k Finset.univ p) w1 = (Finset.affineCombination k Finset.univ p) w2 → w1 = w2", "...
[ " b.toMatrix ⇑b = 1", " b.toMatrix (⇑b) i j = 1 i j", " ∑ j : ι, b.toMatrix q i j = 1", " AffineIndependent k p", " ∀ (w1 w2 : ι' → k),\n ∑ i : ι', w1 i = 1 →\n ∑ i : ι', w2 i = 1 →\n (Finset.affineCombination k Finset.univ p) w1 = (Finset.affineCombination k Finset.univ p) w2 → w1 = w2", "...
import Mathlib.Data.Fintype.Basic import Mathlib.GroupTheory.OrderOfElement import Mathlib.Tactic.Zify import Mathlib.Data.Nat.Totient #align_import number_theory.lucas_primality from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a"
Mathlib/NumberTheory/LucasPrimality.lean
42
63
theorem lucas_primality (p : ℕ) (a : ZMod p) (ha : a ^ (p - 1) = 1) (hd : ∀ q : ℕ, q.Prime → q ∣ p - 1 → a ^ ((p - 1) / q) ≠ 1) : p.Prime := by
have h0 : p ≠ 0 := by rintro ⟨⟩ exact hd 2 Nat.prime_two (dvd_zero _) (pow_zero _) have h1 : p ≠ 1 := by rintro ⟨⟩ exact hd 2 Nat.prime_two (dvd_zero _) (pow_zero _) have hp1 : 1 < p := lt_of_le_of_ne h0.bot_lt h1.symm have order_of_a : orderOf a = p - 1 := by apply orderOf_eq_of_pow_and_po...
[ " p.Prime", " p ≠ 0", " False", " p ≠ 1", " orderOf a = p - 1", " 0 < p - 1", " Fintype.card (ZMod p)ˣ = p - 1", " p - 1 ≤ Fintype.card (ZMod p)ˣ", " a * a ^ (p - 2) = 1" ]
[]
namespace Nat @[reducible] def Coprime (m n : Nat) : Prop := gcd m n = 1 instance (m n : Nat) : Decidable (Coprime m n) := inferInstanceAs (Decidable (_ = 1)) theorem coprime_iff_gcd_eq_one : Coprime m n ↔ gcd m n = 1 := .rfl theorem Coprime.gcd_eq_one : Coprime m n → gcd m n = 1 := id theorem Coprime.symm ...
.lake/packages/batteries/Batteries/Data/Nat/Gcd.lean
87
91
theorem Coprime.coprime_dvd_left (H1 : m ∣ k) (H2 : Coprime k n) : Coprime m n := by
apply eq_one_of_dvd_one rw [Coprime] at H2 have := Nat.gcd_dvd_gcd_of_dvd_left n H1 rwa [← H2]
[ " k ∣ m", " k ∣ n * m", " ((k * m).gcd n).Coprime k", " (m * k).gcd n = m.gcd n", " m.gcd (k * n) = m.gcd n", " m.gcd (n * k) = m.gcd n", " (m / m.gcd n).Coprime (n / m.gcd n)", " d ∣ 1", " d ∣ m.gcd n", " ∃ m' n', m'.Coprime n' ∧ m = m' * m.gcd n ∧ n = n' * m.gcd n", " m = 1 * m.gcd n ∧ n = 1 *...
[ " k ∣ m", " k ∣ n * m", " ((k * m).gcd n).Coprime k", " (m * k).gcd n = m.gcd n", " m.gcd (k * n) = m.gcd n", " m.gcd (n * k) = m.gcd n", " (m / m.gcd n).Coprime (n / m.gcd n)", " d ∣ 1", " d ∣ m.gcd n", " ∃ m' n', m'.Coprime n' ∧ m = m' * m.gcd n ∧ n = n' * m.gcd n", " m = 1 * m.gcd n ∧ n = 1 *...
import Mathlib.CategoryTheory.Balanced import Mathlib.CategoryTheory.LiftingProperties.Basic #align_import category_theory.limits.shapes.strong_epi from "leanprover-community/mathlib"@"32253a1a1071173b33dc7d6a218cf722c6feb514" universe v u namespace CategoryTheory variable {C : Type u} [Category.{v} C] variable...
Mathlib/CategoryTheory/Limits/Shapes/StrongEpi.lean
172
175
theorem StrongEpi.iff_of_arrow_iso {A B A' B' : C} {f : A ⟶ B} {g : A' ⟶ B'} (e : Arrow.mk f ≅ Arrow.mk g) : StrongEpi f ↔ StrongEpi g := by
constructor <;> intro exacts [StrongEpi.of_arrow_iso e, StrongEpi.of_arrow_iso e.symm]
[ " ∀ ⦃X Y : C⦄ (z : X ⟶ Y) [inst : Mono z], HasLiftingProperty (f ≫ g) z", " HasLiftingProperty (f ≫ g) z✝", " ∀ ⦃X Y : C⦄ (z : X ⟶ Y) [inst : Epi z], HasLiftingProperty z (f ≫ g)", " HasLiftingProperty z✝ (f ≫ g)", " HasLiftingProperty g z", " ∀ {f : Q ⟶ X} {g_1 : R ⟶ Y} (sq : CommSq f g z g_1), sq.HasLif...
[ " ∀ ⦃X Y : C⦄ (z : X ⟶ Y) [inst : Mono z], HasLiftingProperty (f ≫ g) z", " HasLiftingProperty (f ≫ g) z✝", " ∀ ⦃X Y : C⦄ (z : X ⟶ Y) [inst : Epi z], HasLiftingProperty z (f ≫ g)", " HasLiftingProperty z✝ (f ≫ g)", " HasLiftingProperty g z", " ∀ {f : Q ⟶ X} {g_1 : R ⟶ Y} (sq : CommSq f g z g_1), sq.HasLif...
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
90
93
theorem ascPochhammer_eval₂ (f : S →+* T) (n : ℕ) (t : T) : (ascPochhammer T n).eval t = (ascPochhammer S n).eval₂ f t := by
rw [← ascPochhammer_map f] exact eval_map f t
[ " 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.Algebra.BigOperators.Intervals import Mathlib.Topology.Algebra.InfiniteSum.Order import Mathlib.Topology.Instances.Real import Mathlib.Topology.Instances.ENNReal #align_import topology.algebra.infinite_sum.real from "leanprover-community/mathlib"@"9a59dcb7a2d06bf55da57b9030169219980660cd" open Filte...
Mathlib/Topology/Algebra/InfiniteSum/Real.lean
78
81
theorem summable_sigma_of_nonneg {β : α → Type*} {f : (Σ x, β x) → ℝ} (hf : ∀ x, 0 ≤ f x) : Summable f ↔ (∀ x, Summable fun y => f ⟨x, y⟩) ∧ Summable fun x => ∑' y, f ⟨x, y⟩ := by
lift f to (Σx, β x) → ℝ≥0 using hf exact mod_cast NNReal.summable_sigma
[ " CauchySeq f", " ∀ (n : ℕ), edist (f n) (f n.succ) ≤ ↑(d n)", " Summable d", " dist (f n) a ≤ ∑' (m : ℕ), d (n + m)", " dist (f n) (f m) ≤ ∑' (m : ℕ), d (n + m)", " ∑ i ∈ Ico n m, d i ≤ ∑' (m : ℕ), d (n + m)", " ∑ k ∈ range (m - n), d (n + k) ≤ ∑' (m : ℕ), d (n + m)", " Summable fun k => d (n + k)", ...
[ " CauchySeq f", " ∀ (n : ℕ), edist (f n) (f n.succ) ≤ ↑(d n)", " Summable d", " dist (f n) a ≤ ∑' (m : ℕ), d (n + m)", " dist (f n) (f m) ≤ ∑' (m : ℕ), d (n + m)", " ∑ i ∈ Ico n m, d i ≤ ∑' (m : ℕ), d (n + m)", " ∑ k ∈ range (m - n), d (n + k) ≤ ∑' (m : ℕ), d (n + m)", " Summable fun k => d (n + k)", ...
import Mathlib.MeasureTheory.Function.SimpleFunc import Mathlib.MeasureTheory.Constructions.BorelSpace.Metrizable #align_import measure_theory.function.simple_func_dense from "leanprover-community/mathlib"@"7317149f12f55affbc900fc873d0d422485122b9" open Set Function Filter TopologicalSpace ENNReal EMetric Finset ...
Mathlib/MeasureTheory/Function/SimpleFuncDense.lean
87
92
theorem nearestPtInd_succ (e : ℕ → α) (N : ℕ) (x : α) : nearestPtInd e (N + 1) x = if ∀ k ≤ N, edist (e (N + 1)) x < edist (e k) x then N + 1 else nearestPtInd e N x := by
simp only [nearestPtInd, coe_piecewise, Set.piecewise] congr simp
[ " ↑(nearestPtInd e (N + 1)) x = if ∀ k ≤ N, edist (e (N + 1)) x < edist (e k) x then N + 1 else ↑(nearestPtInd e N) x", " (if x ∈ ⋂ k, ⋂ (_ : k ≤ N), {x | edist (e (N + 1)) x < edist (e k) x} then ↑(const α (N + 1)) x\n else ↑(nearestPtInd e N) x) =\n if ∀ k ≤ N, edist (e (N + 1)) x < edist (e k) x then N +...
[]
import Mathlib.LinearAlgebra.Dimension.Constructions import Mathlib.LinearAlgebra.Dimension.Finite universe u v open Function Set Cardinal variable {R} {M M₁ M₂ M₃ : Type u} {M' : Type v} [Ring R] variable [AddCommGroup M] [AddCommGroup M₁] [AddCommGroup M₂] [AddCommGroup M₃] [AddCommGroup M'] variable [Module R M...
Mathlib/LinearAlgebra/Dimension/RankNullity.lean
86
88
theorem rank_eq_of_surjective {f : M →ₗ[R] M₁} (h : Surjective f) : Module.rank R M = Module.rank R M₁ + Module.rank R (LinearMap.ker f) := by
rw [← rank_range_add_rank_ker f, ← rank_range_of_surjective f h]
[ " Nontrivial R", " False", " lift.{u, v} (Module.rank R ↥(LinearMap.range f)) + lift.{v, u} (Module.rank R ↥(LinearMap.ker f)) =\n lift.{v, u} (Module.rank R M)", " Module.rank R ↥(LinearMap.range f) + Module.rank R ↥(LinearMap.ker f) = Module.rank R M", " lift.{v, u} (Module.rank R M) = lift.{u, v} (Mod...
[ " Nontrivial R", " False", " lift.{u, v} (Module.rank R ↥(LinearMap.range f)) + lift.{v, u} (Module.rank R ↥(LinearMap.ker f)) =\n lift.{v, u} (Module.rank R M)", " Module.rank R ↥(LinearMap.range f) + Module.rank R ↥(LinearMap.ker f) = Module.rank R M", " lift.{v, u} (Module.rank R M) = lift.{u, v} (Mod...
import Mathlib.Data.Finset.Lattice import Mathlib.Data.Set.Sigma #align_import data.finset.sigma from "leanprover-community/mathlib"@"9003f28797c0664a49e4179487267c494477d853" open Function Multiset variable {ι : Type*} namespace Finset section Sigma variable {α : ι → Type*} {β : Type*} (s s₁ s₂ : Finset ι) (...
Mathlib/Data/Finset/Sigma.lean
75
81
theorem pairwiseDisjoint_map_sigmaMk : (s : Set ι).PairwiseDisjoint fun i => (t i).map (Embedding.sigmaMk i) := by
intro i _ j _ hij rw [Function.onFun, disjoint_left] simp_rw [mem_map, Function.Embedding.sigmaMk_apply] rintro _ ⟨y, _, rfl⟩ ⟨z, _, hz'⟩ exact hij (congr_arg Sigma.fst hz'.symm)
[ " (s.sigma t).Nonempty ↔ ∃ i ∈ s, (t i).Nonempty", " s.sigma t = ∅ ↔ ∀ i ∈ s, t i = ∅", " (↑s).PairwiseDisjoint fun i => map (Embedding.sigmaMk i) (t i)", " (_root_.Disjoint on fun i => map (Embedding.sigmaMk i) (t i)) i j", " ∀ ⦃a : (x : ι) × α x⦄, a ∈ map (Embedding.sigmaMk i) (t i) → a ∉ map (Embedding.s...
[ " (s.sigma t).Nonempty ↔ ∃ i ∈ s, (t i).Nonempty", " s.sigma t = ∅ ↔ ∀ i ∈ s, t i = ∅" ]
import Mathlib.Tactic.CategoryTheory.Elementwise import Mathlib.CategoryTheory.Limits.Shapes.Multiequalizer import Mathlib.CategoryTheory.Limits.Constructions.EpiMono import Mathlib.CategoryTheory.Limits.Preserves.Limits import Mathlib.CategoryTheory.Limits.Shapes.Types #align_import category_theory.glue_data from "l...
Mathlib/CategoryTheory/GlueData.lean
77
85
theorem t'_iij (i j : D.J) : D.t' i i j = (pullbackSymmetry _ _).hom := by
have eq₁ := D.t_fac i i j have eq₂ := (IsIso.eq_comp_inv (D.f i i)).mpr (@pullback.condition _ _ _ _ _ _ (D.f i j) _) rw [D.t_id, Category.comp_id, eq₂] at eq₁ have eq₃ := (IsIso.eq_comp_inv (D.f i i)).mp eq₁ rw [Category.assoc, ← pullback.condition, ← Category.assoc] at eq₃ exact Mono.right_cancellati...
[ " D.t' i i j = (pullbackSymmetry (D.f i i) (D.f i j)).hom" ]
[]
import Mathlib.Analysis.Convex.Between import Mathlib.Analysis.Normed.Group.AddTorsor import Mathlib.Geometry.Euclidean.Angle.Unoriented.Basic import Mathlib.Analysis.NormedSpace.AffineIsometry #align_import geometry.euclidean.angle.unoriented.affine from "leanprover-community/mathlib"@"46b633fd842bef9469441c0209906f...
Mathlib/Geometry/Euclidean/Angle/Unoriented/Affine.lean
125
126
theorem angle_neg (v₁ v₂ v₃ : V) : ∠ (-v₁) (-v₂) (-v₃) = ∠ v₁ v₂ v₃ := by
simpa only [zero_sub] using angle_const_sub 0 v₁ v₂ v₃
[ " ContinuousAt (fun y => ∠ y.1 y.2.1 y.2.2) x", " (f x).1 ≠ 0", " (f x).2 ≠ 0", " ∠ (f p₁) (f p₂) (f p₃) = ∠ p₁ p₂ p₃", " ∠ (v₁ - v) (v₂ - v) (v₃ - v) = ∠ v₁ v₂ v₃", " ∠ (v - v₁) (v - v₂) (v - v₃) = ∠ v₁ v₂ v₃", " ∠ (-v₁) (-v₂) (-v₃) = ∠ v₁ v₂ v₃" ]
[ " ContinuousAt (fun y => ∠ y.1 y.2.1 y.2.2) x", " (f x).1 ≠ 0", " (f x).2 ≠ 0", " ∠ (f p₁) (f p₂) (f p₃) = ∠ p₁ p₂ p₃", " ∠ (v₁ - v) (v₂ - v) (v₃ - v) = ∠ v₁ v₂ v₃", " ∠ (v - v₁) (v - v₂) (v - v₃) = ∠ v₁ v₂ v₃" ]
import Mathlib.LinearAlgebra.CliffordAlgebra.Contraction variable {R M : Type*} variable [CommRing R] [AddCommGroup M] [Module R M] {Q : QuadraticForm R M} namespace CliffordAlgebra variable (Q) def invertibleιOfInvertible (m : M) [Invertible (Q m)] : Invertible (ι Q m) where invOf := ι Q (⅟ (Q m) • m) invO...
Mathlib/LinearAlgebra/CliffordAlgebra/Inversion.lean
44
47
theorem ι_mul_ι_mul_invOf_ι (a b : M) [Invertible (ι Q a)] [Invertible (Q a)] : ι Q a * ι Q b * ⅟ (ι Q a) = ι Q ((⅟ (Q a) * QuadraticForm.polar Q a b) • a - b) := by
rw [invOf_ι, map_smul, mul_smul_comm, ι_mul_ι_mul_ι, ← map_smul, smul_sub, smul_smul, smul_smul, invOf_mul_self, one_smul]
[ " (ι Q) (⅟(Q m) • m) * (ι Q) m = 1", " (ι Q) m * (ι Q) (⅟(Q m) • m) = 1", " ⅟((ι Q) m) = (ι Q) (⅟(Q m) • m)", " IsUnit ((ι Q) m)", " (ι Q) a * (ι Q) b * ⅟((ι Q) a) = (ι Q) ((⅟(Q a) * QuadraticForm.polar (⇑Q) a b) • a - b)" ]
[ " (ι Q) (⅟(Q m) • m) * (ι Q) m = 1", " (ι Q) m * (ι Q) (⅟(Q m) • m) = 1", " ⅟((ι Q) m) = (ι Q) (⅟(Q m) • m)", " IsUnit ((ι Q) m)" ]
import Mathlib.Analysis.Calculus.FDeriv.Add import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FDeriv.Prod import Mathlib.Analysis.Calculus.Monotone import Mathlib.Data.Set.Function import Mathlib.Algebra.Group.Basic import Mathlib.Tactic.WLOG #align_import analysis.bounded_variation from ...
Mathlib/Analysis/BoundedVariation.lean
83
86
theorem nonempty_monotone_mem {s : Set α} (hs : s.Nonempty) : Nonempty { u // Monotone u ∧ ∀ i : ℕ, u i ∈ s } := by
obtain ⟨x, hx⟩ := hs exact ⟨⟨fun _ => x, fun i j _ => le_rfl, fun _ => hx⟩⟩
[ " Nonempty { u // Monotone u ∧ ∀ (i : ℕ), u i ∈ s }" ]
[]
import Mathlib.Topology.Defs.Sequences import Mathlib.Topology.UniformSpace.Cauchy #align_import topology.sequences from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set Function Filter TopologicalSpace Bornology open scoped Topology Uniformity variable {X Y : Type*} section ...
Mathlib/Topology/Sequences.lean
139
151
theorem FrechetUrysohnSpace.of_seq_tendsto_imp_tendsto (h : ∀ (f : X → Prop) (a : X), (∀ u : ℕ → X, Tendsto u atTop (𝓝 a) → Tendsto (f ∘ u) atTop (𝓝 (f a))) → ContinuousAt f a) : FrechetUrysohnSpace X := by
refine ⟨fun s x hcx => ?_⟩ by_cases hx : x ∈ s; · exact subset_seqClosure hx · obtain ⟨u, hux, hus⟩ : ∃ u : ℕ → X, Tendsto u atTop (𝓝 x) ∧ ∃ᶠ x in atTop, u x ∈ s := by simpa only [ContinuousAt, hx, tendsto_nhds_true, (· ∘ ·), ← not_frequently, exists_prop, ← mem_closure_iff_frequently, hcx, imp_...
[ " a ∈ closure s ↔ ∃ x, (∀ (n : ℕ), x n ∈ s) ∧ Tendsto x atTop (𝓝 a)", " a ∈ seqClosure s ↔ ∃ x, (∀ (n : ℕ), x n ∈ s) ∧ Tendsto x atTop (𝓝 a)", " Tendsto f (𝓝 a) (𝓝 b) ↔ ∀ (u : ℕ → X), Tendsto u atTop (𝓝 a) → Tendsto (f ∘ u) atTop (𝓝 b)", " ∀ (ib : Set Y), b ∉ ib ∧ IsClosed ib → ∃ ia, (a ∉ ia ∧ IsClosed ...
[ " a ∈ closure s ↔ ∃ x, (∀ (n : ℕ), x n ∈ s) ∧ Tendsto x atTop (𝓝 a)", " a ∈ seqClosure s ↔ ∃ x, (∀ (n : ℕ), x n ∈ s) ∧ Tendsto x atTop (𝓝 a)", " Tendsto f (𝓝 a) (𝓝 b) ↔ ∀ (u : ℕ → X), Tendsto u atTop (𝓝 a) → Tendsto (f ∘ u) atTop (𝓝 b)", " ∀ (ib : Set Y), b ∉ ib ∧ IsClosed ib → ∃ ia, (a ∉ ia ∧ IsClosed ...
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
144
146
theorem fourier_eval_zero (n : ℤ) : fourier n (0 : AddCircle T) = 1 := by
rw [← QuotientAddGroup.mk_zero, fourier_coe_apply, Complex.ofReal_zero, mul_zero, zero_div, Complex.exp_zero]
[ " (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.Data.Sigma.Basic import Mathlib.Algebra.Order.Ring.Nat #align_import set_theory.lists from "leanprover-community/mathlib"@"497d1e06409995dd8ec95301fa8d8f3480187f4c" variable {α : Type*} inductive Lists'.{u} (α : Type u) : Bool → Type u | atom : α → Lists' α false | nil : Lists' α true | con...
Mathlib/SetTheory/Lists.lean
103
120
theorem of_toList : ∀ l : Lists' α true, ofList (toList l) = l := suffices ∀ (b) (h : true = b) (l : Lists' α b), let l' : Lists' α true := by
rw [h]; exact l ofList (toList l') = l' from this _ rfl fun b h l => by induction l with | atom => cases h -- Porting note: case nil was not covered. | nil => simp | cons' b a _ IH => intro l' -- Porting note: Previous code was: -- change l' with cons' a l -- ...
[ " (cons a l).toList = a :: l.toList", " (ofList l).toList = l", " (ofList []).toList = []", " (ofList (head✝ :: tail✝)).toList = head✝ :: tail✝", " Lists' α true", " Lists' α b", " let l' := ⋯.mpr l;\n ofList l'.toList = l'", " let l' := ⋯.mpr (atom a✝);\n ofList l'.toList = l'", " let l' := ⋯.mpr...
[ " (cons a l).toList = a :: l.toList", " (ofList l).toList = l", " (ofList []).toList = []", " (ofList (head✝ :: tail✝)).toList = head✝ :: tail✝" ]
import Mathlib.LinearAlgebra.FiniteDimensional import Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup import Mathlib.LinearAlgebra.Matrix.Nondegenerate import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Matrix.ToLin import Mathlib.RingTheory.Localization.FractionRing import Mathlib.Rin...
Mathlib/LinearAlgebra/Matrix/ToLinearEquiv.lean
180
190
theorem nondegenerate_iff_det_ne_zero {A : Type*} [DecidableEq n] [CommRing A] [IsDomain A] {M : Matrix n n A} : Nondegenerate M ↔ M.det ≠ 0 := by
rw [ne_eq, ← exists_vecMul_eq_zero_iff] push_neg constructor · intro hM v hv hMv obtain ⟨w, hwMv⟩ := hM.exists_not_ortho_of_ne_zero hv simp [dotProduct_mulVec, hMv, zero_dotProduct, ne_eq, not_true] at hwMv · intro h v hv refine not_imp_not.mp (h v) (funext fun i => ?_) simpa only [dotProduct...
[ " (∃ v, v ≠ 0 ∧ M *ᵥ v = 0) ↔ M.det = 0", " (∃ v, v ≠ 0 ∧ M *ᵥ v = 0) → M.det = 0", " M.det = 0", " v = 0", " M.det = 0 → ∃ v, v ≠ 0 ∧ M *ᵥ v = 0", " (∀ (v : n → K), v ≠ 0 → M *ᵥ v ≠ 0) → M.det ≠ 0", " M.det ≠ 0", " Function.Injective ⇑(toLin' M)", " M * toMatrix' ↑(LinearEquiv.ofInjectiveEndo (toLi...
[ " (∃ v, v ≠ 0 ∧ M *ᵥ v = 0) ↔ M.det = 0", " (∃ v, v ≠ 0 ∧ M *ᵥ v = 0) → M.det = 0", " M.det = 0", " v = 0", " M.det = 0 → ∃ v, v ≠ 0 ∧ M *ᵥ v = 0", " (∀ (v : n → K), v ≠ 0 → M *ᵥ v ≠ 0) → M.det ≠ 0", " M.det ≠ 0", " Function.Injective ⇑(toLin' M)", " M * toMatrix' ↑(LinearEquiv.ofInjectiveEndo (toLi...
import Mathlib.Algebra.GCDMonoid.Basic import Mathlib.Algebra.Order.Ring.Int import Mathlib.Data.Int.GCD instance : GCDMonoid ℕ where gcd := Nat.gcd lcm := Nat.lcm gcd_dvd_left := Nat.gcd_dvd_left gcd_dvd_right := Nat.gcd_dvd_right dvd_gcd := Nat.dvd_gcd gcd_mul_lcm a b := by rw [Nat.gcd_mul_lcm]; rfl ...
Mathlib/Algebra/GCDMonoid/Nat.lean
82
83
theorem abs_eq_normalize (z : ℤ) : |z| = normalize z := by
cases le_total 0 z <;> simp [-normalize_apply, normalize_of_nonneg, normalize_of_nonpos, *]
[ " Associated (a.gcd b * a.lcm b) (a * b)", " Associated (a * b) (a * b)", " (fun a => if 0 ≤ a then 1 else -1) (a * b) =\n (fun a => if 0 ≤ a then 1 else -1) a * (fun a => if 0 ≤ a then 1 else -1) b", " -1 < 0", " normalize z = z", " normalize z = -z", " normalize 0 = -0", " |z| = normalize z" ]
[ " Associated (a.gcd b * a.lcm b) (a * b)", " Associated (a * b) (a * b)", " (fun a => if 0 ≤ a then 1 else -1) (a * b) =\n (fun a => if 0 ≤ a then 1 else -1) a * (fun a => if 0 ≤ a then 1 else -1) b", " -1 < 0", " normalize z = z", " normalize z = -z", " normalize 0 = -0" ]
import Mathlib.Algebra.DirectSum.Internal import Mathlib.Algebra.GradedMonoid import Mathlib.Algebra.MvPolynomial.CommRing import Mathlib.Algebra.MvPolynomial.Equiv import Mathlib.Algebra.MvPolynomial.Variables import Mathlib.RingTheory.MvPolynomial.WeightedHomogeneous import Mathlib.Algebra.Polynomial.Roots #align_i...
Mathlib/RingTheory/MvPolynomial/Homogeneous.lean
116
119
theorem isHomogeneous_monomial {d : σ →₀ ℕ} (r : R) {n : ℕ} (hn : degree d = n) : IsHomogeneous (monomial d r) n := by
simp_rw [← weightedDegree_one] at hn exact isWeightedHomogeneous_monomial 1 d r hn
[ " (weightedDegree 1) d = degree d", " weightedTotalDegree 1 φ = φ.totalDegree", " (weightedDegree 1) c = n", " coeff c a ≠ 0 ∨ coeff c b ≠ 0", " coeff c a + coeff c b = 0", " coeff c a ≠ 0", " False", " r • coeff c a = 0", " r • 0 = 0", " homogeneousSubmodule σ R n = Finsupp.supported R R {d | deg...
[ " (weightedDegree 1) d = degree d", " weightedTotalDegree 1 φ = φ.totalDegree", " (weightedDegree 1) c = n", " coeff c a ≠ 0 ∨ coeff c b ≠ 0", " coeff c a + coeff c b = 0", " coeff c a ≠ 0", " False", " r • coeff c a = 0", " r • 0 = 0", " homogeneousSubmodule σ R n = Finsupp.supported R R {d | deg...
import Mathlib.LinearAlgebra.Matrix.Charpoly.Coeff import Mathlib.LinearAlgebra.Matrix.ToLin #align_import linear_algebra.matrix.charpoly.linear_map from "leanprover-community/mathlib"@"62c0a4ef1441edb463095ea02a06e87f3dfe135c" variable {ι : Type*} [Fintype ι] variable {M : Type*} [AddCommGroup M] (R : Type*) [Co...
Mathlib/LinearAlgebra/Matrix/Charpoly/LinearMap.lean
43
46
theorem PiToModule.fromMatrix_apply_single_one [DecidableEq ι] (A : Matrix ι ι R) (j : ι) : PiToModule.fromMatrix R b A (Pi.single j 1) = ∑ i : ι, A i j • b i := by
rw [PiToModule.fromMatrix_apply, Fintype.total_apply, Matrix.mulVec_single] simp_rw [mul_one]
[ " ((fromMatrix R b) A) (Pi.single j 1) = ∑ i : ι, A i j • b i", " ∑ i : ι, (fun i => A i j * 1) i • b i = ∑ i : ι, A i j • b i" ]
[]
import Mathlib.Topology.Order.ProjIcc import Mathlib.Topology.ContinuousFunction.Ordered import Mathlib.Topology.CompactOpen import Mathlib.Topology.UnitInterval #align_import topology.homotopy.basic from "leanprover-community/mathlib"@"11c53f174270aa43140c0b26dabce5fc4a253e80" noncomputable section universe u v ...
Mathlib/Topology/Homotopy/Basic.lean
166
169
theorem extend_apply_of_le_zero (F : Homotopy f₀ f₁) {t : ℝ} (ht : t ≤ 0) (x : X) : F.extend t x = f₀ x := by
rw [← F.apply_zero] exact ContinuousMap.congr_fun (Set.IccExtend_of_le_left (zero_le_one' ℝ) F.curry ht) x
[ " f = g", " { toFun := toFun✝, continuous_toFun := continuous_toFun✝, map_zero_left := map_zero_left✝,\n map_one_left := map_one_left✝ } =\n g", " { toFun := toFun✝¹, continuous_toFun := continuous_toFun✝¹, map_zero_left := map_zero_left✝¹,\n map_one_left := map_one_left✝¹ } =\n { toFun := toFun...
[ " f = g", " { toFun := toFun✝, continuous_toFun := continuous_toFun✝, map_zero_left := map_zero_left✝,\n map_one_left := map_one_left✝ } =\n g", " { toFun := toFun✝¹, continuous_toFun := continuous_toFun✝¹, map_zero_left := map_zero_left✝¹,\n map_one_left := map_one_left✝¹ } =\n { toFun := toFun...
import Mathlib.Data.List.Lattice import Mathlib.Data.List.Range import Mathlib.Data.Bool.Basic #align_import data.list.intervals from "leanprover-community/mathlib"@"7b78d1776212a91ecc94cf601f83bdcc46b04213" open Nat namespace List def Ico (n m : ℕ) : List ℕ := range' n (m - n) #align list.Ico List.Ico names...
Mathlib/Data/List/Intervals.lean
76
77
theorem map_add (n m k : ℕ) : (Ico n m).map (k + ·) = Ico (n + k) (m + k) := by
rw [Ico, Ico, map_add_range', Nat.add_sub_add_right m k, Nat.add_comm n k]
[ " Ico 0 n = range n", " (Ico n m).length = m - n", " (range' n (m - n)).length = m - n", " Pairwise (fun x x_1 => x < x_1) (Ico n m)", " Pairwise (fun x x_1 => x < x_1) (range' n (m - n))", " (Ico n m).Nodup", " (range' n (m - n)).Nodup", " l ∈ Ico n m ↔ n ≤ l ∧ l < m", " n ≤ l ∧ l < n + (m - n) ↔ n...
[ " Ico 0 n = range n", " (Ico n m).length = m - n", " (range' n (m - n)).length = m - n", " Pairwise (fun x x_1 => x < x_1) (Ico n m)", " Pairwise (fun x x_1 => x < x_1) (range' n (m - n))", " (Ico n m).Nodup", " (range' n (m - n)).Nodup", " l ∈ Ico n m ↔ n ≤ l ∧ l < m", " n ≤ l ∧ l < n + (m - n) ↔ n...
import Mathlib.Data.Matrix.Invertible import Mathlib.LinearAlgebra.Matrix.Adjugate import Mathlib.LinearAlgebra.FiniteDimensional #align_import linear_algebra.matrix.nonsingular_inverse from "leanprover-community/mathlib"@"722b3b152ddd5e0cf21c0a29787c76596cb6b422" namespace Matrix universe u u' v variable {l : ...
Mathlib/LinearAlgebra/Matrix/NonsingularInverse.lean
225
226
theorem nonsing_inv_apply (h : IsUnit A.det) : A⁻¹ = (↑h.unit⁻¹ : α) • A.adjugate := by
rw [inv_def, ← Ring.inverse_unit h.unit, IsUnit.unit_spec]
[ " IsUnit Aᵀ.det", " IsUnit A.det", " A⁻¹ = 0", " A⁻¹ = ↑h.unit⁻¹ • A.adjugate" ]
[ " IsUnit Aᵀ.det", " IsUnit A.det", " A⁻¹ = 0" ]
import Mathlib.Geometry.Manifold.MFDeriv.FDeriv noncomputable section open scoped Manifold open Bundle Set Topology section SpecificFunctions variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E] {H : Type*} [TopologicalSpace H] (I : ModelWithCorners 𝕜 E H)...
Mathlib/Geometry/Manifold/MFDeriv/SpecificFunctions.lean
164
164
theorem tangentMap_id : tangentMap I I (id : M → M) = id := by
ext1 ⟨x, v⟩; simp [tangentMap]
[ " HasMFDerivAt I I id x (ContinuousLinearMap.id 𝕜 (TangentSpace I x))", " HasFDerivWithinAt (writtenInExtChartAt I I x id) (ContinuousLinearMap.id 𝕜 (TangentSpace I x)) (range ↑I)\n (↑(extChartAt I x) x)", " ∀ᶠ (y : E) in 𝓝[range ↑I] ↑(extChartAt I x) x, (↑(extChartAt I x) ∘ ↑(extChartAt I x).symm) y = y"...
[ " HasMFDerivAt I I id x (ContinuousLinearMap.id 𝕜 (TangentSpace I x))", " HasFDerivWithinAt (writtenInExtChartAt I I x id) (ContinuousLinearMap.id 𝕜 (TangentSpace I x)) (range ↑I)\n (↑(extChartAt I x) x)", " ∀ᶠ (y : E) in 𝓝[range ↑I] ↑(extChartAt I x) x, (↑(extChartAt I x) ∘ ↑(extChartAt I x).symm) y = y"...
import Mathlib.Order.Filter.Partial import Mathlib.Topology.Basic #align_import topology.partial from "leanprover-community/mathlib"@"4c19a16e4b705bf135cf9a80ac18fcc99c438514" open Filter open Topology variable {X Y : Type*} [TopologicalSpace X] theorem rtendsto_nhds {r : Rel Y X} {l : Filter Y} {x : X} : ...
Mathlib/Topology/Partial.lean
57
58
theorem open_dom_of_pcontinuous {f : X →. Y} (h : PContinuous f) : IsOpen f.Dom := by
rw [← PFun.preimage_univ]; exact h _ isOpen_univ
[ " RTendsto' r l (𝓝 x) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " (∀ s ∈ 𝓝 x, r.preimage s ∈ l) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " ∀ (s t : Set X), s ⊆ t → r.preimage s ⊆ r.preimage t", " IsOpen f.Dom", " IsOpen (f.preimage Set.univ)" ]
[ " RTendsto' r l (𝓝 x) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " (∀ s ∈ 𝓝 x, r.preimage s ∈ l) ↔ ∀ (s : Set X), IsOpen s → x ∈ s → r.preimage s ∈ l", " ∀ (s t : Set X), s ⊆ t → r.preimage s ⊆ r.preimage t" ]
import Mathlib.Algebra.Polynomial.AlgebraMap import Mathlib.Algebra.Polynomial.BigOperators import Mathlib.Algebra.Polynomial.Degree.Lemmas import Mathlib.Algebra.Polynomial.Div #align_import data.polynomial.ring_division from "leanprover-community/mathlib"@"8efcf8022aac8e01df8d302dcebdbc25d6a886c8" noncomputable ...
Mathlib/Algebra/Polynomial/RingDivision.lean
183
186
theorem not_dvd_of_natDegree_lt {p q : R[X]} (h0 : q ≠ 0) (hl : q.natDegree < p.natDegree) : ¬p ∣ q := by
by_contra hcontra exact h0 (eq_zero_of_dvd_of_natDegree_lt hcontra hl)
[ " a✝ = 0 ∨ b✝ = 0", " a✝.leadingCoeff = 0 ∨ b✝.leadingCoeff = 0", " a✝.leadingCoeff * b✝.leadingCoeff = 0", " (p * q).natDegree = p.natDegree + q.natDegree", " (p * q).trailingDegree = p.trailingDegree + q.trailingDegree", " ↑(p.natTrailingDegree + q.natTrailingDegree) = ↑p.natTrailingDegree + ↑q.natTrail...
[ " a✝ = 0 ∨ b✝ = 0", " a✝.leadingCoeff = 0 ∨ b✝.leadingCoeff = 0", " a✝.leadingCoeff * b✝.leadingCoeff = 0", " (p * q).natDegree = p.natDegree + q.natDegree", " (p * q).trailingDegree = p.trailingDegree + q.trailingDegree", " ↑(p.natTrailingDegree + q.natTrailingDegree) = ↑p.natTrailingDegree + ↑q.natTrail...
import Mathlib.Data.Multiset.Dedup #align_import data.multiset.finset_ops from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" namespace Multiset open List variable {α : Type*} [DecidableEq α] {s : Multiset α} def ndinsert (a : α) (s : Multiset α) : Multiset α := Quot.liftOn s (...
Mathlib/Data/Multiset/FinsetOps.lean
74
75
theorem length_ndinsert_of_mem {a : α} {s : Multiset α} (h : a ∈ s) : card (ndinsert a s) = card s := by
simp [h]
[ " card (ndinsert a s) = card s" ]
[]
import Mathlib.Algebra.Group.Defs import Mathlib.Algebra.GroupWithZero.Defs import Mathlib.Data.Int.Cast.Defs import Mathlib.Tactic.Spread import Mathlib.Util.AssertExists #align_import algebra.ring.defs from "leanprover-community/mathlib"@"76de8ae01554c3b37d66544866659ff174e66e1f" universe u v w x variable {α : ...
Mathlib/Algebra/Ring/Defs.lean
94
95
theorem distrib_three_right [Mul R] [Add R] [RightDistribClass R] (a b c d : R) : (a + b + c) * d = a * d + b * d + c * d := by
simp [right_distrib]
[ " (a + b + c) * d = a * d + b * d + c * d" ]
[]
import Mathlib.RingTheory.Ideal.IsPrimary import Mathlib.RingTheory.Localization.AtPrime import Mathlib.Order.Minimal #align_import ring_theory.ideal.minimal_prime from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" section variable {R S : Type*} [CommSemiring R] [CommSemiring S] (I J ...
Mathlib/RingTheory/Ideal/MinimalPrime.lean
104
125
theorem Ideal.exists_comap_eq_of_mem_minimalPrimes_of_injective {f : R →+* S} (hf : Function.Injective f) (p) (H : p ∈ minimalPrimes R) : ∃ p' : Ideal S, p'.IsPrime ∧ p'.comap f = p := by
have := H.1.1 have : Nontrivial (Localization (Submonoid.map f p.primeCompl)) := by refine ⟨⟨1, 0, ?_⟩⟩ convert (IsLocalization.map_injective_of_injective p.primeCompl (Localization.AtPrime p) (Localization <| p.primeCompl.map f) hf).ne one_ne_zero · rw [map_one] · rw [map_zero] obtain ⟨M...
[ " {p | p.IsPrime ∧ ⊥ ≤ p} = setOf Ideal.IsPrime", " ∃ p ∈ I.minimalPrimes, p ≤ J", " ∃ m ∈ {p | IsPrime p ∧ I ≤ OrderDual.ofDual p}, OrderDual.toDual J ≤ m ∧ ∀ z ∈ {p | IsPrime p ∧ I ≤ p}, m ≤ z → z = m", " OrderDual.toDual J ∈ {p | IsPrime p ∧ I ≤ OrderDual.ofDual p}", " J.IsPrime", " ∀ c ⊆ {p | IsPrime ...
[ " {p | p.IsPrime ∧ ⊥ ≤ p} = setOf Ideal.IsPrime", " ∃ p ∈ I.minimalPrimes, p ≤ J", " ∃ m ∈ {p | IsPrime p ∧ I ≤ OrderDual.ofDual p}, OrderDual.toDual J ≤ m ∧ ∀ z ∈ {p | IsPrime p ∧ I ≤ p}, m ≤ z → z = m", " OrderDual.toDual J ∈ {p | IsPrime p ∧ I ≤ OrderDual.ofDual p}", " J.IsPrime", " ∀ c ⊆ {p | IsPrime ...
import Mathlib.MeasureTheory.Decomposition.SignedLebesgue import Mathlib.MeasureTheory.Measure.WithDensityVectorMeasure #align_import measure_theory.decomposition.radon_nikodym from "leanprover-community/mathlib"@"fc75855907eaa8ff39791039710f567f37d4556f" noncomputable section open scoped Classical MeasureTheory...
Mathlib/MeasureTheory/Decomposition/RadonNikodym.lean
56
66
theorem withDensity_rnDeriv_eq (μ ν : Measure α) [HaveLebesgueDecomposition μ ν] (h : μ ≪ ν) : ν.withDensity (rnDeriv μ ν) = μ := by
suffices μ.singularPart ν = 0 by conv_rhs => rw [haveLebesgueDecomposition_add μ ν, this, zero_add] suffices μ.singularPart ν Set.univ = 0 by simpa using this have h_sing := mutuallySingular_singularPart μ ν rw [← measure_add_measure_compl h_sing.measurableSet_nullSet] simp only [MutuallySingular.measure...
[ " ν.withDensity (μ.rnDeriv ν) = μ", "α : Type u_1\nβ : Type u_2\nm : MeasurableSpace α\nμ ν : Measure α\ninst✝ : μ.HaveLebesgueDecomposition ν\nh : μ ≪ ν\nthis : μ.singularPart ν = 0\n| μ", " μ.singularPart ν = 0", " (μ.singularPart ν) Set.univ = 0", " (μ.singularPart ν) h_sing.nullSet + (μ.singularPart ν) ...
[]
import Mathlib.Data.Complex.Module import Mathlib.Data.Complex.Order import Mathlib.Data.Complex.Exponential import Mathlib.Analysis.RCLike.Basic import Mathlib.Topology.Algebra.InfiniteSum.Module import Mathlib.Topology.Instances.RealVectorSpace #align_import analysis.complex.basic from "leanprover-community/mathlib...
Mathlib/Analysis/Complex/Basic.lean
121
122
theorem edist_of_re_eq {z w : ℂ} (h : z.re = w.re) : edist z w = edist z.im w.im := by
rw [edist_nndist, edist_nndist, nndist_of_re_eq h]
[ " ‖cexp (↑t * I)‖ = 1", " r₁ < ‖↑x‖ ∧ ‖↑x‖ < r₂", " ‖r • x‖ ≤ ‖r‖ * ‖x‖", " dist z w = √((z.re - w.re) ^ 2 + (z.im - w.im) ^ 2)", " dist z w = √((z.re - w.re) * (z.re - w.re) + (z.im - w.im) * (z.im - w.im))", " dist z w = dist z.im w.im", " edist z w = edist z.im w.im" ]
[ " ‖cexp (↑t * I)‖ = 1", " r₁ < ‖↑x‖ ∧ ‖↑x‖ < r₂", " ‖r • x‖ ≤ ‖r‖ * ‖x‖", " dist z w = √((z.re - w.re) ^ 2 + (z.im - w.im) ^ 2)", " dist z w = √((z.re - w.re) * (z.re - w.re) + (z.im - w.im) * (z.im - w.im))", " dist z w = dist z.im w.im" ]
import Mathlib.Topology.MetricSpace.Basic #align_import topology.metric_space.infsep from "leanprover-community/mathlib"@"5316314b553dcf8c6716541851517c1a9715e22b" variable {α β : Type*} namespace Set section Einfsep open ENNReal open Function noncomputable def einfsep [EDist α] (s : Set α) : ℝ≥0∞ := ⨅ (x...
Mathlib/Topology/MetricSpace/Infsep.lean
69
71
theorem einfsep_lt_top : s.einfsep < ∞ ↔ ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < ∞ := by
simp_rw [einfsep, iInf_lt_iff, exists_prop]
[ " d ≤ s.einfsep ↔ ∀ x ∈ s, ∀ y ∈ s, x ≠ y → d ≤ edist x y", " s.einfsep = 0 ↔ ∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C", " 0 < s.einfsep ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " (¬∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C) ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " s...
[ " d ≤ s.einfsep ↔ ∀ x ∈ s, ∀ y ∈ s, x ≠ y → d ≤ edist x y", " s.einfsep = 0 ↔ ∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C", " 0 < s.einfsep ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " (¬∀ C > 0, ∃ x ∈ s, ∃ y ∈ s, x ≠ y ∧ edist x y < C) ↔ ∃ C > 0, ∀ x ∈ s, ∀ y ∈ s, x ≠ y → C ≤ edist x y", " s...
import Mathlib.Algebra.Group.Units.Equiv import Mathlib.CategoryTheory.Endomorphism #align_import category_theory.conj from "leanprover-community/mathlib"@"32253a1a1071173b33dc7d6a218cf722c6feb514" universe v u namespace CategoryTheory namespace Iso variable {C : Type u} [Category.{v} C] def homCongr {X Y X₁...
Mathlib/CategoryTheory/Conj.lean
60
60
theorem homCongr_refl {X Y : C} (f : X ⟶ Y) : (Iso.refl X).homCongr (Iso.refl Y) f = f := by
simp
[ " α.hom ≫ (α.inv ≫ f ≫ β.hom) ≫ β.inv = f", " α.inv ≫ (α.hom ≫ f ≫ β.inv) ≫ β.hom = f", " (α.homCongr β) f = α.inv ≫ f ≫ β.hom", " (α.homCongr γ) (f ≫ g) = (α.homCongr β) f ≫ (β.homCongr γ) g", " ((refl X).homCongr (refl Y)) f = f" ]
[ " α.hom ≫ (α.inv ≫ f ≫ β.hom) ≫ β.inv = f", " α.inv ≫ (α.hom ≫ f ≫ β.inv) ≫ β.hom = f", " (α.homCongr β) f = α.inv ≫ f ≫ β.hom", " (α.homCongr γ) (f ≫ g) = (α.homCongr β) f ≫ (β.homCongr γ) g" ]
import Mathlib.Algebra.Order.Monoid.Unbundled.Pow import Mathlib.Data.Finset.Fold import Mathlib.Data.Finset.Option import Mathlib.Data.Finset.Pi import Mathlib.Data.Finset.Prod import Mathlib.Data.Multiset.Lattice import Mathlib.Data.Set.Lattice import Mathlib.Order.Hom.Lattice import Mathlib.Order.Nat #align_import...
Mathlib/Data/Finset/Lattice.lean
140
143
theorem sup_bot (s : Finset β) : (s.sup fun _ => ⊥) = (⊥ : α) := by
obtain rfl | hs := s.eq_empty_or_nonempty · exact sup_empty · exact sup_const hs _
[ " s.sup (f ⊔ g) = s.sup f ⊔ s.sup g", " ∅.sup (f ⊔ g) = ∅.sup f ⊔ ∅.sup g", " (cons a✝ s✝ h✝).sup (f ⊔ g) = (cons a✝ s✝ h✝).sup f ⊔ (cons a✝ s✝ h✝).sup g", " (f ⊔ g) a✝ ⊔ (s✝.sup f ⊔ s✝.sup g) = f a✝ ⊔ s✝.sup f ⊔ (g a✝ ⊔ s✝.sup g)", " s₁.sup f = s₂.sup g", " s₁.sup f = s₁.sup g", " f ((cons i s x✝).sup ...
[ " s.sup (f ⊔ g) = s.sup f ⊔ s.sup g", " ∅.sup (f ⊔ g) = ∅.sup f ⊔ ∅.sup g", " (cons a✝ s✝ h✝).sup (f ⊔ g) = (cons a✝ s✝ h✝).sup f ⊔ (cons a✝ s✝ h✝).sup g", " (f ⊔ g) a✝ ⊔ (s✝.sup f ⊔ s✝.sup g) = f a✝ ⊔ s✝.sup f ⊔ (g a✝ ⊔ s✝.sup g)", " s₁.sup f = s₂.sup g", " s₁.sup f = s₁.sup g", " f ((cons i s x✝).sup ...
import Mathlib.Algebra.BigOperators.Group.Finset import Mathlib.Algebra.Group.Submonoid.Basic import Mathlib.Deprecated.Group #align_import deprecated.submonoid from "leanprover-community/mathlib"@"509de852e1de55e1efa8eacfa11df0823f26f226" variable {M : Type*} [Monoid M] {s : Set M} variable {A : Type*} [AddMonoi...
Mathlib/Deprecated/Submonoid.lean
246
250
theorem multiset_prod_mem {M} [CommMonoid M] {s : Set M} (hs : IsSubmonoid s) (m : Multiset M) : (∀ a ∈ m, a ∈ s) → m.prod ∈ s := by
refine Quotient.inductionOn m fun l hl => ?_ rw [Multiset.quot_mk_to_coe, Multiset.prod_coe] exact list_prod_mem hs hl
[ " a ∈ s ∧ ∀ x ∈ l, x ∈ s", " (a :: l).prod ∈ s", " (∀ a ∈ m, a ∈ s) → m.prod ∈ s", " Multiset.prod ⟦l⟧ ∈ s", " l.prod ∈ s" ]
[ " a ∈ s ∧ ∀ x ∈ l, x ∈ s", " (a :: l).prod ∈ s" ]
import Mathlib.Data.List.Basic namespace List variable {α β : Type*} #align list.length_enum_from List.enumFrom_length #align list.length_enum List.enum_length @[simp] theorem get?_enumFrom : ∀ n (l : List α) m, get? (enumFrom n l) m = (get? l m).map fun a => (n + m, a) | n, [], m => rfl | n, a :: l, 0 =...
Mathlib/Data/List/Enum.lean
132
133
theorem enum_append (xs ys : List α) : enum (xs ++ ys) = enum xs ++ enumFrom xs.length ys := by
simp [enum, enumFrom_append]
[ " Option.map (fun a => (n + 1 + m, a)) (l.get? m) = Option.map (fun a => (n + (m + 1), a)) ((a :: l).get? (m + 1))", " Option.map (fun a => (n + m + 1, a)) (l.get? m) = Option.map (fun a => (n + (m + 1), a)) ((a :: l).get? (m + 1))", " l.enum.get? n = Option.map (fun a => (n, a)) (l.get? n)", " (enumFrom n l)...
[ " Option.map (fun a => (n + 1 + m, a)) (l.get? m) = Option.map (fun a => (n + (m + 1), a)) ((a :: l).get? (m + 1))", " Option.map (fun a => (n + m + 1, a)) (l.get? m) = Option.map (fun a => (n + (m + 1), a)) ((a :: l).get? (m + 1))", " l.enum.get? n = Option.map (fun a => (n, a)) (l.get? n)", " (enumFrom n l)...
import Mathlib.AlgebraicTopology.DoldKan.PInfty #align_import algebraic_topology.dold_kan.decomposition from "leanprover-community/mathlib"@"32a7e535287f9c73f2e4d2aef306a39190f0b504" open CategoryTheory CategoryTheory.Category CategoryTheory.Preadditive Opposite Simplicial noncomputable section namespace Alge...
Mathlib/AlgebraicTopology/DoldKan/Decomposition.lean
52
81
theorem decomposition_Q (n q : ℕ) : ((Q q).f (n + 1) : X _[n + 1] ⟶ X _[n + 1]) = ∑ i ∈ Finset.filter (fun i : Fin (n + 1) => (i : ℕ) < q) Finset.univ, (P i).f (n + 1) ≫ X.δ i.rev.succ ≫ X.σ (Fin.rev i) := by
induction' q with q hq · simp only [Nat.zero_eq, Q_zero, HomologicalComplex.zero_f_apply, Nat.not_lt_zero, Finset.filter_False, Finset.sum_empty] · by_cases hqn : q + 1 ≤ n + 1 swap · rw [Q_is_eventually_constant (show n + 1 ≤ q by omega), hq] congr 1 ext ⟨x, hx⟩ simp only [Nat.su...
[ " (Q q).f (n + 1) = ∑ i ∈ Finset.filter (fun i => ↑i < q) Finset.univ, (P ↑i).f (n + 1) ≫ X.δ i.rev.succ ≫ X.σ i.rev", " (Q 0).f (n + 1) = ∑ i ∈ Finset.filter (fun i => ↑i < 0) Finset.univ, (P ↑i).f (n + 1) ≫ X.δ i.rev.succ ≫ X.σ i.rev", " (Q (q + 1)).f (n + 1) =\n ∑ i ∈ Finset.filter (fun i => ↑i < q + 1) F...
[]
import Mathlib.Algebra.GroupWithZero.NonZeroDivisors import Mathlib.Algebra.Polynomial.Lifts import Mathlib.GroupTheory.MonoidLocalization import Mathlib.RingTheory.Algebraic import Mathlib.RingTheory.Ideal.LocalRing import Mathlib.RingTheory.IntegralClosure import Mathlib.RingTheory.Localization.FractionRing import M...
Mathlib/RingTheory/Localization/Integral.lean
112
115
theorem integerNormalization_aeval_eq_zero [Algebra R R'] [Algebra S R'] [IsScalarTower R S R'] (p : S[X]) {x : R'} (hx : aeval x p = 0) : aeval x (integerNormalization M p) = 0 := by
rw [aeval_def, IsScalarTower.algebraMap_eq R S R', integerNormalization_eval₂_eq_zero _ (algebraMap _ _) _ hx]
[ " coeffIntegerNormalization M p i = 0", " i ∈ p.support", " ¬coeffIntegerNormalization M p i ≠ 0", " (integerNormalization M p).coeff i = coeffIntegerNormalization M p i", " ∃ b, ∀ (i : ℕ), (algebraMap R S) ((integerNormalization M p).coeff i) = ↑b • p.coeff i", " ∀ (i : ℕ), (algebraMap R S) ((integerNorm...
[ " coeffIntegerNormalization M p i = 0", " i ∈ p.support", " ¬coeffIntegerNormalization M p i ≠ 0", " (integerNormalization M p).coeff i = coeffIntegerNormalization M p i", " ∃ b, ∀ (i : ℕ), (algebraMap R S) ((integerNormalization M p).coeff i) = ↑b • p.coeff i", " ∀ (i : ℕ), (algebraMap R S) ((integerNorm...
import Mathlib.Algebra.GCDMonoid.Basic import Mathlib.Data.Multiset.FinsetOps import Mathlib.Data.Multiset.Fold #align_import algebra.gcd_monoid.multiset from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e" namespace Multiset variable {α : Type*} [CancelCommMonoidWithZero α] [NormalizedG...
Mathlib/Algebra/GCDMonoid/Multiset.lean
110
112
theorem lcm_union (s₁ s₂ : Multiset α) : (s₁ ∪ s₂).lcm = GCDMonoid.lcm s₁.lcm s₂.lcm := by
rw [← lcm_dedup, dedup_ext.2, lcm_dedup, lcm_add] simp
[ " (s₁ + s₂).lcm = fold GCDMonoid.lcm (GCDMonoid.lcm 1 1) (s₁ + s₂)", " lcm 0 ∣ a ↔ ∀ b ∈ 0, b ∣ a", " ∀ (a_1 : α) (s : Multiset α), (s.lcm ∣ a ↔ ∀ b ∈ s, b ∣ a) → ((a_1 ::ₘ s).lcm ∣ a ↔ ∀ b ∈ a_1 ::ₘ s, b ∣ a)", " normalize (lcm 0) = lcm 0", " normalize (a ::ₘ s).lcm = (a ::ₘ s).lcm", " s.lcm = 0 ↔ 0 ∈ s"...
[ " (s₁ + s₂).lcm = fold GCDMonoid.lcm (GCDMonoid.lcm 1 1) (s₁ + s₂)", " lcm 0 ∣ a ↔ ∀ b ∈ 0, b ∣ a", " ∀ (a_1 : α) (s : Multiset α), (s.lcm ∣ a ↔ ∀ b ∈ s, b ∣ a) → ((a_1 ::ₘ s).lcm ∣ a ↔ ∀ b ∈ a_1 ::ₘ s, b ∣ a)", " normalize (lcm 0) = lcm 0", " normalize (a ::ₘ s).lcm = (a ::ₘ s).lcm", " s.lcm = 0 ↔ 0 ∈ s"...
import Mathlib.Topology.Sets.Opens #align_import topology.local_at_target from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open TopologicalSpace Set Filter open Topology Filter variable {α β : Type*} [TopologicalSpace α] [TopologicalSpace β] {f : α → β} variable {s : Set β} {ι : Ty...
Mathlib/Topology/LocalAtTarget.lean
101
108
theorem isOpen_iff_coe_preimage_of_iSup_eq_top (s : Set β) : IsOpen s ↔ ∀ i, IsOpen ((↑) ⁻¹' s : Set (U i)) := by
-- Porting note: rewrote to avoid ´simp´ issues rw [isOpen_iff_inter_of_iSup_eq_top hU s] refine forall_congr' fun i => ?_ rw [(U _).2.openEmbedding_subtype_val.open_iff_image_open] erw [Set.image_preimage_eq_inter_range] rw [Subtype.range_coe, Opens.carrier_eq_coe]
[ " Inducing (s.restrictPreimage f)", " ∀ (x : ↑(f ⁻¹' s)), 𝓝 x = comap Subtype.val (comap f (𝓝 (f ↑x)))", " 𝓝 a = comap Subtype.val (comap f (𝓝 (f ↑a)))", " IsClosedMap (s.restrictPreimage f)", " IsClosed t → IsClosed (s.restrictPreimage f '' t)", " ∀ (u : Set α), IsClosed u → Subtype.val ⁻¹' u = t → ∃...
[ " Inducing (s.restrictPreimage f)", " ∀ (x : ↑(f ⁻¹' s)), 𝓝 x = comap Subtype.val (comap f (𝓝 (f ↑x)))", " 𝓝 a = comap Subtype.val (comap f (𝓝 (f ↑a)))", " IsClosedMap (s.restrictPreimage f)", " IsClosed t → IsClosed (s.restrictPreimage f '' t)", " ∀ (u : Set α), IsClosed u → Subtype.val ⁻¹' u = t → ∃...
import Mathlib.Logic.Function.Basic import Mathlib.Logic.Relator import Mathlib.Init.Data.Quot import Mathlib.Tactic.Cases import Mathlib.Tactic.Use import Mathlib.Tactic.MkIffOfInductiveProp import Mathlib.Tactic.SimpRw #align_import logic.relation from "leanprover-community/mathlib"@"3365b20c2ffa7c35e47e5209b89ba9a...
Mathlib/Logic/Relation.lean
336
342
theorem trans_induction_on {P : ∀ {a b : α}, ReflTransGen r a b → Prop} {a b : α} (h : ReflTransGen r a b) (ih₁ : ∀ a, @P a a refl) (ih₂ : ∀ {a b} (h : r a b), P (single h)) (ih₃ : ∀ {a b c} (h₁ : ReflTransGen r a b) (h₂ : ReflTransGen r b c), P h₁ → P h₂ → P (h₁.trans h₂)) : P h := by
induction h with | refl => exact ih₁ a | tail hab hbc ih => exact ih₃ hab (single hbc) ih (ih₂ hbc)
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a c✝", " Symmetric (ReflTransGen r)", " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x", " P a h", " P a ⋯", " P b ⋯", " ∀ {a c_1 : α} (h' : r a c_1) (h : ReflTransGen r c_1 b), P c_1 ⋯ → P a ⋯", " P h", " P ⋯" ...
[ " ReflTransGen r a c", " ReflTransGen r a b", " ReflTransGen r a c✝", " Symmetric (ReflTransGen r)", " ReflTransGen r y x", " ReflTransGen r x x", " ReflTransGen r w x", " P a h", " P a ⋯", " P b ⋯", " ∀ {a c_1 : α} (h' : r a c_1) (h : ReflTransGen r c_1 b), P c_1 ⋯ → P a ⋯" ]
import Mathlib.AlgebraicGeometry.Restrict import Mathlib.CategoryTheory.Adjunction.Limits import Mathlib.CategoryTheory.Adjunction.Reflective #align_import algebraic_geometry.Gamma_Spec_adjunction from "leanprover-community/mathlib"@"d39590fc8728fbf6743249802486f8c91ffe07bc" -- Explicit universe annotations were u...
Mathlib/AlgebraicGeometry/GammaSpecAdjunction.lean
146
160
theorem toΓSpecCApp_iff (f : (structureSheaf <| Γ.obj <| op X).val.obj (op <| basicOpen r) ⟶ X.presheaf.obj (op <| X.toΓSpecMapBasicOpen r)) : toOpen _ (basicOpen r) ≫ f = X.toToΓSpecMapBasicOpen r ↔ f = X.toΓSpecCApp r := by
-- Porting Note: Type class problem got stuck in `IsLocalization.Away.AwayMap.lift_comp` -- created instance manually. This replaces the `pick_goal` tactics have loc_inst := IsLocalization.to_basicOpen (Γ.obj (op X)) r rw [← @IsLocalization.Away.AwayMap.lift_comp _ _ _ _ _ _ _ r loc_inst _ (X.isUnit_res_...
[ " r ∉ (X.toΓSpecFun x).asIdeal ↔ IsUnit ((X.ΓToStalk x) r)", " X.toΓSpecFun ⁻¹' (basicOpen r).carrier = (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ x✝ ∈ (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ IsUnit ((X.toRingedSpace....
[ " r ∉ (X.toΓSpecFun x).asIdeal ↔ IsUnit ((X.ΓToStalk x) r)", " X.toΓSpecFun ⁻¹' (basicOpen r).carrier = (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ x✝ ∈ (X.toRingedSpace.basicOpen r).carrier", " x✝ ∈ X.toΓSpecFun ⁻¹' (basicOpen r).carrier ↔ IsUnit ((X.toRingedSpace....
import Mathlib.Data.Set.Lattice import Mathlib.Data.Set.Pairwise.Basic #align_import data.set.pairwise.lattice from "leanprover-community/mathlib"@"c4c2ed622f43768eff32608d4a0f8a6cec1c047d" open Function Set Order variable {α β γ ι ι' : Type*} {κ : Sort*} {r p q : α → α → Prop} section Pairwise variable {f g : ...
Mathlib/Data/Set/Pairwise/Lattice.lean
72
84
theorem PairwiseDisjoint.biUnion {s : Set ι'} {g : ι' → Set ι} {f : ι → α} (hs : s.PairwiseDisjoint fun i' : ι' => ⨆ i ∈ g i', f i) (hg : ∀ i ∈ s, (g i).PairwiseDisjoint f) : (⋃ i ∈ s, g i).PairwiseDisjoint f := by
rintro a ha b hb hab simp_rw [Set.mem_iUnion] at ha hb obtain ⟨c, hc, ha⟩ := ha obtain ⟨d, hd, hb⟩ := hb obtain hcd | hcd := eq_or_ne (g c) (g d) · exact hg d hd (hcd.subst ha) hb hab -- Porting note: the elaborator couldn't figure out `f` here. · exact (hs hc hd <| ne_of_apply_ne _ hcd).mono (le...
[ " (⋃ i ∈ s, g i).PairwiseDisjoint f", " (Disjoint on f) a b" ]
[]
import Mathlib.Data.Finset.Card #align_import data.finset.option from "leanprover-community/mathlib"@"c227d107bbada5d0d9d20287e3282c0a7f1651a0" variable {α β : Type*} open Function namespace Finset def insertNone : Finset α ↪o Finset (Option α) := (OrderEmbedding.ofMapLEIff fun s => cons none (s.map Embeddi...
Mathlib/Data/Finset/Option.lean
78
78
theorem some_mem_insertNone {s : Finset α} {a : α} : some a ∈ insertNone s ↔ a ∈ s := by
simp
[ " none ∉ map Embedding.some s", " cons none (map Embedding.some s) ⋯ ≤ cons none (map Embedding.some t) ⋯ ↔ s ≤ t", " a ∈ s", " some a = none ∨ some a ∈ (map Embedding.some s).val ↔ ∀ a_1 ∈ some a, a_1 ∈ s", " (∀ a ∈ insertNone s, p a) ↔ p none ∧ ∀ a ∈ s, p (some a)", " some a ∈ insertNone s ↔ a ∈ s" ]
[ " none ∉ map Embedding.some s", " cons none (map Embedding.some s) ⋯ ≤ cons none (map Embedding.some t) ⋯ ↔ s ≤ t", " a ∈ s", " some a = none ∨ some a ∈ (map Embedding.some s).val ↔ ∀ a_1 ∈ some a, a_1 ∈ s", " (∀ a ∈ insertNone s, p a) ↔ p none ∧ ∀ a ∈ s, p (some a)" ]
import Mathlib.Algebra.ContinuedFractions.Computation.Basic import Mathlib.Algebra.ContinuedFractions.Translations #align_import algebra.continued_fractions.computation.translations from "leanprover-community/mathlib"@"a7e36e48519ab281320c4d192da6a7b348ce40ad" namespace GeneralizedContinuedFraction open Generali...
Mathlib/Algebra/ContinuedFractions/Computation/Translations.lean
77
81
theorem succ_nth_stream_eq_none_iff : IntFractPair.stream v (n + 1) = none ↔ IntFractPair.stream v n = none ∨ ∃ ifp, IntFractPair.stream v n = some ifp ∧ ifp.fr = 0 := by
rw [IntFractPair.stream] cases IntFractPair.stream v n <;> simp [imp_false]
[ " IntFractPair.stream v (n + 1) = none", " IntFractPair.stream v (n + 1) = none ↔\n IntFractPair.stream v n = none ∨ ∃ ifp, IntFractPair.stream v n = some ifp ∧ ifp.fr = 0", " ((IntFractPair.stream v n).bind fun ap_n => if ap_n.fr = 0 then none else some (IntFractPair.of ap_n.fr⁻¹)) = none ↔\n IntFractPai...
[ " IntFractPair.stream v (n + 1) = none" ]
import Mathlib.Algebra.MvPolynomial.Degrees #align_import data.mv_polynomial.variables from "leanprover-community/mathlib"@"2f5b500a507264de86d666a5f87ddb976e2d8de4" noncomputable section open Set Function Finsupp AddMonoidAlgebra universe u v w variable {R : Type u} {S : Type v} namespace MvPolynomial varia...
Mathlib/Algebra/MvPolynomial/Variables.lean
248
274
theorem eval₂Hom_eq_constantCoeff_of_vars (f : R →+* S) {g : σ → S} {p : MvPolynomial σ R} (hp : ∀ i ∈ p.vars, g i = 0) : eval₂Hom f g p = f (constantCoeff p) := by
conv_lhs => rw [p.as_sum] simp only [map_sum, eval₂Hom_monomial] by_cases h0 : constantCoeff p = 0 on_goal 1 => rw [h0, f.map_zero, Finset.sum_eq_zero] intro d hd on_goal 2 => rw [Finset.sum_eq_single (0 : σ →₀ ℕ)] · rw [Finsupp.prod_zero_index, mul_one] rfl on_goal 1 => intro d hd ...
[ " p.vars = p.degrees.toFinset", " p.degrees.toFinset = p.degrees.toFinset", " vars 0 = ∅", " ((monomial s) r).vars = s.support", " (C r).vars = ∅", " (X n).vars = {n}", " i ∈ p.vars ↔ ∃ d ∈ p.support, i ∈ d.support", " x v = 0", " v ∈ f.vars", " (p + q).vars ⊆ p.vars ∪ q.vars", " x ∈ p.vars ∪ q....
[ " p.vars = p.degrees.toFinset", " p.degrees.toFinset = p.degrees.toFinset", " vars 0 = ∅", " ((monomial s) r).vars = s.support", " (C r).vars = ∅", " (X n).vars = {n}", " i ∈ p.vars ↔ ∃ d ∈ p.support, i ∈ d.support", " x v = 0", " v ∈ f.vars", " (p + q).vars ⊆ p.vars ∪ q.vars", " x ∈ p.vars ∪ q....
import Mathlib.MeasureTheory.Function.ConditionalExpectation.CondexpL1 #align_import measure_theory.function.conditional_expectation.basic from "leanprover-community/mathlib"@"d8bbb04e2d2a44596798a9207ceefc0fb236e41e" open TopologicalSpace MeasureTheory.Lp Filter open scoped ENNReal Topology MeasureTheory names...
Mathlib/MeasureTheory/Function/ConditionalExpectation/Basic.lean
113
123
theorem condexp_of_sigmaFinite (hm : m ≤ m0) [hμm : SigmaFinite (μ.trim hm)] : μ[f|m] = if Integrable f μ then if StronglyMeasurable[m] f then f else aestronglyMeasurable'_condexpL1.mk (condexpL1 hm μ f) else 0 := by
rw [condexp, dif_pos hm] simp only [hμm, Ne, true_and_iff] by_cases hf : Integrable f μ · rw [dif_pos hf, if_pos hf] · rw [dif_neg hf, if_neg hf]
[ " μ[f|m] = 0", " ¬(SigmaFinite (μ.trim hm) ∧ Integrable f μ)", " SigmaFinite (μ.trim hm) → ¬Integrable f μ", " μ[f|m] =\n if Integrable f μ then if StronglyMeasurable f then f else AEStronglyMeasurable'.mk ↑↑(condexpL1 hm μ f) ⋯ else 0", " (if h : SigmaFinite (μ.trim hm) ∧ Integrable f μ then\n if S...
[ " μ[f|m] = 0", " ¬(SigmaFinite (μ.trim hm) ∧ Integrable f μ)", " SigmaFinite (μ.trim hm) → ¬Integrable f μ" ]
import Mathlib.Analysis.Convex.Cone.Basic import Mathlib.Analysis.InnerProductSpace.Projection #align_import analysis.convex.cone.dual from "leanprover-community/mathlib"@"915591b2bb3ea303648db07284a161a7f2a9e3d4" open Set LinearMap open scoped Classical open Pointwise variable {𝕜 E F G : Type*} section Dua...
Mathlib/Analysis/Convex/Cone/InnerDual.lean
130
140
theorem isClosed_innerDualCone : IsClosed (s.innerDualCone : Set H) := by
-- reduce the problem to showing that dual cone of a singleton `{x}` is closed rw [innerDualCone_eq_iInter_innerDualCone_singleton] apply isClosed_iInter intro x -- the dual cone of a singleton `{x}` is the preimage of `[0, ∞)` under `inner x` have h : ({↑x} : Set H).innerDualCone = (inner x : H → ℝ) ⁻¹' S...
[ " 0 ≤ ⟪x, c • y⟫_ℝ", " 0 ≤ c * ⟪x, y⟫_ℝ", " 0 ≤ ⟪x, u + v⟫_ℝ", " 0 ≤ ⟪x, u⟫_ℝ + ⟪x, v⟫_ℝ", " univ.innerDualCone = 0", " ↑univ.innerDualCone = ↑0", " ∀ x ∈ univ.innerDualCone, x = 0", " x = 0", " 0 ≤ ⟪x, 0⟫_ℝ", " (insert x s).innerDualCone = {x}.innerDualCone ⊓ s.innerDualCone", " (⋃ i, f i).inne...
[ " 0 ≤ ⟪x, c • y⟫_ℝ", " 0 ≤ c * ⟪x, y⟫_ℝ", " 0 ≤ ⟪x, u + v⟫_ℝ", " 0 ≤ ⟪x, u⟫_ℝ + ⟪x, v⟫_ℝ", " univ.innerDualCone = 0", " ↑univ.innerDualCone = ↑0", " ∀ x ∈ univ.innerDualCone, x = 0", " x = 0", " 0 ≤ ⟪x, 0⟫_ℝ", " (insert x s).innerDualCone = {x}.innerDualCone ⊓ s.innerDualCone", " (⋃ i, f i).inne...
import Mathlib.LinearAlgebra.Basis.VectorSpace import Mathlib.LinearAlgebra.Dimension.Finite import Mathlib.SetTheory.Cardinal.Subfield import Mathlib.LinearAlgebra.Dimension.RankNullity #align_import linear_algebra.dimension from "leanprover-community/mathlib"@"47a5f8186becdbc826190ced4312f8199f9db6a5" noncomput...
Mathlib/LinearAlgebra/Dimension/DivisionRing.lean
196
198
theorem linearIndependent_iff_card_le_finrank_span {ι : Type*} [Fintype ι] {b : ι → V} : LinearIndependent K b ↔ Fintype.card ι ≤ (Set.range b).finrank K := by
rw [linearIndependent_iff_card_eq_finrank_span, (finrank_range_le_card _).le_iff_eq]
[ " g i = 0", " False", " (b '' (Set.univ \\ {i})).toFinset.card < finrank K V", " (b '' (Set.univ \\ {i})).toFinset.card = (Finset.image b (Set.univ \\ {i}).toFinset).card", " ∀ (a : ι), a ∈ (Set.univ \\ {i}).toFinset ↔ a ∈ Finset.univ.erase i", " ⊤ ≤ span K (b '' (Set.univ \\ {i}))", " range b ⊆ ↑(span ...
[ " g i = 0", " False", " (b '' (Set.univ \\ {i})).toFinset.card < finrank K V", " (b '' (Set.univ \\ {i})).toFinset.card = (Finset.image b (Set.univ \\ {i}).toFinset).card", " ∀ (a : ι), a ∈ (Set.univ \\ {i}).toFinset ↔ a ∈ Finset.univ.erase i", " ⊤ ≤ span K (b '' (Set.univ \\ {i}))", " range b ⊆ ↑(span ...
import Mathlib.Algebra.BigOperators.Group.Multiset import Mathlib.Data.Multiset.Dedup #align_import data.multiset.bind from "leanprover-community/mathlib"@"f694c7dead66f5d4c80f446c796a5aad14707f0e" assert_not_exists MonoidWithZero assert_not_exists MulAction universe v variable {α : Type*} {β : Type v} {γ δ : Ty...
Mathlib/Data/Multiset/Bind.lean
170
174
theorem bind_hcongr {β' : Type v} {m : Multiset α} {f : α → Multiset β} {f' : α → Multiset β'} (h : β = β') (hf : ∀ a ∈ m, HEq (f a) (f' a)) : HEq (bind m f) (bind m f') := by
subst h simp only [heq_eq_eq] at hf simp [bind_congr hf]
[ " (↑(List.map ofList (l :: L))).join = ↑(l :: L).join", " a ∈ join 0 ↔ ∃ s ∈ 0, a ∈ s", " ∀ (a_1 : Multiset α) (s : Multiset (Multiset α)),\n (a ∈ s.join ↔ ∃ s_1 ∈ s, a ∈ s_1) → (a ∈ (a_1 ::ₘ s).join ↔ ∃ s_1 ∈ a_1 ::ₘ s, a ∈ s_1)", " card (join 0) = (map (⇑card) 0).sum", " ∀ (a : Multiset α) (s : Multise...
[ " (↑(List.map ofList (l :: L))).join = ↑(l :: L).join", " a ∈ join 0 ↔ ∃ s ∈ 0, a ∈ s", " ∀ (a_1 : Multiset α) (s : Multiset (Multiset α)),\n (a ∈ s.join ↔ ∃ s_1 ∈ s, a ∈ s_1) → (a ∈ (a_1 ::ₘ s).join ↔ ∃ s_1 ∈ a_1 ::ₘ s, a ∈ s_1)", " card (join 0) = (map (⇑card) 0).sum", " ∀ (a : Multiset α) (s : Multise...
import Mathlib.CategoryTheory.Category.Grpd import Mathlib.CategoryTheory.Groupoid import Mathlib.Topology.Category.TopCat.Basic import Mathlib.Topology.Homotopy.Path import Mathlib.Data.Set.Subsingleton #align_import algebraic_topology.fundamental_groupoid.basic from "leanprover-community/mathlib"@"3d7987cda72abc473...
Mathlib/AlgebraicTopology/FundamentalGroupoid/Basic.lean
214
253
theorem trans_assoc_reparam {x₀ x₁ x₂ x₃ : X} (p : Path x₀ x₁) (q : Path x₁ x₂) (r : Path x₂ x₃) : (p.trans q).trans r = (p.trans (q.trans r)).reparam (fun t => ⟨transAssocReparamAux t, transAssocReparamAux_mem_I t⟩) (by continuity) (Subtype.ext transAssocReparamAux_zero) (Subtype.ext transAss...
ext x simp only [transAssocReparamAux, Path.trans_apply, mul_inv_cancel_left₀, not_le, Function.comp_apply, Ne, not_false_iff, bit0_eq_zero, one_ne_zero, mul_ite, Subtype.coe_mk, Path.coe_reparam] -- TODO: why does split_ifs not reduce the ifs?????? split_ifs with h₁ h₂ h₃ h₄ h₅ · rfl · exfalso ...
[ " Continuous reflTransSymmAux", " Continuous fun x => ↑x.2", " Continuous fun x => 1 / 2", " Continuous fun x => ↑x.1 * 2 * ↑x.2", " Continuous fun x => ↑x.1 * (2 - 2 * ↑x.2)", " ∀ (x : ↑I × ↑I), ↑x.2 = 1 / 2 → ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ref...
[ " Continuous reflTransSymmAux", " Continuous fun x => ↑x.2", " Continuous fun x => 1 / 2", " Continuous fun x => ↑x.1 * 2 * ↑x.2", " Continuous fun x => ↑x.1 * (2 - 2 * ↑x.2)", " ∀ (x : ↑I × ↑I), ↑x.2 = 1 / 2 → ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ↑x.1 * 2 * ↑x.2 = ↑x.1 * (2 - 2 * ↑x.2)", " ref...
import Mathlib.Analysis.BoxIntegral.Box.Basic import Mathlib.Analysis.SpecificLimits.Basic #align_import analysis.box_integral.box.subbox_induction from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982" open Set Finset Function Filter Metric Classical Topology Filter ENNReal noncomputable...
Mathlib/Analysis/BoxIntegral/Box/SubboxInduction.lean
69
75
theorem disjoint_splitCenterBox (I : Box ι) {s t : Set ι} (h : s ≠ t) : Disjoint (I.splitCenterBox s : Set (ι → ℝ)) (I.splitCenterBox t) := by
rw [disjoint_iff_inf_le] rintro y ⟨hs, ht⟩; apply h ext i rw [mem_coe, mem_splitCenterBox] at hs ht rw [← hs.2, ← ht.2]
[ " s.piecewise (fun i => (I.lower i + I.upper i) / 2) I.lower i <\n s.piecewise I.upper (fun i => (I.lower i + I.upper i) / 2) i", " (if i ∈ s then (I.lower i + I.upper i) / 2 else I.lower i) < if i ∈ s then I.upper i else (I.lower i + I.upper i) / 2", " (I.lower i + I.upper i) / 2 < I.upper i", " I.lower i...
[ " s.piecewise (fun i => (I.lower i + I.upper i) / 2) I.lower i <\n s.piecewise I.upper (fun i => (I.lower i + I.upper i) / 2) i", " (if i ∈ s then (I.lower i + I.upper i) / 2 else I.lower i) < if i ∈ s then I.upper i else (I.lower i + I.upper i) / 2", " (I.lower i + I.upper i) / 2 < I.upper i", " I.lower i...
import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace #align_import linear_algebra.affine_space.pointwise from "leanprover-community/mathlib"@"e96bdfbd1e8c98a09ff75f7ac6204d142debc840" open Affine Pointwise open Set namespace AffineSubspace variable {k : Type*} [Ring k] variable {V P V₁ P₁ V₂ P₂ : Type*} var...
Mathlib/LinearAlgebra/AffineSpace/Pointwise.lean
74
79
theorem map_pointwise_vadd (f : P₁ →ᵃ[k] P₂) (v : V₁) (s : AffineSubspace k P₁) : (v +ᵥ s).map f = f.linear v +ᵥ s.map f := by
erw [pointwise_vadd_eq_map, pointwise_vadd_eq_map, map_map, map_map] congr 1 ext exact f.map_vadd _ _
[ " v +ᵥ ⊥ = ⊥", " x✝ ∈ v +ᵥ ⊥ ↔ x✝ ∈ ⊥", " (v +ᵥ s).direction = s.direction", " Submodule.map (↑(AffineEquiv.constVAdd k P v)).linear s.direction = s.direction", " map f (v +ᵥ s) = f.linear v +ᵥ map f s", " map (f.comp ↑(AffineEquiv.constVAdd k P₁ v)) s = map ((↑(AffineEquiv.constVAdd k P₂ (f.linear v))).c...
[ " v +ᵥ ⊥ = ⊥", " x✝ ∈ v +ᵥ ⊥ ↔ x✝ ∈ ⊥", " (v +ᵥ s).direction = s.direction", " Submodule.map (↑(AffineEquiv.constVAdd k P v)).linear s.direction = s.direction" ]