Mayer–Vietoris for two charts of a line modulo an ideal
Lib.Cohomology.ProperBaseChange.LineCharts.lean
Reading
Upstream documentation written by Claude
This file gives the commutative algebra behind a Mayer–Vietoris sequence of locally constant
ZMod ℓ-valued functions for two charts of a line. The setting is two chartsSpec B,Spec CoverAwith overlapSpec D, whereD = B[1 / t] = C[1 / s],t * s = 1inD, andDis integral overA[t, s]. Everything is read modulo an idealIofA. Under further hypotheses, compatible clopens of the charts come from the base, and every locally constant function on the overlap is a difference of functions from the charts.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.Variety.exists_eq_basicOpen_of_isClopen_of_preimage_eq: compatible clopens of the charts come fromA, assuming every pair inB × Cagreeing inDcomes fromA(hA_onto) andhI.New.Variety.exists_eq_locConstSpec_map_sub_map: under further hypotheses (A,Ddomains;ℓprime and a unit inA;A,B,Cabsolutely integrally closed;hI;h_cases), every locally constantZMod ℓ-valued function on the overlap is a difference of functions from the charts.
Notions from other files:
New.Variety.IsAbsIntegrallyClosed: A is absolutely integrally closed: every monic polynomial over A of positive degree has a root in A.New.ThePrime:ThePrime ℓfixes the primeℓ(it extendsFact ℓ.Prime).New.Variety.locConstSpec: For an abelian group Λ, the functor on commutative rings sending A to the group of locally constant functions Spec A → Λ; it sends a ring map to pull-back along the map of spectra.
Relation to the literature
Known; see Lib.Cohomology.ProperBaseChange.Theorem for sources.
Declarations
lemma exists_eq_locConstSpec_map_sub_map (hts : (t * s : D) = 1) (hD : ∀ x : D, IsIntegral A[(t : D), (s : D)] x) [IsDomain A] [IsDomain D] {ℓ : ℕ} [ThePrime ℓ] (hℓ : IsUnit (ℓ : A)) [IsAbsIntegrallyClosed A] [IsAbsIntegrallyClosed B] [IsAbsIntegrallyClosed C] (h_cases : (∃ a : A, algebraMap A B a * (1 - t) = 1 ∧ (algebraMap A C a - 1) * (s - 1) = 1 ∧ Away a B ∧ IsLineChartCase I a) ∨ IsAbsIntegrallyClosedLocal A) (hI : ∀ {E : Type} [CommRing E] (ψ : A →+* E), ∀ x ∈ I.map ψ, ∃ i ∈ I, ψ i ∣ x) {J : Ideal B} {L : Ideal C} {K : Ideal D} (hJ : I.map (algebraMap A B) = J) (hL : I.map (algebraMap A C) = L) (hK : I.map (algebraMap A D) = K) (hJK : J ≤ K.comap (algebraMap B D)) (hLK : L ≤ K.comap (algebraMap C D)) (u : (locConstSpec ⟨ZMod ℓ⟩).obj (.of (D ⧸ K))) : ∃ (a : (locConstSpec ⟨ZMod ℓ⟩).obj (.of (B ⧸ J))) (b : (locConstSpec ⟨ZMod ℓ⟩).obj (.of (C ⧸ L))), u = (locConstSpec ⟨ZMod ℓ⟩).map (ofHom (J.quotientMap K (algebraMap B D) hJK)) a - (locConstSpec ⟨ZMod ℓ⟩).map (ofHom (L.quotientMap K (algebraMap C D) hLK)) b
Import route to Main
Lib.Cohomology.ProperBaseChange.LineCharts → Lib.Cohomology.ProperBaseChange.SubringSplitting (pinned import) → Lib.Cohomology.ProperBaseChange.Theorem (pinned import) → Lib.Cohomology.ProjectiveLine.TiltedLineFormula (pinned import) → Lib.Cohomology.PointClass.ProjectiveNonvanishing (pinned import) → Lib.Cohomology.PointClass.LinearIndependence (pinned import) → Lib.Cohomology.WoodsHole (pinned import) → Lib.Shimura.Eigenspace (pinned import) → Lib.GaloisRep.Main.SeedRepresentation (pinned import) → Lib.GaloisRep.Main.SplitCase (pinned import) → Lib.GaloisRep.Main.OddRank (pinned import) → Lib.ClassField.Avatar.LocalGlobalCompatibility (pinned import) → Lib.GaloisRep.Main.AllRanks (pinned import) → Lib.GaloisRep.TaylorWiles (pinned import) → New.Congruences.FirstOrder.TrianglePrimes (pinned import) → New.Congruences.FirstOrder.DenominatorBound (pinned import) → New.Congruences.FitTwistsExist (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)