import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedTruncated.Resolution import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedTruncated.FormPresheaf import OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedFrame.AmbientSheaf import OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.FiniteFreeImage /-! # Acyclic Terms -/ namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedTruncated.AcyclicTerms noncomputable section /-! # IntegralComparison: the actual smooth finite-level frame resolution has acyclic terms Each term is identified with the native direct image of a finite free module from the frame slice. Its positive cohomology therefore vanishes in the original Ext cohomology theory restricted to the prescribed bounded Witt level. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Presentation variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] (n : ℕ) (A C σ : Type) [CommRing A] [CommRing C] [Algebra (Truncated.Witt.Ring p k n) A] [Algebra.Smooth (Truncated.Witt.Ring p k n) A] [Algebra k C] [LinearOrder σ] [Fintype σ] [Algebra (MvPolynomial σ (Truncated.Witt.Ring p k n)) A] [IsScalarTower (Truncated.Witt.Ring p k n) (MvPolynomial σ (Truncated.Witt.Ring p k n)) A] [Algebra.Etale (MvPolynomial σ (Truncated.Witt.Ring p k n)) A] (ρ : A →+* C) (hρ : Function.Surjective ρ) (hker : RingHom.ker ρ = Ideal.span {(p : A)}) (hbase : ∀ w : WittVector p k, ρ (algebraMap (Truncated.Witt.Ring p k n) A (Truncated.Witt.quotient p k n w)) = algebraMap k C (WittVector.constantCoeff w)) local notation "f" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.wittStructureMap p k (OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Presentation.affineScheme k C) local instance structureMap_separated : IsSeparated f := FrameProduct.structureMap_separated p k C local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Truncated.SmoothFrame.boundedFrame p A C ρ hρ hker k n hbase local notation "H" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedFrame.Diagram.productDiagram F local notation "AP" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.FreePresheafBiproduct.ambientPresheaf H local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.sheafification (p := p) (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) f n local notation "D" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.SliceImage.directImage f n F local notation "K" => OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.RelativeSheafComplex.complex f n F local notation "Index" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedTruncated.FormPresheaf.Index σ instance hasFiniteBiproducts : HasFiniteBiproducts (BoundedCrystalline.Site.ModuleSheaf (p := p) (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) f n) := HasFiniteBiproducts.of_hasFiniteProducts def termIso (m : ℕ) : (K).X m ≅ (D).obj (Bounded.FiniteFreeImage.freeSheaf p k f n F (Index m)) := (S).mapIso (FormPresheaf.biproductIso p k n A C σ ρ hρ hker hbase m) ≪≫ (S).mapBiproduct (fun _ : Index m => AP) ≪≫ biproduct.mapIso (fun _ : Index m => BoundedFrame.AmbientSheaf.sheafIso f n F) ≪≫ ((D).mapBiproduct (Bounded.FiniteFreeImage.copies p k f n F (Index m))).symm abbrev Cohomology (m i : ℕ) := Abelian.Ext.{2} (BoundedCrystalline.CrystallineCohomology.constantUnit f n) ((K).X m) i def cohomologyEquiv (m i : ℕ) : Cohomology p k n A C ρ hρ hker hbase m i ≃+ Bounded.FiniteFreeImage.Cohomology p k f n F (Index m) i := (IntegralComparison.Etale.Frobenius.extIsoCongr (Crystalline.ExactRestriction.Coeff (B := WittVector p k)) (Iso.refl _) (termIso p k n A C σ ρ hρ hker hbase m) i).toAddEquiv include σ in omit [Fintype k] in theorem positive_cohomology_zero (m i : ℕ) : Subsingleton (Cohomology p k n A C ρ hρ hker hbase m (i + 1)) := by have := Bounded.FiniteFreeImage.positive_cohomology_zero p k f n F (Index m) i exact (cohomologyEquiv p k n A C σ ρ hρ hker hbase m (i + 1)).toEquiv.subsingleton def degreeZeroEquiv (m : ℕ) : Cohomology p k n A C ρ hρ hker hbase m 0 ≃+ (Index m → ULift.{1} (F).obj.ring) := (cohomologyEquiv p k n A C σ ρ hρ hker hbase m 0).trans (Bounded.FiniteFreeImage.degreeZeroEquiv p k f n F (Index m)) end end OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedTruncated.AcyclicTerms