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.Principal.SingleSameSupport |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.IntrinsicCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.SupportConditions |
| 4 | |
| 5 | /-! # Same Support Intrinsic -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SameSupportIntrinsic.Intrinsic |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Restricting to any affine neighborhood of the same support gives |
| 12 | the literal native principal comparison for every original class. -/ |
| 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 | open OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CanonicalCover |
| 17 | |
| 18 | variable {Y Z : Scheme.{0}} [Y.IsSeparated] (π : Y ⟶ Z) [IsAffineHom π] |
| 19 | (U : Z.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V) |
| 20 | (hVU : V ≤ π ⁻¹ᵁ U) {g : ℕ} (t : Fin g → Γ(Z,U)) |
| 21 | (O : Y.Opens) |
| 22 | (H : InjectiveIntegerRows.SingleSupportedCandidate.Conditions (PrincipalSource.OpenReindex.wideOpens π U hU) |
| 23 | (PrincipalSource.OpenReindex.geometricOpens π U hU V) (PrincipalPoint.Fraction.family U t) O O) |
| 24 | (N : Y.Modules) [N.IsQuasicoherent] (c q : ℕ) |
| 25 | {μ : Type} [LinearOrder μ] (A : μ → Y.Opens) |
| 26 | (hA : iSup A = ⊤) (haA : ∀ j, IsAffineOpen (A j)) |
| 27 | |
| 28 | private abbrev family := PrincipalPoint.Fraction.family U t |
| 29 | private abbrev geometric := PrincipalSource.OpenReindex.geometricOpens π U hU V |
| 30 | private abbrev nativeFamily := (PrincipalSource.OpenReindex.reindex π U V hVU).obj ∘ family U t |
| 31 | private abbrev single := Affine.OrderedInjective.Comparison.sourcePresheaf N c |
| 32 | |
| 33 | local instance native_tuples : ∀ (d : ℕ) (a : Fin (d+1) → ULift (Fin g)), |
| 34 | PreservesLimit (Discrete.functor (nativeFamily π U V hVU t ∘ a)) |
| 35 | (AdditiveSections.opens V hV) := |
| 36 | fun _ a => AffinePrincipal.Products.preserves Y V hV (nativeFamily π U V hVU t ∘ a) |
| 37 | |
| 38 | def nativeComparison : |
| 39 | (AffinePrincipal.Injective.Comparison.source (AdditiveSections.opens V hV) |
| 40 | (nativeFamily π U V hVU t) N c).homology q ⟶ |
| 41 | (Affine.OrderedInjective.Comparison.source N c A).homology q := by |
| 42 | letI := CanonicalRefinement.relative_source (geometric π U hU V) |
| 43 | (family U t) O H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover N c q |
| 44 | letI := CanonicalRefinement.ordered_source (geometric π U hU V) |
| 45 | O H.selected.wide_affine H.selected.wide_global A hA haA N c q |
| 46 | letI := PrincipalSource.Intrinsic.IntrinsicComparison.native_isIso π U hU V hV hVU |
| 47 | (single N c) (CanonicalCover.complementary O) (CanonicalCover.localCover (geometric π U hU V) (family U t) O) |
| 48 | (CanonicalCover.localRight (geometric π U hU V) (family U t) O) q |
| 49 | exact PresheafCover.Comparison.comparison (AdditiveSections.opens V hV) |
| 50 | (nativeFamily π U V hVU t) (CanonicalCover.complementary O) |
| 51 | (CanonicalCover.localCover (geometric π U hU V) (family U t) O) |
| 52 | (PrincipalSource.Intrinsic.IntrinsicComparison.localRefinement π U hU V hV hVU t |
| 53 | (CanonicalCover.localCover (geometric π U hU V) (family U t) O) |
| 54 | (CanonicalCover.localLeft (geometric π U hU V) (family U t) O)) |
| 55 | (CanonicalCover.localRight (geometric π U hU V) (family U t) O) |
| 56 | A (CanonicalCover.globalCover (geometric π U hU V) O A) |
| 57 | (PrincipalSource.Intrinsic.IntrinsicComparison.globalRefinement π U hU V hV hVU |
| 58 | (CanonicalCover.complementary O) (CanonicalCover.globalCover (geometric π U hU V) O A) |
| 59 | (CanonicalCover.globalLeft (geometric π U hU V) O A)) |
| 60 | (CanonicalCover.globalRight (geometric π U hU V) O A) (single N c) q |
| 61 | |
| 62 | omit [IsAffineHom π] in |
| 63 | theorem reindex_comparison : |
| 64 | homologyMap (PrincipalSource.Intrinsic.IntrinsicComparison.sourceIso π U hU V hV hVU t |
| 65 | (single N c)).hom q ≫ nativeComparison π U hU V hV hVU t O H N c q A hA haA = |
| 66 | CanonicalSupportCover.comparison (geometric π U hU V) (family U t) |
| 67 | O H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover |
| 68 | H.selected.wide_global N c A hA haA q := by |
| 69 | let := CanonicalRefinement.relative_source (geometric π U hU V) |
| 70 | (family U t) O H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover N c q |
| 71 | let := CanonicalRefinement.ordered_source (geometric π U hU V) |
| 72 | O H.selected.wide_affine H.selected.wide_global A hA haA N c q |
| 73 | exact PrincipalSource.Intrinsic.IntrinsicComparison.comparison π U hU V hV hVU t (single N c) |
| 74 | (CanonicalCover.complementary O) (CanonicalCover.localCover (geometric π U hU V) (family U t) O) |
| 75 | (CanonicalCover.localLeft (geometric π U hU V) (family U t) O) |
| 76 | (CanonicalCover.localRight (geometric π U hU V) (family U t) O) |
| 77 | A (CanonicalCover.globalCover (geometric π U hU V) O A) |
| 78 | (CanonicalCover.globalLeft (geometric π U hU V) O A) (CanonicalCover.globalRight (geometric π U hU V) O A) q |
| 79 | |
| 80 | omit [IsAffineHom π] in |
| 81 | theorem comparison : |
| 82 | CanonicalSupportCover.comparison (PrincipalSource.OpenReindex.wideOpens π U hU) (family U t) |
| 83 | O H.wide_affine H.wide_punctured H.wide_cover H.wide_global N c A hA haA q = |
| 84 | homologyMap (PrincipalSource.IntrinsicCoordinates.Intrinsic.sourceMap π U hU V hV hVU N t c) q ≫ |
| 85 | nativeComparison π U hU V hV hVU t O H N c q A hA haA := by |
| 86 | have hs := SingleSameSupport.comparison (PrincipalSource.OpenReindex.wideOpens π U hU) (geometric π U hU V) |
| 87 | (PrincipalSource.OpenReindex.geometricInclusion π U hU V) (family U t) O H N c q A hA haA |
| 88 | rw [← reindex_comparison π U hU V hV hVU t O H N c q A hA haA] at hs |
| 89 | simp only [PrincipalSource.IntrinsicCoordinates.Intrinsic.sourceMap, homologyMap_comp, Category.assoc] |
| 90 | convert hs.symm using 1; rfl |
| 91 | |
| 92 | omit [IsAffineHom π] in |
| 93 | theorem recovery (x : (AffinePrincipal.Injective.Comparison.source |
| 94 | (PrincipalSource.OpenReindex.wideOpens π U hU) (family U t) N c).homology q) : |
| 95 | CanonicalSupportCover.comparison (PrincipalSource.OpenReindex.wideOpens π U hU) (family U t) |
| 96 | O H.wide_affine H.wide_punctured H.wide_cover H.wide_global N c A hA haA q x = |
| 97 | nativeComparison π U hU V hV hVU t O H N c q A hA haA |
| 98 | (homologyMap (PrincipalSource.IntrinsicCoordinates.Intrinsic.sourceMap π U hU V hV hVU N t c) q x) := |
| 99 | ConcreteCategory.congr_hom (comparison π U hU V hV hVU t O H N c q A hA haA) x |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SameSupportIntrinsic.Intrinsic |