Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor.AffineScheme |
| 2 | |
| 3 | /-! # Finite Sheaf Representation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.FiniteSheafRepresentation.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Completion: affine descent for an actual sheaf with a finite constant local representative |
| 11 | |
| 12 | This version of the proved descent construction accepts the local representing |
| 13 | isomorphism directly, so it also applies to torsors restricted from a larger base. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u w |
| 22 | |
| 23 | variable {R S : Type u} [CommRing R] [CommRing S] |
| 24 | (f : R →+* S) (hf : WeaklyEtale (Spec.map (CommRingCat.ofHom f))) |
| 25 | (ℓ n : ℕ) [NeZero (ℓ ^ n)] |
| 26 | (F : Sheaf (Scheme.ProEt.topology (Spec (CommRingCat.of R))) (Type (max w u))) |
| 27 | (rep : ((Over.forget (CoverObject.Construction.affineCoverObject f hf)).op ⋙ F.obj).RepresentableBy |
| 28 | (FiniteTorsor.Local.Construction.finiteCoefficientSlice ℓ n (CoverObject.Construction.affineCoverObject f hf))) |
| 29 | |
| 30 | /-- The supplied local representing isomorphism on the affine objects over the cover. -/ |
| 31 | def affineSheafLocalRepresentative : |
| 32 | ((CoverObject.Construction.affineAlgebraToSlice f hf).op ⋙ (Over.forget (CoverObject.Construction.affineCoverObject f hf)).op ⋙ F.obj).RepresentableBy |
| 33 | (op (ProEtale.Slice.Construction.finiteCoefficientAlgebra ℓ n S)) := by |
| 34 | let rep' := rep.ofIsoObj (FiniteTorsor.AffineDescent.Construction.finiteCoefficientSliceAlgebraIso f hf ℓ n) |
| 35 | exact { |
| 36 | homEquiv := (CoverObject.Construction.affineAlgebraToSliceFullyFaithful f hf).homEquiv.trans rep'.homEquiv |
| 37 | homEquiv_comp g h := by |
| 38 | change rep'.homEquiv ((CoverObject.Construction.affineAlgebraToSlice f hf).map (g ≫ h)) = _ |
| 39 | rw [CategoryTheory.Functor.map_comp, rep'.homEquiv_comp] |
| 40 | rfl } |
| 41 | |
| 42 | /-- The actual local sheaf values are corepresented by the finite coefficient algebra. -/ |
| 43 | def affineSheafLocalCorepresentative : |
| 44 | (SiteValues.Construction.affineSliceValues f hf F.obj).CorepresentableBy (ProEtale.Slice.Construction.finiteCoefficientAlgebra ℓ n S) where |
| 45 | homEquiv := { |
| 46 | toFun g := (affineSheafLocalRepresentative f hf ℓ n F rep).homEquiv g.op |
| 47 | invFun t := ((affineSheafLocalRepresentative f hf ℓ n F rep).homEquiv.symm t).unop |
| 48 | left_inv g := congrArg Quiver.Hom.unop |
| 49 | ((affineSheafLocalRepresentative f hf ℓ n F rep).homEquiv.symm_apply_apply g.op) |
| 50 | right_inv t := (affineSheafLocalRepresentative f hf ℓ n F rep).homEquiv.apply_symm_apply t } |
| 51 | homEquiv_comp g h := by |
| 52 | simpa only [op_comp] using! |
| 53 | (affineSheafLocalRepresentative f hf ℓ n F rep).homEquiv_comp g.op h.op |
| 54 | |
| 55 | /-- The local corepresentative for scalar restriction of the actual affine values. -/ |
| 56 | def affineSheafRestrictedCorepresentative : |
| 57 | (ProEtale.AlgebraBaseChange.Construction.proEtaleAlgebraRestrict f hf ⋙ SiteValues.Construction.proEtaleAffineValues F.obj).CorepresentableBy |
| 58 | (ProEtale.Slice.Construction.finiteCoefficientAlgebra ℓ n S) := |
| 59 | (affineSheafLocalCorepresentative f hf ℓ n F rep).ofIso (SiteValues.Construction.affineSliceValuesIso f hf F.obj) |
| 60 | |
| 61 | variable (hflat : f.FaithfullyFlat) |
| 62 | |
| 63 | /-- The actual descended algebra of the locally represented sheaf. -/ |
| 64 | def affineSheafDescendedAlgebra : CommAlgCat.{u} R := |
| 65 | DescentData.Construction.affineRepresentativeDescended f hf (SiteValues.Construction.proEtaleAffineValues F.obj) |
| 66 | (affineSheafRestrictedCorepresentative f hf ℓ n F rep) hflat |
| 67 | |
| 68 | theorem affineSheafDescendedAlgebra_finite : |
| 69 | Module.Finite R (affineSheafDescendedAlgebra f hf ℓ n F rep hflat) := |
| 70 | DescentFiniteEtale.Construction.affineRepresentativeDescended_finite f hf ℓ n (SiteValues.Construction.proEtaleAffineValues F.obj) |
| 71 | (affineSheafRestrictedCorepresentative f hf ℓ n F rep) hflat |
| 72 | |
| 73 | theorem affineSheafDescendedAlgebra_etale : |
| 74 | Algebra.Etale R (affineSheafDescendedAlgebra f hf ℓ n F rep hflat) := |
| 75 | DescentFiniteEtale.Construction.affineRepresentativeDescended_etale f hf ℓ n (SiteValues.Construction.proEtaleAffineValues F.obj) |
| 76 | (affineSheafRestrictedCorepresentative f hf ℓ n F rep) hflat |
| 77 | |
| 78 | /-- The descended algebra is an object of the actual affine site. -/ |
| 79 | def affineSheafDescendedSiteAlgebra : ProEtale.Algebras.Construction.ProEtaleAlgebra R := by |
| 80 | have h : Algebra.Etale R (affineSheafDescendedAlgebra f hf ℓ n F rep hflat) := |
| 81 | affineSheafDescendedAlgebra_etale f hf ℓ n F rep hflat |
| 82 | have : Etale (Spec.map (CommRingCat.ofHom (algebraMap R |
| 83 | (affineSheafDescendedAlgebra f hf ℓ n F rep hflat)))) := |
| 84 | (HasRingHomProperty.Spec_iff (P := @Etale)).mpr (RingHom.etale_algebraMap.mpr h) |
| 85 | exact ⟨affineSheafDescendedAlgebra f hf ℓ n F rep hflat, by |
| 86 | change WeaklyEtale (Spec.map (CommRingCat.ofHom (algebraMap R |
| 87 | (affineSheafDescendedAlgebra f hf ℓ n F rep hflat)))) |
| 88 | infer_instance⟩ |
| 89 | |
| 90 | /-- Actual sections and actual algebra descent identify the affine corepresentative. -/ |
| 91 | def affineSheafDescendedCorepresentative : |
| 92 | (SiteValues.Construction.proEtaleAffineValues F.obj).CorepresentableBy (affineSheafDescendedSiteAlgebra f hf ℓ n F rep hflat) := |
| 93 | CorepresentableEffectiveDescent.Construction.descendedCorepresentative (ProEtale.AlgebraBaseChange.Construction.proEtaleAlgebraAdj f hf) (SiteValues.Construction.proEtaleAffineValues F.obj) |
| 94 | (affineSheafRestrictedCorepresentative f hf ℓ n F rep) |
| 95 | (ProEtale.DescentComparison.Construction.proEtaleComparisonFullyFaithful f hf hflat) |
| 96 | (SheafDescent.Construction.proEtaleAffineSectionToDescent_bijective f hf hflat F) |
| 97 | (ProEtale.DescentComparison.Construction.proEtaleComparisonIso f hf (CommDescentObject.Construction.descendedCommAlgebraCounit f hflat |
| 98 | (DescentData.Construction.affineRepresentativeCoalgebra f hf (SiteValues.Construction.proEtaleAffineValues F.obj) |
| 99 | (affineSheafRestrictedCorepresentative f hf ℓ n F rep)))) |
| 100 | |
| 101 | /-- The same representing bijection on the spectrum subcategory. -/ |
| 102 | def affineSheafDescendedRestrictedRepresentative : |
| 103 | ((ProEtale.Algebras.Construction.proEtaleAlgebraSpec R).op ⋙ F.obj).RepresentableBy |
| 104 | (op (affineSheafDescendedSiteAlgebra f hf ℓ n F rep hflat)) where |
| 105 | homEquiv := { |
| 106 | toFun g := (affineSheafDescendedCorepresentative f hf ℓ n F rep hflat).homEquiv g.unop |
| 107 | invFun t := ((affineSheafDescendedCorepresentative f hf ℓ n F rep hflat).homEquiv.symm t).op |
| 108 | left_inv g := congrArg Quiver.Hom.op |
| 109 | ((affineSheafDescendedCorepresentative f hf ℓ n F rep hflat).homEquiv.symm_apply_apply g.unop) |
| 110 | right_inv t := (affineSheafDescendedCorepresentative f hf ℓ n F rep hflat).homEquiv.apply_symm_apply t } |
| 111 | homEquiv_comp g h := by |
| 112 | simpa only [unop_comp] using! |
| 113 | (affineSheafDescendedCorepresentative f hf ℓ n F rep hflat).homEquiv_comp g.unop h.unop |
| 114 | |
| 115 | /-- The actual sheaf is represented on the whole site by the descended spectrum. -/ |
| 116 | def affineSheafDescendedRepresentative : |
| 117 | F.obj.RepresentableBy ((ProEtale.Algebras.Construction.proEtaleAlgebraSpec R).obj |
| 118 | (op (affineSheafDescendedSiteAlgebra f hf ℓ n F rep hflat))) := by |
| 119 | have := SiteDensity.Construction.proEtaleAlgebraSpecCoverDense R |
| 120 | exact DenseRepresentation.Construction.representableByOfCoverDense.{u + 1, u, u + 1, u, w} |
| 121 | (ProEtale.Algebras.Construction.proEtaleAlgebraSpec R) (ProEtale.Algebras.Construction.proEtaleAlgebraSpecFullyFaithful (R := R)) |
| 122 | (Scheme.ProEt.topology (Spec (CommRingCat.of R))) F |
| 123 | (affineSheafDescendedRestrictedRepresentative f hf ℓ n F rep hflat) |
| 124 | |
| 125 | include rep hflat in |
| 126 | /-- A finite constant local representative descends to a finite étale representative. -/ |
| 127 | theorem exists_affineSheaf_finiteEtale_representative : |
| 128 | ∃ T : (Spec (CommRingCat.of R)).ProEt, |
| 129 | IsFinite T.hom ∧ Etale T.hom ∧ Nonempty (F.obj.RepresentableBy T) := by |
| 130 | refine ⟨(ProEtale.Algebras.Construction.proEtaleAlgebraSpec R).obj (op (affineSheafDescendedSiteAlgebra f hf ℓ n F rep hflat)), |
| 131 | ?_, ?_, ⟨affineSheafDescendedRepresentative f hf ℓ n F rep hflat⟩⟩ |
| 132 | · exact (IsFinite.SpecMap_iff _).mpr (RingHom.finite_algebraMap.mpr |
| 133 | (affineSheafDescendedAlgebra_finite f hf ℓ n F rep hflat)) |
| 134 | · exact (HasRingHomProperty.Spec_iff (P := @Etale)).mpr (RingHom.etale_algebraMap.mpr |
| 135 | (affineSheafDescendedAlgebra_etale f hf ℓ n F rep hflat)) |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.FiniteSheafRepresentation.Construction |