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.CanonicalCover |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.IntrinsicCoordinates |
| 3 | |
| 4 | /-! # Intrinsic Recovery -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.IntrinsicRecovery.Intrinsic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Recovery on the selected native principal open through the actual |
| 11 | transported canonical complementary and common covers. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenRestriction OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CanonicalCover |
| 17 | |
| 18 | private theorem recover {A B C D E : AddCommGrpCat} |
| 19 | (r : A ⟶ B) (l : B ⟶ E) (a : A ⟶ C) (s : C ⟶ D) (n : D ⟶ E) |
| 20 | (w : A ⟶ E) (x : A) (h : r ≫ l = a ≫ s ≫ n) (hx : w x = l (r x)) : |
| 21 | w x = n (s (a x)) := |
| 22 | hx.trans (ConcreteCategory.congr_hom h x) |
| 23 | |
| 24 | variable {Y X Z : Scheme.{0}} [Y.IsSeparated] (f : Y ⟶ X) (i : X ⟶ Z) |
| 25 | [IsAffineHom (f ≫ i)] (U : Z.Opens) (hU : IsAffineOpen U) |
| 26 | {g : ℕ} (t : Fin g → Γ(Z,U)) (N : Y.Modules) [N.IsQuasicoherent] |
| 27 | (z : Γ(Y,(f ≫ i) ⁻¹ᵁ U)) (O₁ O₂ : Y.Opens) |
| 28 | (H : Principal.InjectiveIntegerRows.SingleSupportedCandidate.Conditions |
| 29 | (OpenReindex.wideOpens (f ≫ i) U hU) (OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 30 | (PrincipalPoint.Fraction.family U t) O₁ O₂) |
| 31 | (hza : IsAffineOpen (Y.basicOpen z)) (hZU : Y.basicOpen z ≤ (f ≫ i) ⁻¹ᵁ U) |
| 32 | (c n : ℕ) {μ : Type} [LinearOrder μ] (V : μ → Y.Opens) |
| 33 | (hV : iSup V = ⊤) (haV : ∀ j, IsAffineOpen (V j)) |
| 34 | |
| 35 | private abbrev family := PrincipalPoint.Fraction.family U t |
| 36 | private abbrev geometric := OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z) |
| 37 | private abbrev nativeFamily := |
| 38 | (OpenReindex.reindex (f ≫ i) U (Y.basicOpen z) hZU).obj ∘ family U t |
| 39 | private abbrev single := Affine.OrderedInjective.Comparison.sourcePresheaf N c |
| 40 | private abbrev forgetScalars : ModuleCat.{0} Γ(Z,U) ⥤ AddCommGrpCat := forget₂ _ _ |
| 41 | private abbrev group := (OpenRestriction.supportedFunctor U (family U t) c (n+c)).obj |
| 42 | (OpenFixedClass.source f i U hU N) |
| 43 | |
| 44 | local instance native_tuples : ∀ (d : ℕ) (a : Fin (d+1) → ULift (Fin g)), |
| 45 | PreservesLimit (Discrete.functor (nativeFamily f i U t z hZU ∘ a)) (Principal.AdditiveSections.opens (Y.basicOpen z) hza) := |
| 46 | fun _ a => AffinePrincipal.Products.preserves Y (Y.basicOpen z) hza |
| 47 | (nativeFamily f i U t z hZU ∘ a) |
| 48 | |
| 49 | def nativeComparison : |
| 50 | (AffinePrincipal.Injective.Comparison.source (Principal.AdditiveSections.opens (Y.basicOpen z) hza) |
| 51 | (nativeFamily f i U t z hZU) N c).homology (n+c) ⟶ |
| 52 | (Affine.OrderedInjective.Comparison.source N c V).homology (n+c) := by |
| 53 | letI := Principal.CanonicalRefinement.relative_source (geometric f i U hU z) |
| 54 | (family U t) O₂ H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover N c (n+c) |
| 55 | letI := Principal.CanonicalRefinement.ordered_source (geometric f i U hU z) |
| 56 | O₂ H.selected.wide_affine H.selected.wide_global V hV haV N c (n+c) |
| 57 | letI := Intrinsic.IntrinsicComparison.native_isIso (f ≫ i) U hU (Y.basicOpen z) hza hZU |
| 58 | (single N c) (Principal.CanonicalCover.complementary O₂) (Principal.CanonicalCover.localCover (geometric f i U hU z) (family U t) O₂) |
| 59 | (Principal.CanonicalCover.localRight (geometric f i U hU z) (family U t) O₂) (n+c) |
| 60 | exact Principal.PresheafCover.Comparison.comparison (Principal.AdditiveSections.opens (Y.basicOpen z) hza) |
| 61 | (nativeFamily f i U t z hZU) (Principal.CanonicalCover.complementary O₂) |
| 62 | (Principal.CanonicalCover.localCover (geometric f i U hU z) (family U t) O₂) |
| 63 | (Intrinsic.IntrinsicComparison.localRefinement (f ≫ i) U hU (Y.basicOpen z) hza hZU t |
| 64 | (Principal.CanonicalCover.localCover (geometric f i U hU z) (family U t) O₂) |
| 65 | (Principal.CanonicalCover.localLeft (geometric f i U hU z) (family U t) O₂)) |
| 66 | (Principal.CanonicalCover.localRight (geometric f i U hU z) (family U t) O₂) |
| 67 | V (Principal.CanonicalCover.globalCover (geometric f i U hU z) O₂ V) |
| 68 | (Intrinsic.IntrinsicComparison.globalRefinement (f ≫ i) U hU (Y.basicOpen z) hza hZU |
| 69 | (Principal.CanonicalCover.complementary O₂) (Principal.CanonicalCover.globalCover (geometric f i U hU z) O₂ V) |
| 70 | (Principal.CanonicalCover.globalLeft (geometric f i U hU z) O₂ V)) |
| 71 | (Principal.CanonicalCover.globalRight (geometric f i U hU z) O₂ V) (single N c) (n+c) |
| 72 | |
| 73 | omit [IsAffineHom (f ≫ i)] in |
| 74 | theorem comparison : |
| 75 | homologyMap (Intrinsic.IntrinsicComparison.sourceIso (f ≫ i) U hU |
| 76 | (Y.basicOpen z) hza hZU t (single N c)).hom (n+c) ≫ |
| 77 | nativeComparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV = |
| 78 | Principal.CanonicalSupportCover.comparison (geometric f i U hU z) (family U t) |
| 79 | O₂ H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover |
| 80 | H.selected.wide_global N c V hV haV (n+c) := by |
| 81 | let := Principal.CanonicalRefinement.relative_source (geometric f i U hU z) |
| 82 | (family U t) O₂ H.selected.wide_affine H.selected.wide_punctured H.selected.wide_cover N c (n+c) |
| 83 | let := Principal.CanonicalRefinement.ordered_source (geometric f i U hU z) |
| 84 | O₂ H.selected.wide_affine H.selected.wide_global V hV haV N c (n+c) |
| 85 | exact Intrinsic.IntrinsicComparison.comparison (f ≫ i) U hU (Y.basicOpen z) hza hZU t |
| 86 | (single N c) (Principal.CanonicalCover.complementary O₂) (Principal.CanonicalCover.localCover (geometric f i U hU z) (family U t) O₂) |
| 87 | (Principal.CanonicalCover.localLeft (geometric f i U hU z) (family U t) O₂) |
| 88 | (Principal.CanonicalCover.localRight (geometric f i U hU z) (family U t) O₂) |
| 89 | V (Principal.CanonicalCover.globalCover (geometric f i U hU z) O₂ V) |
| 90 | (Principal.CanonicalCover.globalLeft (geometric f i U hU z) O₂ V) (Principal.CanonicalCover.globalRight (geometric f i U hU z) O₂ V) (n+c) |
| 91 | |
| 92 | omit [IsAffineHom (f ≫ i)] in |
| 93 | theorem restriction_comparison : |
| 94 | (forgetScalars U).map (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c)) ≫ |
| 95 | CanonicalCover.localComparison f i U hU t N z O₁ O₂ H c n V hV haV = |
| 96 | (SupportedCoordinates.wideIso f i U hU (family U t) N c (n+c)).hom ≫ |
| 97 | homologyMap (IntrinsicCoordinates.Intrinsic.sourceMap (f ≫ i) U hU |
| 98 | (Y.basicOpen z) hza hZU N t c) (n+c) ≫ |
| 99 | nativeComparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV := by |
| 100 | dsimp only [CanonicalCover.localComparison] |
| 101 | rw [← comparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV] |
| 102 | simp only [← Category.assoc] |
| 103 | rw [SupportedCoordinates.restriction_square] |
| 104 | simp only [IntrinsicCoordinates.Intrinsic.sourceMap, homologyMap_comp, Category.assoc] |
| 105 | rfl |
| 106 | |
| 107 | theorem recovery (x : group f i U hU t N c n) |
| 108 | (hx : (OpenRestriction.supportedFunctor U (family U t) c (n+c)).map |
| 109 | (OpenFixedClass.scalar f i U hU N z) x = x) : |
| 110 | CanonicalCover.wideComparison f i U hU t N z O₁ O₂ H c n V hV haV x = |
| 111 | nativeComparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV |
| 112 | (homologyMap (IntrinsicCoordinates.Intrinsic.sourceMap (f ≫ i) U hU |
| 113 | (Y.basicOpen z) hza hZU N t c) (n+c) |
| 114 | ((SupportedCoordinates.wideIso f i U hU (family U t) N c (n+c)).hom x)) := by |
| 115 | exact recover |
| 116 | ((forgetScalars U).map (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c))) |
| 117 | (CanonicalCover.localComparison f i U hU t N z O₁ O₂ H c n V hV haV) |
| 118 | (SupportedCoordinates.wideIso f i U hU (family U t) N c (n+c)).hom |
| 119 | (homologyMap (IntrinsicCoordinates.Intrinsic.sourceMap (f ≫ i) U hU |
| 120 | (Y.basicOpen z) hza hZU N t c) (n+c)) |
| 121 | (nativeComparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV) |
| 122 | (CanonicalCover.wideComparison f i U hU t N z O₁ O₂ H c n V hV haV) |
| 123 | x (restriction_comparison f i U hU t N z O₁ O₂ H hza hZU c n V hV haV) |
| 124 | (CanonicalCover.recovery f i U hU t N z O₁ O₂ H c n V hV haV x hx) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.IntrinsicRecovery.Intrinsic |