introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.26 kB
import Mathlib.Algebra.Module.LocalizedModule.Submodule
import Mathlib.RingTheory.Localization.Module
import Mathlib.RingTheory.Localization.Away.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
/-! # Submodule Gluing -/
namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.SubmoduleGluing
noncomputable section
/-!
Gluing submodules on a finite family of principal localizations by clearing
overlap denominators. This constructs the global submodule and proves that
its restrictions are exactly the supplied local submodules.
-/
open LocalizedModule
universe u v w
variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M]
variable {ΞΊ : Type w} [Fintype ΞΊ] (r : ΞΊ β†’ R)
variable {A : ΞΊ β†’ Type u} [βˆ€ i, CommRing (A i)] [βˆ€ i, Algebra R (A i)]
variable [βˆ€ i, IsLocalization.Away (r i) (A i)]
variable {L : ΞΊ β†’ Type v} [βˆ€ i, AddCommGroup (L i)] [βˆ€ i, Module R (L i)]
variable [βˆ€ i, Module (A i) (L i)] [βˆ€ i, IsScalarTower R (A i) (L i)]
variable (f : βˆ€ i, M β†’β‚—[R] L i) [βˆ€ i, IsLocalizedModule.Away (r i) (f i)]
variable (N : βˆ€ i, Submodule (A i) (L i))
def localizedSubmoduleIntersection : Submodule R M :=
β¨… i, ((N i).restrictScalars R).comap (f i)
def LocalizedSubmoduleClearing : Prop :=
βˆ€ i j m, f i m ∈ N i β†’ βˆƒ k : β„•, f j ((r i) ^ k β€’ m) ∈ N j
omit [βˆ€ i, IsLocalization.Away (r i) (A i)] [βˆ€ i, IsLocalizedModule.Away (r i) (f i)] in
theorem localizedSubmodule_clear_all (hN : LocalizedSubmoduleClearing r f N)
(i : κ) (m : M) (hm : f i m ∈ N i) :
βˆƒ k : β„•, (r i) ^ k β€’ m ∈ localizedSubmoduleIntersection f N := by
classical
choose k hk using fun j => hN i j m hm
let d := βˆ‘ j, k j
refine ⟨d, ?_⟩
apply (Submodule.mem_iInf _).mpr
intro j
change f j ((r i) ^ d β€’ m) ∈ N j
have hj : k j ≀ d := Finset.single_le_sum (fun _ _ => Nat.zero_le _) (Finset.mem_univ j)
have he : f j ((r i) ^ d β€’ m) = (r i) ^ (d - k j) β€’ f j ((r i) ^ k j β€’ m) := by
rw [← map_smul, smul_smul, ← pow_add, Nat.sub_add_cancel hj]
rw [he]
exact ((N j).restrictScalars R).smul_mem _ (hk j)
/-- Pairwise denominator clearing suffices to glue a finite family of local
submodules. No finite generation or noetherian hypothesis is needed. -/
theorem localizedSubmoduleIntersection_localized (hN : LocalizedSubmoduleClearing r f N) (i : ΞΊ) :
(localizedSubmoduleIntersection f N).localized' (A i) (Submonoid.powers (r i)) (f i) = N i := by
apply le_antisymm
Β· rw [Submodule.localized'_eq_span]
apply Submodule.span_le.mpr
rintro _ ⟨m, hm, rfl⟩
exact (Submodule.mem_iInf _).mp hm i
Β· intro y hy
obtain ⟨⟨m, s⟩, rfl⟩ := IsLocalizedModule.mk'_surjective (Submonoid.powers (r i)) (f i) y
have hm : f i m ∈ N i := by
rw [← IsLocalizedModule.mk'_cancel' _ _ s, Submonoid.smul_def]
exact ((N i).restrictScalars R).smul_mem _ hy
obtain ⟨k, hk⟩ := localizedSubmodule_clear_all r f N hN i m hm
let t : Submonoid.powers (r i) := ⟨(r i) ^ k, ⟨k, rfl⟩⟩
refine ⟨(r i) ^ k β€’ m, hk, t * s, ?_⟩
exact IsLocalizedModule.mk'_cancel_left _ m t s
end
end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.SubmoduleGluing