Download data/lean/OAI/ArithmeticGeometry/Models/SpreadingOut/Diagram.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.91 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/SpreadingOut/Diagram.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/ArithmeticGeometry/Models/SpreadingOut/Diagram.lean
-
curl -L -o Diagram.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/ArithmeticGeometry/Models/SpreadingOut/Diagram.lean
5.91 kB
| import OAI.ArithmeticGeometry.Models.SpreadingOut.Finite | |
| /-! # Diagram -/ | |
| namespace OAI.ArithmeticGeometry.Models.SpreadingOut.Diagram.Construction | |
| noncomputable section | |
| /-! Simultaneous arithmetic models with compatible specified morphisms. -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry | |
| open scoped _root_.NumberField | |
| universe u v w | |
| theorem coefficient_arithmetic_base | |
| {K : Type u} [Field K] [NumberField K] (s : Finset K) : | |
| β (B : Base.Construction.ArithmeticOpen K) (b : B.U.toScheme βΆ CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s), | |
| B.generic β« b = CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s := by | |
| let A := CoefficientSystem.Constructions.Foundations.coefficientRing (π K) K s | |
| obtain β¨d, hd, hpow, hleβ© := Fg.Construction.fg_subalgebra_le_localization A β¨s, rflβ© | |
| let Rβ := Localization.subalgebra.ofField K (Submonoid.powers d) hpow | |
| let Ο : A ββ[π K] Rβ := Subalgebra.inclusion hle | |
| let f := Spec.map (CommRingCat.ofHom Ο.toRingHom) | |
| let g := Spec.map (CommRingCat.ofHom (algebraMap Rβ K)) | |
| have hgf : g β« f = CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s := by | |
| rw [β Spec.map_comp] | |
| rfl | |
| let B := Base.Construction.arithmeticOpenOfNonzero K d hd | |
| let j : Spec (.of Rβ) β B.U.toScheme := Affine.Construction.localizationOpenIso (π K) Rβ d | |
| have hj : j.hom β« B.U.ΞΉ = Spec.map (CommRingCat.ofHom (algebraMap (π K) Rβ)) := | |
| Affine.Construction.localizationOpenIso_hom_ΞΉ (π K) Rβ d | |
| have hg : g β« j.hom = B.generic := by | |
| apply (cancel_mono B.U.ΞΉ).mp | |
| rw [Category.assoc, hj, B.generic_eq] | |
| change Spec.map (CommRingCat.ofHom (algebraMap Rβ K)) β« | |
| Spec.map (CommRingCat.ofHom (algebraMap (π K) Rβ)) = _ | |
| rw [β Spec.map_comp] | |
| congr 1 | |
| refine β¨B, j.inv β« f, ?_β© | |
| rw [β hg, Category.assoc, Iso.hom_inv_id_assoc, hgf] | |
| theorem cartesian_generic_iso_compatibility | |
| {S T : Scheme.{u}} (g : T βΆ S) {X Y : Over T} {M N : Over S} | |
| (p : X.left βΆ M.left) (q : Y.left βΆ N.left) | |
| (hp : IsPullback p X.hom M.hom g) (hq : IsPullback q Y.hom N.hom g) | |
| (f : X βΆ Y) (a : M βΆ N) (ha : p β« a.left = f.left β« q) : | |
| (Over.pullback g).map a β« (Over.isoMk hq.isoPullback.symm hq.isoPullback_inv_snd).hom = | |
| (Over.isoMk hp.isoPullback.symm hp.isoPullback_inv_snd).hom β« f := by | |
| let eX : (Over.pullback g).obj M β X := | |
| Over.isoMk hp.isoPullback.symm hp.isoPullback_inv_snd | |
| let eY : (Over.pullback g).obj N β Y := | |
| Over.isoMk hq.isoPullback.symm hq.isoPullback_inv_snd | |
| change (Over.pullback g).map a β« eY.hom = eX.hom β« f | |
| apply (cancel_epi eX.inv).mp | |
| apply (cancel_mono eY.inv).mp | |
| simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id, Iso.inv_hom_id_assoc] | |
| apply Over.OverMorphism.ext | |
| apply pullback.hom_ext | |
| Β· change (hp.isoPullback.hom β« ((Over.pullback g).map a).left) β« pullback.fst N.hom g = | |
| (f.left β« hq.isoPullback.hom) β« pullback.fst N.hom g | |
| erw [Category.assoc, pullback.lift_fst, β Category.assoc, hp.isoPullback_hom_fst, | |
| Category.assoc, hq.isoPullback_hom_fst] | |
| exact ha | |
| Β· change (hp.isoPullback.hom β« ((Over.pullback g).map a).left) β« pullback.snd N.hom g = | |
| (f.left β« hq.isoPullback.hom) β« pullback.snd N.hom g | |
| erw [Category.assoc, pullback.lift_snd, hp.isoPullback_hom_snd, | |
| Category.assoc, hq.isoPullback_hom_snd] | |
| exact f.w.symm | |
| theorem finite_smooth_proper_diagram_arithmetic_model | |
| {K : Type u} [Field K] [NumberField K] {ΞΉ : Type v} {Ξ± : Type w} | |
| [Finite ΞΉ] [Finite Ξ±] | |
| (X : ΞΉ β Over (Base.Construction.fieldBase K)) (hs : β i, Smooth (X i).hom) | |
| (hp : β i, IsProper (X i).hom) (src dst : Ξ± β ΞΉ) | |
| (f : β a, X (src a) βΆ X (dst a)) : | |
| β (B : Base.Construction.ArithmeticOpen K) (M : ΞΉ β Over B.U.toScheme) | |
| (fM : β a, M (src a) βΆ M (dst a)) | |
| (e : β i, (Over.pullback B.generic).obj (M i) β X i), | |
| (β i, Smooth (M i).hom β§ IsProper (M i).hom) β§ | |
| (β a, (Over.pullback B.generic).map (fM a) β« (e (dst a)).hom = | |
| (e (src a)).hom β« f a) := by | |
| obtain β¨s, M, p, fM, hM, hcart, hfMβ© := | |
| SpreadingOut.Finite.Construction.finite_smooth_proper_arrows_coefficient_model X hs hp src dst f | |
| let g := CoefficientSystem.Constructions.Foundations.genericBaseMap (π K) K s | |
| let e (i : ΞΉ) : (Over.pullback g).obj (M i) β X i := | |
| Over.isoMk (hcart i).isoPullback.symm (hcart i).isoPullback_inv_snd | |
| have he (a : Ξ±) : (Over.pullback g).map (fM a) β« (e (dst a)).hom = | |
| (e (src a)).hom β« f a := | |
| cartesian_generic_iso_compatibility g _ _ (hcart _) (hcart _) (f a) (fM a) (hfM a) | |
| obtain β¨B, b, hbβ© := coefficient_arithmetic_base s | |
| let F := Over.pullback b | |
| let G := Over.pullback B.generic | |
| let c : F β G β Over.pullback g := | |
| (Over.pullbackComp B.generic b).symm βͺβ« | |
| eqToIso (congrArg (fun k : Base.Construction.fieldBase K βΆ CoefficientSystem.Constructions.Foundations.coefficientBase (π K) K s β¦ Over.pullback k) hb) | |
| refine β¨B, (fun i β¦ F.obj (M i)), (fun a β¦ F.map (fM a)), | |
| (fun i β¦ c.app (M i) βͺβ« e i), ?_, ?_β© | |
| Β· intro i | |
| have := (hM i).1 | |
| have := (hM i).2 | |
| exact β¨inferInstanceAs (Smooth (pullback.snd (M i).hom b)), | |
| inferInstanceAs (IsProper (pullback.snd (M i).hom b))β© | |
| Β· intro a | |
| have hc : G.map (F.map (fM a)) β« (c.app (M (dst a))).hom = | |
| (c.app (M (src a))).hom β« (Over.pullback g).map (fM a) := | |
| c.hom.naturality (fM a) | |
| change G.map (F.map (fM a)) β« (c.app (M (dst a))).hom β« (e (dst a)).hom = | |
| ((c.app (M (src a))).hom β« (e (src a)).hom) β« f a | |
| rw [β Category.assoc, hc, Category.assoc, he, | |
| Category.assoc] | |
| end | |
| end OAI.ArithmeticGeometry.Models.SpreadingOut.Diagram.Construction | |