File size: 3,255 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 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
|