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.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.PushforwardCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.Coefficient |
| 3 | |
| 4 | /-! # Source -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.Source.ReferenceComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original principal comparison, with its genuine base-cohomology |
| 11 | output, agrees with the source single-sheaf comparison under the actual |
| 12 | ordered pushforward coordinates. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | private theorem paste {C : Type*} [Category C] {A B D E F : C} |
| 18 | (a : A ⟶ B) (b : B ⟶ D) (x : D ⟶ E) (y : E ⟶ F) (u : B ⟶ E) (v : A ⟶ F) |
| 19 | (ho : b ≫ x = u) (hs : (a ≫ u) ≫ y = v) : (a ≫ b) ≫ (x ≫ y) = v := by |
| 20 | rw [Category.assoc, ← Category.assoc b x y, ho] |
| 21 | simpa only [Category.assoc] using hs |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.RelativeConcentration |
| 24 | variable {Y X Z Q S : Scheme.{0}} [Z.IsSeparated] |
| 25 | (f : Y ⟶ X) (i : X ⟶ Z) (π : Z ⟶ S) |
| 26 | (U : Z.Opens) (hU : IsAffineOpen U) |
| 27 | {ι κ ν : Type} [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] |
| 28 | (W : ι → Principal.SectionPresheaf.Index U) (a : Q ⟶ Z) [IsClosedImmersion a] (haU : ⊤ ≤ a ⁻¹ᵁ U) |
| 29 | (J : ν → Z.Opens) |
| 30 | (r : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk ι (Principal.RelativeConcentration.family U hU W)) |
| 31 | (s : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk |
| 32 | (ComplementaryAffineCover.Index (SectionIdealPuncturedCover.outside a.ker)) |
| 33 | (ComplementaryAffineCover.opens (SectionIdealPuncturedCover.outside a.ker))) |
| 34 | (V : κ → Z.Opens) (hV : iSup V = ⊤) (haV : ∀ j, IsAffineOpen (V j)) |
| 35 | (N : Y.Modules) [(PrincipalSource.OpenRestriction.image f i N).IsQuasicoherent] |
| 36 | (c g : ℕ) |
| 37 | |
| 38 | abbrev image := PrincipalSource.OpenRestriction.image f i N |
| 39 | abbrev complement := ComplementaryAffineCover.opens (SectionIdealPuncturedCover.outside a.ker) |
| 40 | abbrev globalCover := PointComplementGlobalCover.common a (Principal.RelativeConcentration.ambient U hU) V |
| 41 | abbrev globalLeft := PointComplementGlobalCover.left a (Principal.RelativeConcentration.ambient U hU) V |
| 42 | abbrev globalRight := PointComplementGlobalCover.right a (Principal.RelativeConcentration.ambient U hU) V |
| 43 | abbrev original := Principal.NestedPushforward.original f i N c |
| 44 | |
| 45 | local instance single_qc (k : ℕ) : |
| 46 | (((single Z.Modules (.up ℕ) c).obj (image f i N)).X k).IsQuasicoherent := |
| 47 | QuasicoherentTruncation.single (image f i N) c k |
| 48 | |
| 49 | variable [IsIso (RelativeCech.Refinement.homology (Principal.RelativeConcentration.ambient U hU) (complement a) J s |
| 50 | (original f i N c) (g+c))] |
| 51 | |
| 52 | include haU hV haV in |
| 53 | private theorem global_isIso : |
| 54 | IsIso (homologyMap (OrderedCech.Refinement.totalMap V (globalCover U hU a V) |
| 55 | (globalRight U hU a V) (original f i N c)) (g+c)) := |
| 56 | Additive.OrderedCoverRefinement.homology_isIso V (globalCover U hU a V) |
| 57 | (globalRight U hU a V) hV |
| 58 | (PointComplementGlobalCover.common_covers a (Principal.RelativeConcentration.ambient U hU) |
| 59 | (CoverTransfer.Reference.contains U hU a haU) V hV) |
| 60 | haV (PointComplementGlobalCover.common_affine a (Principal.RelativeConcentration.ambient U hU) (Principal.RelativeConcentration.ambient_affine U hU) V haV) |
| 61 | ((single Z.Modules (.up ℕ) c).obj (image f i N)) (g+c) |
| 62 | |
| 63 | def originalMap := |
| 64 | PrincipalSource.PushforwardCoordinates.localCoordinates f i U hU W N c g ≫ |
| 65 | SingleBaseCoordinates.Reference.coefficientComparison π U hU W a haU J r s V hV haV |
| 66 | (image f i N) c g (g+c) rfl |
| 67 | |
| 68 | def sourceOutput := |
| 69 | (IntrinsicOrdered.SingleAdditiveCoordinates.Intrinsic.coefficientIso π V (image f i N) g).hom ≫ |
| 70 | PrincipalSource.PushforwardCoordinates.outputCoordinates f i V N c g |
| 71 | |
| 72 | def sourceComparison := by |
| 73 | letI := global_isIso f i U hU a haU V hV haV N c g |
| 74 | exact PrincipalSource.PushforwardCoordinates.sourceComparison f i U hU W (complement a) J r s |
| 75 | V (globalCover U hU a V) (globalLeft U hU a V) (globalRight U hU a V) N c g |
| 76 | |
| 77 | theorem comparison : |
| 78 | originalMap f i π U hU W a haU J r s V hV haV N c g ≫ sourceOutput f i π V N c g = |
| 79 | (PrincipalSource.SupportedCoordinates.wideIso f i U hU W N c (g+c)).hom ≫ |
| 80 | sourceComparison f i U hU W a haU J r s V hV haV N c g := by |
| 81 | let := global_isIso f i U hU a haU V hV haV N c g |
| 82 | have ho := Coefficient.Reference.comparison π U hU W a haU J r s V hV haV |
| 83 | (image f i N) c g (g+c) rfl |
| 84 | have hs := PrincipalSource.PushforwardCoordinates.comparison f i U hU W (complement a) J r s |
| 85 | V (globalCover U hU a V) (globalLeft U hU a V) (globalRight U hU a V) N c g |
| 86 | exact paste _ _ _ _ _ _ ho hs |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.Source.ReferenceComparison |