Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

Commit 8676685

Browse files
kim-emjcommelin
andcommitted
feat(ring_theory): every left-noetherian ring satisfies the strong rank condition (#7711)
This PR also discards the proof that every left-noetherian ring satisfies the rank condition, because we already have in #7683 that this implies that. Co-authored-by: Scott Morrison <[email protected]> Co-authored-by: Johan Commelin <[email protected]>
1 parent 47ad680 commit 8676685

14 files changed

Lines changed: 480 additions & 59 deletions

File tree

‎src/algebra/lie/abelian.lean‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ lemma lie_algebra.is_lie_abelian_bot (R : Type u) (L : Type v)
8383
[comm_ring R] [lie_ring L] [lie_algebra R L] : is_lie_abelian (⊥ : lie_ideal R L) :=
8484
⟨begin
8585
rintros ⟨x, hx⟩ ⟨y, hy⟩,
86-
suffices : ⁅x, y⁆ = 0,
87-
{ ext, simp only [this, lie_subalgebra.coe_bracket, submodule.coe_mk, submodule.coe_zero], },
86+
suffices : ⁅x, y⁆ = 0, by ext,
8887
change x ∈ (⊥ : lie_ideal R L) at hx, rw lie_submodule.mem_bot at hx, rw [hx, zero_lie],
8988
end⟩
9089

‎src/algebra/module/submodule_lattice.lean‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
55
-/
66
import algebra.module.submodule
7+
import algebra.punit_instances
8+
import algebra.module.prod
79

810
/-!
911
# The lattice structure on `submodule`s
@@ -62,9 +64,25 @@ protected lemma eq_bot_iff (p : submodule R M) : p = ⊥ ↔ ∀ x ∈ p, x = (0
6264
⟨ λ h, h.symm ▸ λ x hx, (mem_bot R).mp hx,
6365
λ h, eq_bot_iff.mpr (λ x hx, (mem_bot R).mpr (h x hx)) ⟩
6466

67+
@[ext] protected lemma bot_ext (x y : (⊥ : submodule R M)) : x = y :=
68+
begin
69+
rcases x with ⟨x, xm⟩, rcases y with ⟨y, ym⟩, congr,
70+
rw (submodule.eq_bot_iff _).mp rfl x xm,
71+
rw (submodule.eq_bot_iff _).mp rfl y ym,
72+
end
73+
6574
protected lemma ne_bot_iff (p : submodule R M) : p ≠ ⊥ ↔ ∃ x ∈ p, x ≠ (0 : M) :=
6675
by { haveI := classical.prop_decidable, simp_rw [ne.def, p.eq_bot_iff, not_forall] }
6776

77+
/-- The bottom submodule is linearly equivalent to punit as an `R`-module. -/
78+
@[simps] def bot_equiv_punit : (⊥ : submodule R M) ≃ₗ[R] punit :=
79+
{ to_fun := λ x, punit.star,
80+
inv_fun := λ x, 0,
81+
map_add' := by { intros, ext, },
82+
map_smul' := by { intros, ext, },
83+
left_inv := by { intro x, ext, },
84+
right_inv := by { intro x, ext, }, }
85+
6886
/-- The universal set is the top element of the lattice of submodules. -/
6987
instance : has_top (submodule R M) :=
7088
⟨{ carrier := set.univ, smul_mem' := λ _ _ _, trivial, .. (⊤ : add_submonoid M)}⟩
@@ -83,6 +101,15 @@ instance : order_top (submodule R M) :=
83101
lemma eq_top_iff' {p : submodule R M} : p = ⊤ ↔ ∀ x, x ∈ p :=
84102
eq_top_iff.trans ⟨λ h x, h trivial, λ h x _, h x⟩
85103

104+
/-- The top submodule is linearly equivalent to the module. -/
105+
@[simps] def top_equiv_self : (⊤ : submodule R M) ≃ₗ[R] M :=
106+
{ to_fun := λ x, x,
107+
inv_fun := λ x, ⟨x, by simp⟩,
108+
map_add' := by { intros, refl, },
109+
map_smul' := by { intros, refl, },
110+
left_inv := by { intro x, ext, refl, },
111+
right_inv := by { intro x, refl, }, }
112+
86113
instance : has_Inf (submodule R M) :=
87114
⟨λ S, {
88115
carrier := ⋂ s ∈ S, (s : set M),

‎src/analysis/normed_space/inner_product.lean‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,13 +2289,7 @@ local attribute [instance] finite_dimensional_bot
22892289

22902290
/-- The orthogonal projection onto the trivial submodule is the zero map. -/
22912291
@[simp] lemma orthogonal_projection_bot : orthogonal_projection (⊥ : submodule 𝕜 E) = 0 :=
2292-
begin
2293-
ext u,
2294-
apply eq_orthogonal_projection_of_mem_of_inner_eq_zero,
2295-
{ simp },
2296-
{ intros w hw,
2297-
simp [(submodule.mem_bot 𝕜).mp hw] }
2298-
end
2292+
by ext
22992293

23002294
variables (K)
23012295

‎src/data/equiv/basic.lean‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,15 @@ def sum_arrow_equiv_prod_arrow (α β γ : Type*) : ((α ⊕ β) → γ) ≃ (α
11491149
λ f, by { ext ⟨⟩; refl },
11501150
λ p, by { cases p, refl }⟩
11511151

1152+
@[simp] lemma sum_arrow_equiv_prod_arrow_apply_fst {α β γ} (f : (α ⊕ β) → γ) (a : α) :
1153+
(sum_arrow_equiv_prod_arrow α β γ f).1 a = f (inl a) := rfl
1154+
@[simp] lemma sum_arrow_equiv_prod_arrow_apply_snd {α β γ} (f : (α ⊕ β) → γ) (b : β) :
1155+
(sum_arrow_equiv_prod_arrow α β γ f).2 b = f (inr b) := rfl
1156+
@[simp] lemma sum_arrow_equiv_prod_arrow_symm_apply_inl {α β γ} (f : α → γ) (g : β → γ) (a : α) :
1157+
((sum_arrow_equiv_prod_arrow α β γ).symm (f, g)) (inl a) = f a := rfl
1158+
@[simp] lemma sum_arrow_equiv_prod_arrow_symm_apply_inr {α β γ} (f : α → γ) (g : β → γ) (b : β) :
1159+
((sum_arrow_equiv_prod_arrow α β γ).symm (f, g)) (inr b) = g b := rfl
1160+
11521161
/-- Type product is right distributive with respect to type sum up to an equivalence. -/
11531162
def sum_prod_distrib (α β γ : Sort*) : (α ⊕ β) × γ ≃ (α × γ) ⊕ (β × γ) :=
11541163
⟨λ p, match p with (inl a, c) := inl (a, c) | (inr b, c) := inr (b, c) end,

‎src/data/set/disjointed.lean‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ theorem pairwise_disjoint_on_bool [semilattice_inf_bot α] {a b : α} :
3838
pairwise (disjoint on (λ c, cond c a b)) ↔ disjoint a b :=
3939
pairwise_on_bool disjoint.symm
4040

41+
theorem pairwise_on_nat {r} (hr : symmetric r) (f : ℕ → α) :
42+
pairwise (r on f) ↔ (∀ (m n) (h : m < n), r (f m) (f n)) :=
43+
⟨λ p m n w, p m n w.ne, λ p m n w, by { wlog w' : m ≤ n, exact p m n ((ne.le_iff_lt w).mp w'), }⟩
44+
45+
theorem pairwise_disjoint_on_nat [semilattice_inf_bot α] (f : ℕ → α) :
46+
pairwise (disjoint on f) ↔ (∀ (m n) (h : m < n), disjoint (f m) (f n)) :=
47+
pairwise_on_nat disjoint.symm f
48+
4149
theorem pairwise.pairwise_on {p : α → α → Prop} (h : pairwise p) (s : set α) : s.pairwise_on p :=
4250
λ x hx y hy, h x y
4351

‎src/linear_algebra/basic.lean‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,15 @@ lemma range_map_nonempty (N : submodule R M) :
732732
(set.range (λ ϕ, submodule.map ϕ N : (M →ₗ[R] M₂) → submodule R M₂)).nonempty :=
733733
⟨_, set.mem_range.mpr ⟨0, rfl⟩⟩
734734

735+
/-- The pushforward of a submodule by an injective linear map is
736+
linearly equivalent to the original submodule. -/
737+
@[simps]
738+
noncomputable def equiv_map_of_injective (f : M →ₗ[R] M₂) (i : injective f) (p : submodule R M) :
739+
p ≃ₗ[R] p.map f :=
740+
{ map_add' := by { intros, simp, refl, },
741+
map_smul' := by { intros, simp, refl, },
742+
..(equiv.set.image f p i) }
743+
735744
/-- The pullback of a submodule `p ⊆ M₂` along `f : M → M₂` -/
736745
def comap (f : M →ₗ[R] M₂) (p : submodule R M₂) : submodule R M :=
737746
{ carrier := f ⁻¹' p,
@@ -786,6 +795,44 @@ lemma map_comap_le (f : M →ₗ[R] M₂) (q : submodule R M₂) : map f (comap
786795
lemma le_comap_map (f : M →ₗ[R] M₂) (p : submodule R M) : p ≤ comap f (map f p) :=
787796
(gc_map_comap f).le_u_l _
788797

798+
section galois_coinsertion
799+
variables {f : M →ₗ[R] M₂} (hf : injective f)
800+
include hf
801+
802+
/-- `map f` and `comap f` form a `galois_coinsertion` when `f` is injective. -/
803+
def gci_map_comap : galois_coinsertion (map f) (comap f) :=
804+
(gc_map_comap f).to_galois_coinsertion
805+
(λ S x, by simp [mem_comap, mem_map, hf.eq_iff])
806+
807+
lemma comap_map_eq_of_injective (p : submodule R M) : (p.map f).comap f = p :=
808+
(gci_map_comap hf).u_l_eq _
809+
810+
lemma comap_surjective_of_injective : function.surjective (comap f) :=
811+
(gci_map_comap hf).u_surjective
812+
813+
lemma map_injective_of_injective : function.injective (map f) :=
814+
(gci_map_comap hf).l_injective
815+
816+
lemma comap_inf_map_of_injective (p q : submodule R M) : (p.map f ⊓ q.map f).comap f = p ⊓ q :=
817+
(gci_map_comap hf).u_inf_l _ _
818+
819+
lemma comap_infi_map_of_injective (S : ι → submodule R M) : (⨅ i, (S i).map f).comap f = infi S :=
820+
(gci_map_comap hf).u_infi_l _
821+
822+
lemma comap_sup_map_of_injective (p q : submodule R M) : (p.map f ⊔ q.map f).comap f = p ⊔ q :=
823+
(gci_map_comap hf).u_sup_l _ _
824+
825+
lemma comap_supr_map_of_injective (S : ι → submodule R M) : (⨆ i, (S i).map f).comap f = supr S :=
826+
(gci_map_comap hf).u_supr_l _
827+
828+
lemma map_le_map_iff_of_injective (p q : submodule R M) : p.map f ≤ q.map f ↔ p ≤ q :=
829+
(gci_map_comap hf).l_le_l_iff
830+
831+
lemma map_strict_mono_of_injective : strict_mono (map f) :=
832+
(gci_map_comap hf).strict_mono_l
833+
834+
end galois_coinsertion
835+
789836
--TODO(Mario): is there a way to prove this from order properties?
790837
lemma map_inf_eq_map_inf_comap {f : M →ₗ[R] M₂}
791838
{p : submodule R M} {p' : submodule R M₂} :

‎src/linear_algebra/invariant_basis_number.lean‎

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/-
22
Copyright (c) 2020 Markus Himmel. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
4-
Authors: Markus Himmel
4+
Authors: Markus Himmel, Scott Morrison
55
-/
66
import ring_theory.principal_ideal_domain
77
import ring_theory.ideal.basic
@@ -30,14 +30,13 @@ the invariant basis number property.
3030
3131
## Main results
3232
33-
We show that every nontrivial left-noetherian ring satisfies the rank condition,
33+
We show that every nontrivial left-noetherian ring satisfies the strong rank condition,
3434
(and so in particular every division ring or field),
3535
and then use this to show every nontrivial commutative ring has the invariant basis number property.
3636
3737
## Future work
3838
39-
We can improve these results: in fact every nontrivial left-noetherian ring,
40-
and every commutative rings, satisfies the strong rank condition.
39+
We can improve these results: in fact every commutative ring satisfies the strong rank condition.
4140
4241
So far, there is no API at all for the `invariant_basis_number` class. There are several natural
4342
ways to formulate that a module `M` is finitely generated and free, for example
@@ -132,42 +131,32 @@ end
132131
section
133132
variables (R : Type u) [ring R] [nontrivial R] [is_noetherian_ring R]
134133

135-
-- TODO: in fact, any nontrivial noetherian ring satisfies the strong rank condition.
134+
/--
135+
Any nontrivial noetherian ring satisfies the strong rank condition.
136136
137-
/-- Any nontrivial noetherian ring satisfies the rank condition. -/
137+
An injective map `((fin n ⊕ fin (1 + m)) → R) →ₗ[R] (fin n → R)` for some left-noetherian `R`
138+
would force `fin (1 + m) → R ≃ₗ punit` (via `is_noetherian.equiv_punit_of_prod_injective`),
139+
which is not the case!
140+
-/
138141
-- Note this includes fields,
139142
-- and we use this below to show any commutative ring has invariant basis number.
140143
@[priority 100]
141-
instance noetherian_ring_rank_condition : rank_condition R :=
142-
⟨begin
143-
intros n m f fs,
144+
instance noetherian_ring_strong_rank_condition : strong_rank_condition R :=
145+
begin
146+
fsplit,
147+
intros m n f i,
144148
by_contradiction h,
145149
rw [not_le, ←nat.add_one_le_iff, le_iff_exists_add] at h,
146150
obtain ⟨m, rfl⟩ := h,
147-
-- Let `g` be the projection map discarding the last `n` coordinates.
148-
let g : (fin ((n + 1) + m) → R) →ₗ[R] (fin n → R) :=
149-
linear_map.fun_left R R ((fin.cast_add 1).trans (fin.cast_add m)),
150-
have gs : function.surjective g :=
151-
linear_map.fun_left_surjective_of_injective _ _ _
152-
((fin.cast_add m).injective.comp (fin.cast_add 1).injective),
153-
-- Since `g` composed with the `f` is a surjective endomorphism of
154-
-- a noetherian module, it is injective, and so `f` itself is injective.
155-
have gi : function.injective g :=
156-
(is_noetherian.injective_of_surjective_endomorphism (f.comp g)
157-
(function.surjective.comp fs gs)).of_comp,
158-
-- But this gives an easy contradiction.
159-
let i : fin (n + 1 + m) := fin.cast_add m (fin.nat_add n 0),
160-
let x : fin (n + 1 + m) → R := finsupp.single i 1,
161-
have z : g x = 0 := begin
162-
ext j,
163-
simp only [g, x, i, linear_map.fun_left_apply, pi.zero_apply],
164-
rw finsupp.single_eq_of_ne,
165-
refine fin.ne_of_vne _,
166-
simp only [add_zero, fin.coe_zero, fin.val_eq_coe, fin.coe_nat_add, ne.def, fin.coe_cast_add],
167-
exact j.2.ne.symm,
168-
end,
169-
simpa [x] using congr_fun ((g.map_eq_zero_iff gi).mp z) i,
170-
end⟩
151+
let e : fin (n + 1 + m) ≃ fin n ⊕ fin (1 + m) :=
152+
(fin_congr (add_assoc _ _ _)).trans fin_sum_fin_equiv.symm,
153+
let f' := f.comp ((linear_equiv.sum_arrow_lequiv_prod_arrow _ _ R R).symm.trans
154+
(linear_map.fun_congr_left R R e)).to_linear_map,
155+
have i' : injective f' := i.comp (linear_equiv.injective _),
156+
apply @zero_ne_one (fin (1 + m) → R) _ _,
157+
apply (is_noetherian.equiv_punit_of_prod_injective f' i').injective,
158+
ext,
159+
end
171160

172161
end
173162

@@ -198,7 +187,7 @@ begin
198187
exact ideal.map_pi _ _ hab e h,
199188
end
200189

201-
/-- An isomorphism of `R`-modules `R^n ≃ R^m` induces an isomorphism `R/I`-modules
190+
/-- An isomorphism of `R`-modules `R^n ≃ R^m` induces an isomorphism of `R/I`-modules
202191
`R^n/I^n ≃ R^m/I^m`. -/
203192
private def induced_equiv [fintype ι'] (I : ideal R) (e : (ι → R) ≃ₗ[R] (ι' → R)) :
204193
(I.pi ι).quotient ≃ₗ[I.quotient] (I.pi ι').quotient :=
@@ -215,6 +204,12 @@ section
215204
local attribute [instance] ideal.quotient.field
216205

217206
-- TODO: in fact, any nontrivial commutative ring satisfies the strong rank condition.
207+
-- To see this, consider `f : (fin m → R) →ₗ[R] (fin n → R)`,
208+
-- and consider the subring `A` of `R` generated by the matrix entries.
209+
-- That subring is noetherian, and `f` induces a new linear map `f' : (fin m → A) →ₗ[R] (fin n → A)`
210+
-- which is injective if `f` is.
211+
-- Since we've already established the strong rank condition for noetherian rings,
212+
-- this gives the result.
218213

219214
/-- Nontrivial commutative rings have the invariant basis number property. -/
220215
@[priority 100]

‎src/linear_algebra/pi.lean‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,23 @@ rfl
262262
(pi_ring R M ι S).symm f g = ∑ i, g i • f i :=
263263
by simp [pi_ring, linear_map.lsum]
264264

265+
/--
266+
`equiv.sum_arrow_equiv_prod_arrow` as a linear equivalence.
267+
-/
268+
-- TODO additive version?
269+
def sum_arrow_lequiv_prod_arrow (α β R M : Type*) [semiring R] [add_comm_monoid M] [module R M] :
270+
((α ⊕ β) → M) ≃ₗ[R] (α → M) × (β → M) :=
271+
{ map_add' := by { intros f g, ext; refl },
272+
map_smul' := by { intros r f, ext; refl, },
273+
.. equiv.sum_arrow_equiv_prod_arrow α β M, }
274+
275+
@[simp] lemma sum_arrow_lequiv_prod_arrow_apply_fst {α β} (f : (α ⊕ β) → M) (a : α) :
276+
(sum_arrow_lequiv_prod_arrow α β R M f).1 a = f (sum.inl a) := rfl
277+
@[simp] lemma sum_arrow_lequiv_prod_arrow_apply_snd {α β} (f : (α ⊕ β) → M) (b : β) :
278+
(sum_arrow_lequiv_prod_arrow α β R M f).2 b = f (sum.inr b) := rfl
279+
@[simp] lemma sum_arrow_lequiv_prod_arrow_symm_apply_inl {α β} (f : α → M) (g : β → M) (a : α) :
280+
((sum_arrow_lequiv_prod_arrow α β R M).symm (f, g)) (sum.inl a) = f a := rfl
281+
@[simp] lemma sum_arrow_lequiv_prod_arrow_symm_apply_inr {α β} (f : α → M) (g : β → M) (b : β) :
282+
((sum_arrow_lequiv_prod_arrow α β R M).symm (f, g)) (sum.inr b) = g b := rfl
283+
265284
end linear_equiv

0 commit comments

Comments
 (0)