Download data/lean/OAI/ArithmeticGeometry/Models/Glued.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.14 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/Glued.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/ArithmeticGeometry/Models/Glued.lean
-
curl -L -o Glued.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/Glued.lean
4.14 kB
| import OAI.ArithmeticGeometry.Models.OpenImmersionStages | |
| import OAI.ArithmeticGeometry.Models.Isomorphisms | |
| import OAI.ArithmeticGeometry.Models.GluingFiniteness | |
| /-! # Glued -/ | |
| namespace OAI.ArithmeticGeometry.Models.Glued.Constructions.Foundations | |
| /-! Constructing a model of a union from models of its two open pieces. -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry | |
| open scoped _root_.NumberField | |
| universe u | |
| theorem open_gluing_has_model | |
| {K : Type u} [Field K] [NumberField K] | |
| {W X Y P : Over (Spec (CommRingCat.of K))} | |
| (f : W ⟶ X) (g : W ⟶ Y) (i : X ⟶ P) (j : Y ⟶ P) | |
| [IsOpenImmersion f.left] [IsOpenImmersion g.left] [CompactSpace W.left] | |
| (hP : IsPushout f.left g.left i.left j.left) | |
| (MX : Foundations.Constructions.CoefficientModel K X) (MY : Foundations.Constructions.CoefficientModel K Y) : | |
| Nonempty (Foundations.Constructions.CoefficientModel K P) := by | |
| classical | |
| obtain ⟨sX, ⟨L⟩⟩ := OpenImmersionStages.Constructions.Foundations.open_immersion_has_stage f MX | |
| obtain ⟨sY, ⟨R⟩⟩ := OpenImmersionStages.Constructions.Foundations.open_immersion_has_stage g MY | |
| let s := sX ∪ sY | |
| let L₁ := L.enlarge (show sX ⊆ s from Finset.subset_union_left) | |
| let R₁ := R.enlarge (show sY ⊆ s from Finset.subset_union_right) | |
| obtain ⟨t, hst, e, he⟩ := Isomorphisms.Constructions.Foundations.isomorphism_between_models_descends | |
| L₁.source R₁.source L₁.sourceFP R₁.sourceFP L₁.pSource R₁.pSource | |
| L₁.sourceCartesian R₁.sourceCartesian (Iso.refl W) | |
| let L₂ := L₁.enlarge hst | |
| let R₂ := R₁.enlarge hst | |
| let e₂ : L₂.source ≅ R₂.source := e | |
| have he' : L₂.pSource ≫ e₂.hom.left = R₂.pSource := by | |
| exact he.trans (Category.id_comp _) | |
| let f₀ : L₂.source ⟶ L₂.target := L₂.inclusion | |
| let g₀ : L₂.source ⟶ R₂.target := e₂.hom ≫ R₂.inclusion | |
| let : IsOpenImmersion f₀.left := L₂.openInclusion | |
| let : IsOpenImmersion R₂.inclusion.left := R₂.openInclusion | |
| let : IsOpenImmersion e₂.hom.left := by | |
| change IsOpenImmersion ((Over.forget _).mapIso e₂).hom | |
| infer_instance | |
| let : IsOpenImmersion g₀.left := by | |
| change IsOpenImmersion (e₂.hom.left ≫ R₂.inclusion.left) | |
| infer_instance | |
| have hg : g.left ≫ R₂.pTarget = L₂.pSource ≫ g₀.left := by | |
| change g.left ≫ R₂.pTarget = L₂.pSource ≫ (e₂.hom.left ≫ R₂.inclusion.left) | |
| erw [← Category.assoc, he'] | |
| exact R₂.compatibility.symm | |
| let P₀ := GluingBaseChange.Constructions.Foundations.openGluedOver f₀ g₀ | |
| let b := CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K t | |
| have hG := GluingBaseChange.Constructions.Foundations.openGluedBaseChange_isPushout b f g f₀ g₀ | |
| L₂.pSource L₂.pTarget R₂.pTarget | |
| L₂.sourceCartesian L₂.targetCartesian R₂.targetCartesian L₂.compatibility.symm hg | |
| let eP : ((Over.pullback b).obj P₀).left ≅ P.left := | |
| hG.isoIsPushout X.left Y.left hP | |
| have heP : eP.hom ≫ P.hom = ((Over.pullback b).obj P₀).hom := by | |
| apply hG.hom_ext | |
| · rw [← Category.assoc, IsPushout.inl_isoIsPushout_hom] | |
| exact i.w.trans (GluingBaseChange.Constructions.Foundations.baseChangeChart_snd b (GluingBaseChange.Constructions.Foundations.openGluedInl f₀ g₀) L₂.pTarget | |
| L₂.targetCartesian.w).symm | |
| · rw [← Category.assoc, IsPushout.inr_isoIsPushout_hom] | |
| exact j.w.trans (GluingBaseChange.Constructions.Foundations.baseChangeChart_snd b (GluingBaseChange.Constructions.Foundations.openGluedInr f₀ g₀) R₂.pTarget | |
| R₂.targetCartesian.w).symm | |
| let : IsLocallyNoetherian (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K t) := ModelFiniteness.Constructions.Foundations.coefficientBase_locallyNoetherian K t | |
| exact ⟨{ | |
| coefficients := t | |
| model := P₀ | |
| finitePresentation := GluingFiniteness.Constructions.Foundations.openGluedOver_finitePresentation f₀ g₀ L₂.targetFP R₂.targetFP | |
| genericIso := Over.isoMk eP heP }⟩ | |
| end OAI.ArithmeticGeometry.Models.Glued.Constructions.Foundations | |