Lean source
Lib.Cohomology.ProperBaseChange.SubringSplitting
Its 8 declarations
aicSubringsdef, line 16aicSubrings.abbrev, line 19extendedIdeal aicSubrings.def, lines 23–24quotientFunctor (instance)instance, line 26(instance)instance, line 28(instance)instance, lines 30–31IsAIC.lemma, lines 34–39isLocalization_away aicSubrings.lemma, lines 46–97exists_split_mayer_vietoris
import Lib.Cohomology.ProperBaseChange.KummerLine/-! Part of: Proper base change; invariance under extension of algebraically closed fields (knownresult; see Lib.Cohomology.ProperBaseChange.ProperBaseChange).This file: A non-valuation subring splits into two larger ones with exact Mayer-Vietorissequence. -/open CategoryTheory CommRingCat Subring Ideal.Quotient IsLocalization Away PrimeSpectrum Fact LocallyConstant IsLocalRing Ideal LocalSubringvariable {ℓ K} [ThePrime ℓ] [Field.{0} K] [IsAlgClosed K] {S T U : Subring K} [h : Fact (S ≤ T)] {D : CommRingCat} (J : Ideal D) (γ : D →+* K)/-- For a ring homomorphism γ from D to the field K, the set of absolutely integrally closedsubrings of K that contain the image of γ. -/def aicSubrings := {B | γ.range ≤ B ∧ IsAIC B}/-- For an ideal J of D and B in `aicSubrings` γ, the ideal of B generated by γ(J). -/abbrev aicSubrings.extendedIdeal (B : aicSubrings γ) := J.map (γ.codRestrict _ (B.2.1 ⟨·, rfl⟩))/-- For an ideal J of D, the functor from the ordered set `aicSubrings` γ of subrings tocommutative rings sending B to B/γ(J)B. -/def aicSubrings.quotientFunctor : aicSubrings γ ⥤ CommRingCat := .mk (of <| _ ⧸ extendedIdeal J γ ·) fun l ↦ ofHom (quotientMap _ (inclusion l.le) (map_le_of_le_comap le_comap_map))instance : Algebra S T := (inclusion h.1).toAlgebrainstance [Fact (T ≤ U)] [Fact (S ≤ U)] : IsScalarTower S T U := .of_algebraMap_eq' rfllocal instance [a : IsAIC S] : IsIntegrallyClosedIn S K := isIntegrallyClosedIn_iff.2 ⟨S.subtype_injective, a.mem_range_of_isIntegralElem⟩omit [IsAlgClosed K] inlemma IsAIC.isLocalization_away (a : IsAIC S) (x : S) {y : K} (m : y ∈ T) (e : x * y = 1 := by grind [zero_mem]) (H : ∀ {U : Subring K}, IsAIC U → S ≤ U → y ∈ U → T ≤ U := by simp +contextual [sub_mem, *]) : Away x T := let φ := Localization.awayLift _ x (.of_mul_eq_one y e) .mk _ (.of_mul_eq_one ⟨y, m⟩ (Subtype.ext e)) (H ((a.of_isLocalization (.powers x)).of_surjective φ.rangeRestrict_surjective) (⟨_, lift_eq x _ ⟨·, ·⟩⟩) ⟨invSelf x, (lift_mk'_spec ..).2 e.symm⟩ ·.2 |>.elim (by peel surj x ·; ext; simpa [·, φ] using! congr(φ $this))) (by rintro ⟨⟩ ⟨⟩ ⟨⟩; simp)/-- Let K be algebraically closed, divisibility in D total, ℓ ∈ D^× prime, B in`aicSubrings` γ not a valuation ring of K. There are B₁, B₂ ⊋ B generating B₃, all in`aicSubrings` γ, such that every valuation ring of K containing B contains B₁ or B₂, andthe Mayer–Vietoris sequence of locally constant ℤ/ℓ-valued functions on the spectra moduloγ(J) is short exact. -/lemma aicSubrings.exists_split_mayer_vietoris [PreValuationRing D] (u : IsUnit (ℓ : D)) B (n : ¬∀ x, x ∈ B.1 ∨ x⁻¹ ∈ B.1) : ∃ (B₁ B₂ B₃ : aicSubrings γ) (l₁ : B < B₁) (l₂ : B < B₂) (h₁ : B₁ ≤ B₃) (h₂ : B₂ ≤ B₃), B₃ = B₁.1 ⊔ B₂ ∧ (∀ V : ValuationSubring K, B ≤ V.1 → B₁ ≤ V.1 ∨ B₂ ≤ V.1) ∧ let L {S T} (l : S ≤ T) := (quotientFunctor J γ ⋙ locConstSpec ⟨ZMod ℓ⟩).map l.hom (∀ l, L l₁.le l = 0 → L l₂.le l = 0 → l = 0) ∧ (∀ x y, L h₁ x = L h₂ y → ∃ l, L l₁.le l = x ∧ L l₂.le l = y) ∧ ∀ z, ∃ x y, z = L h₁ x - L h₂ y := by obtain ⟨B, g, i⟩ := B by_contra h apply PLift.up at h choose cl o a using fun {t} ↦ (⟨_, integralClosure_subring_le_iff (S := B ⊔ closure {t}).trans (sup_le_iff.trans (by simp)), .of_isIntegrallyClosedIn K⟩ : ∃ C, (∀ {U : Subring K} [IsIntegrallyClosedIn U K], C ≤ U ↔ B ≤ U ∧ t ∈ U) ∧ IsAIC C) choose j k using fun {t} ↦ (o.1 (refl (@cl t))).imp_left mk -- no t outside B, with 1/t outside B, satisfies the case hypothesis `i` of `line_mayer_vietoris` have M t (ht : t ∉ B) (hu : t⁻¹ ∉ B) : ¬_ obtain ⟨p, q⟩ := (sup_le_iff.1 (refl (@cl t ⊔ @cl t⁻¹))).imp mk mk obtain ⟨w⟩ := fun {V : ValuationSubring K} h ↦ have := @IsAICLocal.toIsAIC V _ _ (and_or_left.1 ⟨h, V.2 t⟩).imp o.2 o.2, mk (j.1.trans p.1), a.isLocalization_away ⟨t, k⟩ (q.1 k), a.isLocalization_away ⟨t⁻¹, k⟩ (p.1 k) -- the spectra of B₁/γ(J)B₁ and B₂/γ(J)B₂ cover that of B/γ(J)B (proved after its use) have s : (Sum.elim _ _).Surjective; swap refine fun H ↦ h.1 ⟨⟨_, g.trans out, a⟩, ⟨_, g.trans out, a⟩, ⟨_, g.trans out, a.of_isLocalization _⟩, ⟨out, mt (· k) ht⟩, ⟨out, mt (· k) hu⟩, out, out, rfl, @w, fun _ e f ↦ ext (s.forall.2 (Sum.rec (congr($e.1 ·)) (congr($f.1 ·)))), .imp_left (fun w x y e ↦ ?_) (line_mayer_vietoris (extendedIdeal J γ ⟨B, g, i⟩) ⟨t, _⟩ ⟨t⁻¹, _⟩ (Subtype.ext (mul_inv_cancel₀ (by bound))) (by exact (let U := integralClosure .. have m {s h} e := (@o s U.toSubring _).2 ⟨(U.2 <| algebraMap B _ ⟨·, ·⟩), U.2 ⟨⟨s, h⟩, Algebra.subset_adjoin e⟩⟩ .tower_bot (subtype_injective _) <| sup_le (m (.inl rfl)) (m (.inr rfl)) ·.2)) (by simpa using u.map (γ.codRestrict B (by tauto))) (by rintro ⟨b⟩ ⟨⟩ ⟨⟩; exists ⟨b, eq_iInf_of_isIntegrallyClosedIn.ge (mem_iInf.2 (by cases w ·.2 <;> tauto))⟩) H (fun _ _ a ↦ (exists_map_dvd_of_mem_map ((J.map_map ..).le a)).imp' _ fun _ ↦ .imp_left (mem_map_of_mem _)) (by simp [J.map_map]; tauto))⟩ choose z a b using fun {c} ↦ w (x.2.isClopen_fiber _) (y.2.isClopen_fiber _) congr($e.1 ⁻¹' {c}) choose l o using s.forall (p := (∃ c, ∀ {k}, (c = k) = (basicOpen (mk _ (@z k))).1 ·)).2 (Sum.rec (⟨_, congr($a ·)⟩) (⟨_, congr($b ·)⟩)) exact ⟨⟨l, .iff_isOpen_fiber.2 fun _ ↦ (funext (o ·)).symm.subst (basicOpen _).2⟩, ext fun _ ↦ (o _).ge (a.le rfl), ext fun _ ↦ (o _).ge (b.le rfl)⟩ intro p obtain ⟨V, h, _⟩ := (ofPrime _ (p.comap (mk _)).1).exists_le_valuationSubring have m {a} := (map_mem_nonunits_iff (inclusion h) _).trans (AtPrime.to_map_mem_maximal_iff _ (p.comap (mk _)).1 a) refine Sum.exists.2 ((w ((le_ofPrime ..).trans h)).imp ?_ ?_) <;> exact fun h ↦ ⟨.comap (quotientMap (maximalIdeal V) (inclusion h) (map_le_of_le_comap fun a n ↦ m.2 (ker_le_comap _ (mk_ker.ge (mem_map_of_mem _ n))))) ⊥, by ext ⟨⟩; exact eq_zero_iff_mem.trans m⟩ have U b c (e : ¬(IsUnit b ∨ IsUnit (1 - b))) := M (1 - b.1⁻¹) ?_ ?_ (.inl ⟨b, ?_, ?_, i.isLocalization_away _ (sub_mem (one_mem _) k) ?_, c⟩) refine n fun t ↦ by_contra (not_or.1 · |>.elim (M t) (.inr ⟨(eq_sub_of_add_eq' · ▸ by_contra (U _ (.inr fun r _ ↦ (i.exists_pow_sub_mul_eq 2 1 r).elim fun ρ o ↦ (by_contra (U ρ (.inl ?_))).elim (·.exists_right_inv.imp ?_) (·.exists_right_inv.imp ?_))))⟩)) <;> grind all_goals clear * - e; push_cast [Submonoid.isUnit_iff_and, Subtype.ext_iff, algebraMap, coe_inclusion] at *; grind [→ sub_mem B.one_mem]