chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
142 | leanexplore_declaration | leanexplore:381870 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma UltraProduct.map_πₗ (f : ∀ i, M i →ₗ[R i] N i) (x) :
UltraProduct.map F f (πₗ R M F x) = πₗ R N F (fun i ↦ f i (x i)) := rfl |
360 | leanexplore_declaration | leanexplore:381871 | leanexplore_sqlite | leanexplore_declarations | def UltraProduct.mapRingHom {S : ι → Type*} [∀ i, CommRing (S i)] (f : ∀ i, R i →+* S i) :
UltraProduct R F →+* UltraProduct S F :=
Ideal.quotientMap (I := eventuallyProd (R := R) (M := R) ⊥ F)
(eventuallyProd (R := S) (M := S) ⊥ F) (Pi.ringHom fun i ↦ (f i).comp (Pi.evalRingHom _ i))
(fun i H ↦ H.mono fu... |
170 | leanexplore_declaration | leanexplore:381872 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma UltraProduct.mapRingHom_π {S : ι → Type*} [∀ i, CommRing (S i)] (f : ∀ i, R i →+* S i) (x) :
mapRingHom F f (π R F x) = π S F (fun i ↦ f i (x i)) := rfl |
269 | leanexplore_declaration | leanexplore:381873 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.map_surjective (f : ∀ i, M i →ₗ[R i] N i)
(hf : ∀ i, Function.Surjective (f i)) :
Function.Surjective (map F f) := by
intro x
obtain ⟨x, rfl⟩ := πₗ_surjective R x
choose y hy using fun i ↦ (hf _ (x i))
exact ⟨πₗ R M F y, by simp [hy]⟩ |
274 | leanexplore_declaration | leanexplore:381874 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.mapRingHom_surjective
{S : ι → Type*} [∀ i, CommRing (S i)] (f : ∀ i, R i →+* S i)
(hf : ∀ i, Function.Surjective (f i)) :
Function.Surjective (mapRingHom F f) :=
UltraProduct.map_surjective F (fun i ↦ (f i).toAddMonoidHom.toIntLinearMap) hf |
477 | leanexplore_declaration | leanexplore:381875 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.surjective_of_eventually_surjective
[Finite M₀] (F : Ultrafilter ι) (hf : ∀ᶠ i in F, Function.Surjective (f i)) :
Function.Surjective ((πₗ (fun _ ↦ R₀) M F).restrictScalars R₀ ∘ₗ LinearMap.pi f) := by
intro x
obtain ⟨x, rfl⟩ := πₗ_surjective (fun _ ↦ R₀) x
have : ∀ᶠ i in F, ∃ a, f i a =... |
699 | leanexplore_declaration | leanexplore:381876 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.bijective_of_eventually_bijective
[Finite M₀] (F : Ultrafilter ι) (hf : ∀ᶠ i in F, Function.Bijective (f i)) :
Function.Bijective ((πₗ (fun _ ↦ R₀) M F).restrictScalars R₀ ∘ₗ LinearMap.pi f) := by
constructor
· rw [injective_iff_map_eq_zero]
intro x hx
replace hx : ∀ᶠ i in F, f i ... |
261 | leanexplore_declaration | leanexplore:381877 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.isUnit_π_iff {x : Π i, R i} : IsUnit (π R F x) ↔ ∀ᶠ i in F, IsUnit (x i) := by
simp_rw [isUnit_iff_exists_inv, π_surjective.exists, ← map_one (π R F), ← map_mul,
UltraProduct.π_eq_iff]
exact .symm <| Filter.skolem (P := (x · * · = 1)) |
363 | leanexplore_declaration | leanexplore:381878 | leanexplore_sqlite | leanexplore_declarations | instance {S : ι → Type*} [∀ i, CommRing (S i)] (f : ∀ i, R i →+* S i) [∀ i, IsLocalHom (f i)] :
IsLocalHom (UltraProduct.mapRingHom F f) := by
constructor
intro a ha
obtain ⟨a, rfl⟩ := UltraProduct.π_surjective a
simp only [UltraProduct.mapRingHom_π, UltraProduct.isUnit_π_iff] at ha ⊢
filter_upwards [ha] ... |
941 | leanexplore_declaration | leanexplore:381879 | leanexplore_sqlite | leanexplore_declarations | lemma UltraProduct.exists_bijective_of_bddAbove_card [Algebra.FiniteType ℤ R₀]
(F : Ultrafilter ι) (N : ℕ) (H : ∀ᶠ i in F, Finite (M i) ∧ Nat.card (M i) < N) :
∀ᶠ i in F,
(∀ᶠ j in F, Nonempty (M i ≃ₗ[R₀] M j)) ∧
Function.Bijective ((πₗ (fun _ ↦ R₀) M F).restrictScalars R₀ ∘ₗ LinearMap.pi fun j ↦
... |
2,052 | leanexplore_declaration | leanexplore:381880 | leanexplore_sqlite | leanexplore_declarations | /--
Let `R₀` be a topological ring, topologically of finite type (over `ℤ`).
Consider a family of (cardinality) finite continuous `R₀`-algebras `R i` with the discrete topology
whose cardinalites are unifomly bounded.
Then `𝒰(Rᵢ) ≃ₐ[R] R i` for `F`-many `i`.
-/
lemma UltraProduct.exists_algEquiv_of_bddAbove_card
... |
1,155 | leanexplore_declaration | leanexplore:381881 | leanexplore_sqlite | leanexplore_declarations | /--
Let `R₀` be a topological ring, topologically of finite type (over `ℤ`).
Consider a family of (cardinality) finite rings `R i` with the discrete topology
whose cardinalites are unifomly bounded.
Given a family of continuous ring homs `f i : R →+* R i`, there exists `F`-many `i` such that
`𝒰(Rᵢ) ≃+* R i` and this ... |
1,387 | leanexplore_declaration | leanexplore:381882 | leanexplore_sqlite | leanexplore_declarations | /--
Let `R₀` be a topological ring, topologically of finite type (over `ℤ`).
Consider a family of (cardinality) finite rings `R i` with the discrete topology
whose cardinalites are unifomly bounded.
Given a family of continuous ring homs `f i : R →+* R i`, the lift `R →+* 𝒰(Rᵢ)` is also continuous.
-/
lemma UltraProd... |
1,071 | leanexplore_declaration | leanexplore:381883 | leanexplore_sqlite | leanexplore_declarations | /--
Let `R₀` be a topological ring, topologically of finite type (over `ℤ`).
Consider a family of (cardinality) finite rings `R i` with the discrete topology
whose cardinalites are unifomly bounded.
Given a family of continuous surjective ring homs `f i : R →+* R i`,
the lift `R →+* 𝒰(Rᵢ)` is also surjective.
-/
lemm... |
364 | leanexplore_declaration | leanexplore:381884 | leanexplore_sqlite | leanexplore_declarations | /--
`IsAdicTopology R` says that the topology on the local topological ring `R`
is the maximal ideal-adic one, that is, that a basis of neighbourhoods of `0` in `R`
is given by powers of the maximal ideal of `R`.
-/
class IsAdicTopology (R) [CommRing R] [IsLocalRing R]
[TopologicalSpace R] [IsTopologicalRing R] : P... |
139 | leanexplore_declaration | leanexplore:381885 | leanexplore_sqlite | leanexplore_declarations | instance (priority := 100) :
NonarchimedeanRing R :=
IsLocalRing.IsAdicTopology.isAdic (R := R) ▸ RingSubgroupsBasis.nonarchimedean _ |
138 | leanexplore_declaration | leanexplore:381886 | leanexplore_sqlite | leanexplore_declarations | lemma isOpen_maximalIdeal_pow'' (n : ℕ) : IsOpen (X := R) ↑(maximalIdeal R ^ n) :=
(isAdic_iff.mp IsLocalRing.IsAdicTopology.isAdic).1 _ |
123 | leanexplore_declaration | leanexplore:381887 | leanexplore_sqlite | leanexplore_declarations | lemma isOpen_maximalIdeal' : IsOpen (X := R) (maximalIdeal R) :=
pow_one (maximalIdeal R) ▸ isOpen_maximalIdeal_pow'' R 1 |
207 | leanexplore_declaration | leanexplore:381888 | leanexplore_sqlite | leanexplore_declarations | lemma hasBasis_maximalIdeal_pow :
Filter.HasBasis (𝓝 (0 : R)) (fun _ ↦ True) fun n ↦ ↑(maximalIdeal R ^ n) :=
IsLocalRing.IsAdicTopology.isAdic (R := R) ▸ Ideal.hasBasis_nhds_zero_adic (maximalIdeal R) |
100 | leanexplore_declaration | leanexplore:381889 | leanexplore_sqlite | leanexplore_declarations | instance (priority := 100) : IsLinearTopology R R := .mk_of_hasBasis _ (hasBasis_maximalIdeal_pow R) |
390 | leanexplore_declaration | leanexplore:381890 | leanexplore_sqlite | leanexplore_declarations | instance (priority := 100) [IsNoetherianRing R] : T2Space R := by
apply IsTopologicalAddGroup.t2Space_of_zero_sep
rintro x (hx : x ∉ (⊥ : Ideal R))
rw [← Ideal.iInf_pow_eq_bot_of_isLocalRing _ (IsLocalRing.maximalIdeal.isMaximal R).ne_top] at hx
obtain ⟨n, hn⟩ : ∃ n, x ∉ maximalIdeal R ^ n := by simpa using hx
... |
288 | leanexplore_declaration | leanexplore:381891 | leanexplore_sqlite | leanexplore_declarations | instance (priority := 100) [IsArtinianRing R] : DiscreteTopology R := by
rw [discreteTopology_iff_isOpen_singleton_zero]
obtain ⟨n, hn⟩ := IsArtinianRing.isNilpotent_jacobson_bot (R := R)
convert isOpen_maximalIdeal_pow'' R n
rw [← jacobson_eq_maximalIdeal _ bot_ne_top, hn]
rfl |
568 | leanexplore_declaration | leanexplore:381892 | leanexplore_sqlite | leanexplore_declarations | lemma Submodule.isCompact_of_fg {R M : Type*} [CommRing R] [TopologicalSpace R] [AddCommGroup M]
[Module R M]
[TopologicalSpace M] [IsModuleTopology R M] [CompactSpace R] {N : Submodule R M} (hN : N.FG) :
IsCompact (X := M) N := by
have := IsModuleTopology.toContinuousAdd R M
obtain ⟨s, hs⟩ := hN
have... |
199 | leanexplore_declaration | leanexplore:381893 | leanexplore_sqlite | leanexplore_declarations | lemma Ideal.isCompact_of_fg {R : Type*} [CommRing R] [TopologicalSpace R] [IsTopologicalRing R]
[CompactSpace R] {I : Ideal R} (hI : I.FG) : IsCompact (X := R) I :=
Submodule.isCompact_of_fg hI |
288 | leanexplore_declaration | leanexplore:381894 | leanexplore_sqlite | leanexplore_declarations | lemma IsModuleTopology.compactSpace
(R M : Type*) [CommRing R] [TopologicalSpace R] [AddCommGroup M]
[Module R M] [TopologicalSpace M] [IsModuleTopology R M]
[CompactSpace R] [Module.Finite R M] : CompactSpace M :=
⟨Submodule.isCompact_of_fg (Module.Finite.fg_top (R := R))⟩ |
167 | leanexplore_declaration | leanexplore:381895 | leanexplore_sqlite | leanexplore_declarations | lemma isCompact_of_isNoetherianRing [IsNoetherianRing R] [CompactSpace R] (I : Ideal R) :
IsCompact (X := R) I := Ideal.isCompact_of_fg (IsNoetherian.noetherian _) |
421 | leanexplore_declaration | leanexplore:381896 | leanexplore_sqlite | leanexplore_declarations | lemma isOpen_iff_finite_quotient' [CompactSpace R] {I : Ideal R} :
IsOpen (X := R) I ↔ Finite (R ⧸ I) := by
constructor
· intro H
exact AddSubgroup.quotient_finite_of_isOpen _ H
· intro H
obtain ⟨n, hn⟩ := exists_maximalIdeal_pow_le_of_isArtinianRing_quotient I
exact AddSubgroup.isOpen_mono (H₁ :=... |
131 | leanexplore_declaration | leanexplore:381897 | leanexplore_sqlite | leanexplore_declarations | instance (n : ℕ) : DiscreteTopology (R ⧸ maximalIdeal R ^ n) :=
QuotientAddGroup.discreteTopology (isOpen_maximalIdeal_pow'' R n) |
227 | leanexplore_declaration | leanexplore:381898 | leanexplore_sqlite | leanexplore_declarations | instance [IsNoetherianRing R] : IsHausdorff (maximalIdeal R) R where
haus' x hx := show x ∈ (⊥ : Ideal R) by
rw [← Ideal.iInf_pow_eq_bot_of_isLocalRing _ (maximalIdeal.isMaximal R).ne_top]
simpa [SModEq.zero] using hx |
893 | leanexplore_declaration | leanexplore:381899 | leanexplore_sqlite | leanexplore_declarations | instance [CompactSpace R] : IsPrecomplete (maximalIdeal R) R where
prec' f H := by
simp_rw [← Ideal.one_eq_top, smul_eq_mul, mul_one] at H
have : ∀ i, T2Space (R ⧸ (maximalIdeal R) ^ i) := inferInstance
have := denseRange_inverseLimit (ι := ℕᵒᵈ) (R ⧸ maximalIdeal R ^ ·)
(fun i j h ↦ Ideal.quotientMa... |
2,505 | leanexplore_declaration | leanexplore:381900 | leanexplore_sqlite | leanexplore_declarations | lemma compactSpace_of_finite_residueField [IsNoetherianRing R] [Finite (ResidueField R)]
[IsAdicComplete (maximalIdeal R) R] :
CompactSpace R := by
let f : R →+* Π i : ℕ, R ⧸ (maximalIdeal R) ^ i := algebraMap _ _
have : Finite (R ⧸ maximalIdeal R) := ‹_›
have : ∀ i, Finite (R ⧸ (maximalIdeal R) ^ i) := f... |
511 | leanexplore_declaration | leanexplore:381901 | leanexplore_sqlite | leanexplore_declarations | /--
Any profinite noetherian ring has the `𝔪`-adic topology.
-/
instance (priority := 100) [IsNoetherianRing R]
[CompactSpace R] [T2Space R] [TotallyDisconnectedSpace R] :
IsAdicTopology R := by
refine ⟨isAdic_iff.mpr ⟨isOpen_maximalIdeal_pow R, ?_⟩⟩
intro s hs
obtain ⟨I, hI, hIs⟩ := exists_ideal_isOpen_... |
674 | leanexplore_declaration | leanexplore:381902 | leanexplore_sqlite | leanexplore_declarations | lemma Continuous.of_isLocalHom {R S : Type*} [CommRing R] [IsLocalRing R] [TopologicalSpace R]
[IsTopologicalRing R] [IsAdicTopology R] [CommRing S] [IsLocalRing S] [TopologicalSpace S]
[IsTopologicalRing S] [IsAdicTopology S] (f : R →+* S) [IsLocalHom f] : Continuous f := by
apply continuous_of_continuousAt_... |
83 | leanexplore_declaration | leanexplore:381903 | leanexplore_sqlite | leanexplore_declarations | abbrev withIdeal {R} [CommRing R] [IsLocalRing R] : WithIdeal R := ⟨maximalIdeal R⟩ |
69 | leanexplore_declaration | leanexplore:381904 | leanexplore_sqlite | leanexplore_declarations | instance {R} [CommRing R] [IsLocalRing R] : IsAdicTopology R := ⟨rfl⟩ |
977 | leanexplore_declaration | leanexplore:381905 | leanexplore_sqlite | leanexplore_declarations | /-- A connected compact Hausdorff vector space over `𝔽_p` is trivial. This might sound easy, but it
seems to require the fact that every nontrivial compact hausdorff group has a nontrivial continuous
character. This fact is a special case of Pontryagin duality, and also a consequence of the
Peter-Weyl theorem. This fa... |
268 | leanexplore_declaration | leanexplore:381906 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
theorem Group.subsingleton_of_pow_prime_eq_one
(A : Type*) [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[ConnectedSpace A] [CompactSpace A] [T2Space A]
(p : ℕ) (hp : p.Prime) (hAp : ∀ a : A, a ^ p = 1) :
Subsingleton A := by |
858 | leanexplore_declaration | leanexplore:381907 | leanexplore_sqlite | leanexplore_declarations | /-- A compact Hausdorff vector space over `𝔽_p` is totally disconnected. -/
@[to_additive]
theorem Group.totallyDisconnected_of_pow_prime_eq_one
(A : Type*) [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[T2Space A] [CompactSpace A] (p : ℕ) (hp : p.Prime) (hA : ∀ a : A, a ^ p = 1) :
TotallyDisco... |
263 | leanexplore_declaration | leanexplore:381908 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
theorem Group.totallyDisconnected_of_pow_prime_eq_one
(A : Type*) [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[T2Space A] [CompactSpace A] (p : ℕ) (hp : p.Prime) (hA : ∀ a : A, a ^ p = 1) :
TotallyDisconnectedSpace A := by |
1,346 | leanexplore_declaration | leanexplore:381909 | leanexplore_sqlite | leanexplore_declarations | /-- A connected compact Hausdorff abelian topological group is divisible. -/
@[to_additive /-- A connected compact Hausdorff abelian topological group is divisible. -/,
implicit_reducible]
noncomputable def Group.rootable
(A : Type*) [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[ConnectedSpace A]... |
146 | leanexplore_declaration | leanexplore:381910 | leanexplore_sqlite | leanexplore_declarations | @[to_additive /-- A connected compact Hausdorff abelian topological group is divisible. -/,
implicit_reducible]
noncomputable def Group.rootable |
1,664 | leanexplore_declaration | leanexplore:381911 | leanexplore_sqlite | leanexplore_declarations | /-- A connected compact Hausdorff abelian topological group does not admit a nontrivial compact
group of automorphisms. -/
@[to_additive]
theorem CommGroup.no_compact_automorphisms
{A : Type*} [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[ConnectedSpace A] [CompactSpace A] [T2Space A] (K : Subgroup... |
299 | leanexplore_declaration | leanexplore:381912 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
theorem CommGroup.no_compact_automorphisms
{A : Type*} [CommGroup A] [TopologicalSpace A] [IsTopologicalGroup A]
[ConnectedSpace A] [CompactSpace A] [T2Space A] (K : Subgroup (ContinuousMonoidHom A A))
(hK : IsCompact (K : Set (ContinuousMonoidHom A A))) :
K = ⊥ := by |
1,544 | leanexplore_declaration | leanexplore:381913 | leanexplore_sqlite | leanexplore_declarations | /-- A compact Hausdorff ring is totally disconnected. -/
instance {R : Type*} [Ring R] [TopologicalSpace R] [IsTopologicalRing R]
[CompactSpace R] [T2Space R] : TotallyDisconnectedSpace R := by
let C₀ : Ideal R := Ideal.connectedComponentOfZero R
suffices C₀ = ⊥ from
totallyDisconnectedSpace_iff_connectedCo... |
358 | leanexplore_declaration | leanexplore:381914 | leanexplore_sqlite | leanexplore_declarations | /--
Not sure if we should use `IsRegular` or `IsWeaklyRegular`.
They agree for nontrivial finite modules over local rings.
Using `IsWeaklyRegular` gives `depth R 0 = ∞`, which is the right one according to stacks.
-/
def Module.depth : ℕ∞ :=
sSup { List.length s | (s : List R)
(_ : Sequence.IsWeaklyRegular M s)
... |
123 | leanexplore_declaration | leanexplore:381915 | leanexplore_sqlite | leanexplore_declarations | instance [Subsingleton M] (N : Submodule R M) : Subsingleton (M ⧸ N) :=
Function.Surjective.subsingleton N.mkQ_surjective |
182 | leanexplore_declaration | leanexplore:381916 | leanexplore_sqlite | leanexplore_declarations | lemma Module.length_le_depth (s : List R)
(hs : Sequence.IsWeaklyRegular M s) (hs' : ∀ r ∈ s, r ∈ maximalIdeal R) :
s.length ≤ Module.depth R M :=
le_sSup ⟨s, hs, hs', rfl⟩ |
441 | leanexplore_declaration | leanexplore:381917 | leanexplore_sqlite | leanexplore_declarations | lemma Module.depth_of_subsingleton [Subsingleton M] :
Module.depth R M = ⊤ := by
rw [Module.depth, sSup_eq_top]
rintro b hb
obtain ⟨b, rfl⟩ := ENat.ne_top_iff_exists.mp hb.ne
simp only [Set.mem_setOf_eq, exists_prop, ↓existsAndEq, and_true, Nat.cast_lt]
refine ⟨List.replicate b.succ 0, ⟨?_, ?_⟩, ?_⟩
· r... |
240 | leanexplore_declaration | leanexplore:381918 | leanexplore_sqlite | leanexplore_declarations | lemma Module.depth_of_isScalarTower :
Module.depth R M ≤ Module.depth S M := by
refine sSup_le_sSup ?_
rintro _ ⟨s, hs₁, hs₂, rfl⟩
rw [← Sequence.isWeaklyRegular_map_algebraMap_iff S M s] at hs₁
exact ⟨_, hs₁, by simpa, by simp⟩ |
3,683 | leanexplore_declaration | leanexplore:381919 | leanexplore_sqlite | leanexplore_declarations | @[stacks 00LK]
lemma Module.depth_le_krullDim_support [Nontrivial M] [Module.Finite R M] :
.some (Module.depth R M) ≤ Order.krullDim (Module.support R M) := by
have : Nonempty (Module.support R M) := by
rwa [Set.nonempty_coe_sort, Set.nonempty_iff_ne_empty,
ne_eq, support_eq_empty_iff, not_subsingleton_... |
262 | leanexplore_declaration | leanexplore:381920 | leanexplore_sqlite | leanexplore_declarations | lemma Module.depth_le_dim_annihilator
[Nontrivial M] [Module.Finite R M] :
.some (Module.depth R M) ≤ ringKrullDim (R ⧸ Module.annihilator R M) := by
rw [ringKrullDim_quotient, ← Module.support_eq_zeroLocus]
exact Module.depth_le_krullDim_support _ _ |
179 | leanexplore_declaration | leanexplore:381921 | leanexplore_sqlite | leanexplore_declarations | lemma Module.depth_le_dim [Nontrivial M] [Module.Finite R M] :
.some (Module.depth R M) ≤ ringKrullDim R :=
(depth_le_dim_annihilator R M).trans (ringKrullDim_quotient_le _) |
600 | leanexplore_declaration | leanexplore:381922 | leanexplore_sqlite | leanexplore_declarations | lemma isSMulRegular_iff_of_free {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M]
[Module.Free R M] [Nontrivial M] {r : R} :
IsSMulRegular M r ↔ IsSMulRegular R r := by
let I := Module.Free.ChooseBasisIndex R M
let b : Module.Basis I R M := Module.Free.chooseBasis R M
constructor
· intro H m n h
... |
318 | leanexplore_declaration | leanexplore:381923 | leanexplore_sqlite | leanexplore_declarations | lemma RingTheory.Sequence.isWeaklyRegular_of_subsingleton
{R : Type*} (M : Type*) [CommRing R] [AddCommGroup M] [Module R M]
[Subsingleton R] (s : List R) : Sequence.IsWeaklyRegular M s :=
have : Subsingleton M := Module.subsingleton R M
(isWeaklyRegular_iff_Fin ..).mpr fun _ _ _ _ ↦ Subsingleton.elim _ _ |
1,085 | leanexplore_declaration | leanexplore:381924 | leanexplore_sqlite | leanexplore_declarations | lemma RingTheory.Sequence.isWeaklyRegular_of_free_aux
{R : Type u} {M : Type max u v} [CommRing R] [AddCommGroup M] [Module R M]
[Module.Free R M] [Nontrivial M] {s : List R} :
Sequence.IsWeaklyRegular M s ↔ Sequence.IsWeaklyRegular R s := by
generalize hn : s.length = n
induction n generalizing R M w... |
385 | leanexplore_declaration | leanexplore:381925 | leanexplore_sqlite | leanexplore_declarations | lemma RingTheory.Sequence.isWeaklyRegular_of_free
{R M : Type*} [CommRing R] [AddCommGroup M] [Module R M]
[Module.Free R M] [Nontrivial M] {s : List R} :
Sequence.IsWeaklyRegular M s ↔ Sequence.IsWeaklyRegular R s := by
let b := Module.Free.chooseBasis R M
have : Nontrivial R := Module.nontrivial R M... |
282 | leanexplore_declaration | leanexplore:381926 | leanexplore_sqlite | leanexplore_declarations | lemma Module.depth_le_of_free [Module.Free R M] : Module.depth R R ≤ Module.depth R M := by
cases subsingleton_or_nontrivial M
· simp [Module.depth_of_subsingleton]
apply sSup_le_sSup
rintro _ ⟨s, hs, hs', rfl⟩
refine ⟨s, Sequence.isWeaklyRegular_of_free.mpr hs, hs', rfl⟩ |
1,650 | leanexplore_declaration | leanexplore:381927 | leanexplore_sqlite | leanexplore_declarations | lemma Module.faithfulSMul_of_depth_eq_ringKrullDim [IsDomain R] [Nontrivial M] [Module.Finite R M]
(H : ringKrullDim R < ⊤) (H' : .some (Module.depth R M) = ringKrullDim R) :
FaithfulSMul R M := by
have : Nontrivial (R ⧸ annihilator R M) := Ideal.Quotient.nontrivial_iff.2
(by rw [ne_eq, ← Submodule.annihi... |
677 | leanexplore_declaration | leanexplore:381928 | leanexplore_sqlite | leanexplore_declarations | lemma dense_inverseLimit_of_forall_image_dense
(s : Set { v : Π i, α i // ∀ i j (h : i ≤ j), f i j h (v i) = v j })
(hs : ∀ i, Dense ((fun x ↦ (Subtype.val x) i) '' s)) : Dense s := by
classical
rw [dense_iff_inter_open]
rintro U ⟨t, ht, rfl⟩ ⟨x, hx⟩
obtain ⟨I, u, hu₁, hu₂⟩ := isOpen_pi_iff.mp ht _ hx
... |
281 | leanexplore_declaration | leanexplore:381929 | leanexplore_sqlite | leanexplore_declarations | lemma denseRange_inverseLimit {β}
(g : β → { v : Π i, α i // ∀ i j (h : i ≤ j), f i j h (v i) = v j })
(hg : ∀ i, DenseRange (fun x ↦ (g x).1 i)) : DenseRange g := by
refine dense_inverseLimit_of_forall_image_dense α f hf _ fun i ↦ ?_
rw [← Set.range_comp]
exact hg _ |
707 | leanexplore_declaration | leanexplore:381930 | leanexplore_sqlite | leanexplore_declarations | theorem nonempty_inverseLimit_of_finite [∀ i, Finite (α i)] [∀ i, Nonempty (α i)] :
Nonempty { v : Π i, α i // ∀ i j (h : i ≤ j), f i j h (v i) = v j } := by
let f' : ιᵒᵈᵒᵖ ⥤ Type _ :=
{ obj i := α i.1,
map e := ↾(f _ _ e.unop.le),
map_id i := by ext; simp [hf₀],
map_comp f g := by ext; simp [← hf _... |
244 | leanexplore_declaration | leanexplore:381931 | leanexplore_sqlite | leanexplore_declarations | lemma IsUnit.pi_iff {ι} {M : ι → Type*} [∀ i, Monoid (M i)] {x : Π i, M i} :
IsUnit x ↔ ∀ i, IsUnit (x i) := by
simp_rw [isUnit_iff_exists, funext_iff, ← forall_and]
exact Classical.skolem (p := fun i y ↦ x i * y = 1 ∧ y * x i = 1).symm |
301 | leanexplore_declaration | leanexplore:381932 | leanexplore_sqlite | leanexplore_declarations | lemma forall_prod_iff {ι} {β : ι → Type*} (P : ∀ i, β i → Prop) [∀ i, Nonempty (β i)] :
(∀ i : ι, ∀ (y : Π i, β i), P i (y i)) ↔ (∀ i y, P i y) :=
letI := Classical.decEq
⟨fun H i y ↦ by simpa using H i (fun j ↦ if h : i = j then h ▸ y else
Nonempty.some inferInstance), fun H i y ↦ H _ _⟩ |
483 | leanexplore_declaration | leanexplore:381933 | leanexplore_sqlite | leanexplore_declarations | @[simps]
def Ideal.idealQuotientEquiv {R : Type*} [CommRing R] (I : Ideal R) :
Ideal (R ⧸ I) ≃ { J // I ≤ J } where
toFun J := ⟨J.comap (Ideal.Quotient.mk I),
(I.mk_ker : _).symm.trans_le (Ideal.comap_mono bot_le)⟩
invFun J := J.1.map (Ideal.Quotient.mk I)
left_inv J := map_comap_of_surjective _ Quo... |
164 | leanexplore_declaration | leanexplore:381934 | leanexplore_sqlite | leanexplore_declarations | @[simps]
def Ideal.idealQuotientEquiv {R : Type*} [CommRing R] (I : Ideal R) :
Ideal (R ⧸ I) ≃ { J // I ≤ J } where
toFun J := ⟨J.comap (Ideal.Quotient.mk I), |
164 | leanexplore_declaration | leanexplore:381936 | leanexplore_sqlite | leanexplore_declarations | def Submodule.pi' : Submodule (Π i, R i) (Π i, M i) where
carrier := { x | ∀ i, x i ∈ N i }
add_mem' := by aesop
zero_mem' := by aesop
smul_mem' := by aesop |
85 | leanexplore_declaration | leanexplore:381937 | leanexplore_sqlite | leanexplore_declarations | @[simp]
lemma Submodule.mem_pi' {x} : x ∈ Submodule.pi' N ↔ ∀ i, x i ∈ N i := Iff.rfl |
300 | leanexplore_declaration | leanexplore:381938 | leanexplore_sqlite | leanexplore_declarations | /-- A more dependent version of `LinearMap.piMap`, making a product of linear maps
into a linear map over the product of rings. -/
@[simps]
def LinearMap.piMap' (f : ∀ i, M i →ₗ[R i] N i) : (Π i, M i) →ₗ[Π i, R i] Π i, N i where
toFun g i := f i (g i)
map_add' := by aesop
map_smul' := by aesop |
122 | leanexplore_declaration | leanexplore:381939 | leanexplore_sqlite | leanexplore_declarations | @[simps]
def LinearMap.piMap' (f : ∀ i, M i →ₗ[R i] N i) : (Π i, M i) →ₗ[Π i, R i] Π i, N i where
toFun g i := f i (g i) |
357 | leanexplore_declaration | leanexplore:381940 | leanexplore_sqlite | leanexplore_declarations | instance {ι : Type*} {R A : ι → Type*} [∀ i, CommSemiring (R i)]
[∀ i, Semiring (A i)] [∀ i, Algebra (R i) (A i)] : Algebra (Π i, R i) (Π i, A i) where
algebraMap := Pi.ringHom fun i ↦ (algebraMap (R i) (A i)).comp (Pi.evalRingHom R i)
commutes' r a := funext fun i ↦ Algebra.commutes _ _
smul_def' r a := fune... |
275 | leanexplore_declaration | leanexplore:381941 | leanexplore_sqlite | leanexplore_declarations | lemma pi'_jacobson :
Submodule.pi' (fun i ↦ Ideal.jacobson (R := R i) ⊥) = Ideal.jacobson ⊥ := by
ext v
simp only [Submodule.mem_pi', Ideal.mem_jacobson_bot, IsUnit.pi_iff]
conv_rhs => rw [forall_comm]
exact (forall_prod_iff (fun i y ↦ IsUnit (v i * y + 1))).symm |
131 | leanexplore_declaration | leanexplore:381942 | leanexplore_sqlite | leanexplore_declarations | instance {R} [CommRing R] [TopologicalSpace R] [CompactSpace R] (I : Ideal R) :
CompactSpace (R ⧸ I) :=
Quotient.compactSpace |
543 | leanexplore_declaration | leanexplore:381943 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
theorem exists_subgroup_isOpen_and_subset {α : Type*} [TopologicalSpace α]
[CompactSpace α] [T2Space α] [TotallyDisconnectedSpace α]
[CommGroup α] [IsTopologicalGroup α] {U : Set α} (hU : U ∈ 𝓝 1) :
∃ G : Subgroup α, IsOpen (X := α) G ∧ (G : Set α) ⊆ U := by
obtain ⟨V, hVU, hV, h1V⟩ := mem... |
285 | leanexplore_declaration | leanexplore:381944 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
theorem exists_subgroup_isOpen_and_subset {α : Type*} [TopologicalSpace α]
[CompactSpace α] [T2Space α] [TotallyDisconnectedSpace α]
[CommGroup α] [IsTopologicalGroup α] {U : Set α} (hU : U ∈ 𝓝 1) :
∃ G : Subgroup α, IsOpen (X := α) G ∧ (G : Set α) ⊆ U := by |
189 | leanexplore_declaration | leanexplore:381945 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem TwoSidedIdeal.span_le' {α} [NonUnitalNonAssocRing α] {s : Set α} {I : TwoSidedIdeal α} :
span s ≤ I ↔ s ⊆ I :=
⟨subset_span.trans, fun h _ hx ↦ mem_span_iff.mp hx I h⟩ |
338 | leanexplore_declaration | leanexplore:381946 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem TwoSidedIdeal.span_neg {α} [NonUnitalNonAssocRing α] (s : Set α) :
TwoSidedIdeal.span (-s) = TwoSidedIdeal.span s := by
apply le_antisymm <;> rw [span_le']
· rintro x hx
exact neg_neg x ▸ neg_mem _ (subset_span (s := s) hx)
· rintro x hx
exact neg_neg x ▸ neg_mem _ (subset_span (Set.ne... |
148 | leanexplore_declaration | leanexplore:381947 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem TwoSidedIdeal.span_singleton_zero {α} [NonUnitalNonAssocRing α] :
span {(0 : α)} = ⊥ :=
le_bot_iff.mp (span_le'.mpr (by simp)) |
118 | leanexplore_declaration | leanexplore:381948 | leanexplore_sqlite | leanexplore_declarations | theorem TwoSidedIdeal.mem_span_singleton {α} [NonUnitalNonAssocRing α] {x : α} :
x ∈ span {x} :=
subset_span rfl |
1,047 | leanexplore_declaration | leanexplore:381949 | leanexplore_sqlite | leanexplore_declarations | def TwoSidedIdeal.leAddSubgroup {α} [NonUnitalNonAssocRing α] (G : AddSubgroup α) :
TwoSidedIdeal α :=
.mk'
{ x | (span {x} : Set α) ⊆ G }
-- TODO: `TwoSidedIdeal.span` shouldn't be an `abbrev`!!
(by simp [-coe_mk, G.zero_mem])
(fun {x y} hx hy ↦ by
have : span {x + y} ≤ span {x} ⊔ span {y} ... |
186 | leanexplore_declaration | leanexplore:381950 | leanexplore_sqlite | leanexplore_declarations | lemma TwoSidedIdeal.leAddSubgroup_subset {α} [NonUnitalNonAssocRing α] (G : AddSubgroup α) :
(leAddSubgroup G : Set α) ⊆ G :=
fun x hx ↦ hx ((sub_zero x).symm ▸ mem_span_singleton) |
191 | leanexplore_declaration | leanexplore:381951 | leanexplore_sqlite | leanexplore_declarations | lemma TwoSidedIdeal.mem_leAddSubgroup' {α} [NonUnitalNonAssocRing α] {G : AddSubgroup α} {x : α} :
x ∈ leAddSubgroup G ↔ (span {x} : Set α) ⊆ G := by
conv_rhs => rw [← sub_zero x]
rfl |
567 | leanexplore_declaration | leanexplore:381952 | leanexplore_sqlite | leanexplore_declarations | lemma TwoSidedIdeal.mem_leAddSubgroup {α} [Ring α] {G : AddSubgroup α} {x : α} :
x ∈ leAddSubgroup G ↔ ∀ a b, a * x * b ∈ G := by
constructor
· intro hx a b
exact hx (mul_mem_right _ _ _ (mul_mem_left _ _ _ ((sub_zero x).symm ▸ mem_span_singleton)))
· intro H a ha
simpa using mem_span_iff.mp ha (.mk' ... |
2,295 | leanexplore_declaration | leanexplore:381953 | leanexplore_sqlite | leanexplore_declarations | theorem exists_twoSidedIdeal_isOpen_and_subset {α} [TopologicalSpace α]
[CompactSpace α] [T2Space α] [TotallyDisconnectedSpace α]
[Ring α] [IsTopologicalRing α] {U : Set α} (hU : U ∈ 𝓝 0) :
∃ I : TwoSidedIdeal α, IsOpen (X := α) I ∧ (I : Set α) ⊆ U := by
obtain ⟨G, hG, hGU⟩ := exists_addSubgroup_isOpen_a... |
346 | leanexplore_declaration | leanexplore:381954 | leanexplore_sqlite | leanexplore_declarations | theorem exists_ideal_isOpen_and_subset {α} [TopologicalSpace α]
[CompactSpace α] [T2Space α] [TotallyDisconnectedSpace α]
[Ring α] [IsTopologicalRing α] {U : Set α} (hU : U ∈ 𝓝 0) :
∃ I : Ideal α, IsOpen (X := α) I ∧ (I : Set α) ⊆ U := by
obtain ⟨I, hI, hIU⟩ := exists_twoSidedIdeal_isOpen_and_subset hU
... |
281 | leanexplore_declaration | leanexplore:381955 | leanexplore_sqlite | leanexplore_declarations | instance (priority := 100) {α} [TopologicalSpace α] [DiscreteTopology α] :
TotallyDisconnectedSpace α :=
⟨fun s _ hs x hxs y hys ↦ not_not.mp fun hxy ↦ by
simpa using hs _ _ (isOpen_discrete {y}) (isOpen_discrete (s \ {y}))
(by simp) ⟨y, by simpa⟩ ⟨x, by simp_all⟩⟩ |
317 | leanexplore_declaration | leanexplore:381956 | leanexplore_sqlite | leanexplore_declarations | lemma WellFoundedGT.exists_eq_sup {α} [CompleteLattice α] [WellFoundedGT α]
(f : ℕ →o α) : ∃ i, f i = ⨆ i, f i := by
obtain ⟨n, hn⟩ := wellFoundedGT_iff_monotone_chain_condition.mp ‹WellFoundedGT α› f
exact ⟨n, le_antisymm (le_iSup _ _) (iSup_le fun i ↦
(le_total i n).elim (f.2 ·) (fun h ↦ (hn _ h).ge))⟩ |
168 | leanexplore_declaration | leanexplore:381957 | leanexplore_sqlite | leanexplore_declarations | lemma WellFoundedLT.exists_eq_inf {α} [CompleteLattice α] [WellFoundedLT α]
(f : ℕ →o αᵒᵈ) : ∃ i, f i = (⨅ i, f i : α) :=
WellFoundedGT.exists_eq_sup (α := αᵒᵈ) f |
1,906 | leanexplore_declaration | leanexplore:381958 | leanexplore_sqlite | leanexplore_declarations | lemma IsLocalRing.maximalIdeal_pow_card_smul_top_le {R M}
[CommRing R] [IsLocalRing R] [IsNoetherianRing R] [AddCommGroup M] [Module R M]
(N : Submodule R M) [Finite (M ⧸ N)] : maximalIdeal R ^ Nat.card (M ⧸ N) • ⊤ ≤ N := by
let f (n) : Submodule R (M ⧸ N) := maximalIdeal R ^ n • ⊤
have hf : ∀ i j, i ≤ j → ... |
356 | leanexplore_declaration | leanexplore:381959 | leanexplore_sqlite | leanexplore_declarations | theorem Submodule.comap_smul_of_le_range {R M M'} [CommRing R] [AddCommGroup M]
[AddCommGroup M'] [Module R M] [Module R M']
(f : M →ₗ[R] M') (S : Submodule R M') (hS : S ≤ LinearMap.range f) (I : Ideal R) :
(I • S).comap f = (I • S.comap f) ⊔ LinearMap.ker f := by
rw [← comap_map_eq, map_smul'', Submodul... |
374 | leanexplore_declaration | leanexplore:381960 | leanexplore_sqlite | leanexplore_declarations | theorem Submodule.comap_smul_of_surjective {R M M'} [CommRing R] [AddCommGroup M]
[AddCommGroup M'] [Module R M] [Module R M']
(f : M →ₗ[R] M') (S : Submodule R M') (hS : Function.Surjective f) (I : Ideal R) :
(I • S).comap f = (I • S.comap f) ⊔ LinearMap.ker f :=
comap_smul_of_le_range f S (le_top.trans_... |
950 | leanexplore_declaration | leanexplore:381961 | leanexplore_sqlite | leanexplore_declarations | noncomputable
def Pi.liftQuotientₗ {ι R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] [Finite ι]
(f : (ι → R) →ₗ[R] M) (I : Ideal R) : (ι → R ⧸ I) →ₗ[R] M ⧸ (I • ⊤ : Submodule R M) := by
refine Submodule.liftQ _ (Submodule.mkQ _ ∘ₗ f) ?_ ∘ₗ
(((Algebra.linearMap R (R ⧸ I)).compLeft ι).quotKerEquivOfSur... |
447 | leanexplore_declaration | leanexplore:381962 | leanexplore_sqlite | leanexplore_declarations | lemma Pi.liftQuotientₗ_surjective {ι R M : Type*} [CommRing R] [AddCommGroup M] [Module R M]
[Finite ι] (f : (ι → R) →ₗ[R] M) (I : Ideal R) (hf : Function.Surjective f) :
Function.Surjective (Pi.liftQuotientₗ f I) := by
simp only [liftQuotientₗ, LinearMap.coe_comp, LinearEquiv.coe_coe, EquivLike.surjective_co... |
1,029 | leanexplore_declaration | leanexplore:381963 | leanexplore_sqlite | leanexplore_declarations | lemma Pi.liftQuotientₗ_bijective {ι R M : Type*} [CommRing R] [AddCommGroup M] [Module R M]
[Finite ι] (f : (ι → R) →ₗ[R] M) (I : Ideal R) (hf : Function.Surjective f)
(hf' : LinearMap.ker f ≤ LinearMap.ker ((Algebra.linearMap R (R ⧸ I)).compLeft ι)) :
Function.Bijective (Pi.liftQuotientₗ f I) := by
refin... |
336 | leanexplore_declaration | leanexplore:381964 | leanexplore_sqlite | leanexplore_declarations | lemma IsModuleTopology.compactSpace
(R M : Type*) [CommRing R] [TopologicalSpace R] [AddCommGroup M]
[Module R M] [TopologicalSpace M] [IsModuleTopology R M]
[CompactSpace R] [Module.Finite R M] : CompactSpace M :=
letI : ContinuousAdd M := toContinuousAdd R M
⟨Submodule.isCompact_of_fg (Module.Finite.f... |
1,267 | leanexplore_declaration | leanexplore:381965 | leanexplore_sqlite | leanexplore_declarations | lemma disjoint_nonZeroDivisors_of_mem_minimalPrimes
{R : Type*} [CommRing R] (p : Ideal R) (hp : p ∈ minimalPrimes R) :
Disjoint (p : Set R) (nonZeroDivisors R) := by
classical
rw [← Set.subset_compl_iff_disjoint_right, Set.subset_def]
simp only [SetLike.mem_coe, Set.mem_compl_iff, mem_nonZeroDivisors_iff... |
167 | leanexplore_declaration | leanexplore:381966 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance {α : Type*} [Finite α] : Finite (Monoid α) :=
.of_injective (fun g ↦ g.1.1.1)
fun g₁ g₂ e ↦ by ext a b; exact congr_fun (congr_fun e a) b |
69 | leanexplore_declaration | leanexplore:381967 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance {α : Type*} [Finite α] : Finite (Monoid α) := |
170 | leanexplore_declaration | leanexplore:381968 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance {α : Type*} [Finite α] : Finite (Group α) :=
.of_injective (fun g ↦ g.1.1.1.1.1)
fun g₁ g₂ e ↦ by ext a b; exact congr_fun (congr_fun e a) b |
68 | leanexplore_declaration | leanexplore:381969 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance {α : Type*} [Finite α] : Finite (Group α) := |
118 | leanexplore_declaration | leanexplore:381970 | leanexplore_sqlite | leanexplore_declarations | @[to_additive]
instance {α : Type*} [Finite α] : Finite (CommGroup α) :=
.of_injective _ CommGroup.toGroup_injective |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.