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.AbelianScheme.TateComparison.Neighbors |
| 2 | |
| 3 | /-! # Branch Enumeration -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.BranchEnumeration.CM |
| 10 | |
| 11 | /-! Relabel the actual correspondence branches without changing their |
| 12 | target multiset. Precomposition preserves each original target map. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Neighbors |
| 16 | |
| 17 | variable {B : Scheme} {X : Over B} (C : AbelianScheme.TateComparison.Correspondences.EtaleCorrespondence X) |
| 18 | {T U : Over B} (p : U ⟶ T) (x : T ⟶ X) |
| 19 | |
| 20 | def precomposeBranch (z : C.Fiber x) : C.Fiber (p ≫ x) := |
| 21 | ⟨p ≫ z.val, (Category.assoc _ _ _).trans (congrArg (p ≫ ·) z.property)⟩ |
| 22 | |
| 23 | theorem precomposeBranch_endpoint (z : C.Fiber x) : |
| 24 | C.endpoint (precomposeBranch C p x z) = p ≫ C.endpoint z := Category.assoc _ _ _ |
| 25 | |
| 26 | theorem precomposeBranch_injective [Epi p] : Function.Injective (precomposeBranch C p x) := by |
| 27 | intro z w h |
| 28 | apply Subtype.ext |
| 29 | exact (cancel_epi p).mp (congrArg Subtype.val h) |
| 30 | |
| 31 | variable {k : Type} [Field k] [IsAlgClosed k] |
| 32 | (b : Spec (.of k) ⟶ B) (y : Over.mk b ⟶ X) |
| 33 | {I : Type} [Fintype I] (e : I ≃ C.Fiber y) |
| 34 | |
| 35 | theorem neighbors_eq_enumerated_targets : |
| 36 | C.neighbors b y = (Finset.univ : Finset I).val.map (fun i => C.endpoint (e i)) := by |
| 37 | classical |
| 38 | let : Fintype (C.Fiber y) := Fintype.ofFinite _ |
| 39 | change (Finset.univ : Finset (C.Fiber y)).val.map C.endpoint = _ |
| 40 | rw [← Multiset.map_univ_val_equiv e, Multiset.map_map] |
| 41 | rfl |
| 42 | |
| 43 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.BranchEnumeration.CM |
| 44 | |
| 45 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.BranchEnumeration.CM.TestIso |
| 46 | |
| 47 | /-! Isomorphic tests and equal source points identify the actual branch |
| 48 | fibers. The identifications preserve their actual endpoint maps. -/ |
| 49 | |
| 50 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 51 | open OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Neighbors OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.BranchEnumeration.CM |
| 52 | |
| 53 | variable {B : Scheme} {X : Over B} (C : AbelianScheme.TateComparison.Correspondences.EtaleCorrespondence X) |
| 54 | {T U : Over B} (e : U ≅ T) (x : T ⟶ X) |
| 55 | |
| 56 | def testEquiv : C.Fiber x ≃ C.Fiber (e.hom ≫ x) where |
| 57 | toFun := precomposeBranch C e.hom x |
| 58 | invFun z := ⟨e.inv ≫ z.val, by |
| 59 | rw [Category.assoc, z.property, e.inv_hom_id_assoc]⟩ |
| 60 | left_inv z := by |
| 61 | apply Subtype.ext |
| 62 | exact e.inv_hom_id_assoc z.val |
| 63 | right_inv z := by |
| 64 | apply Subtype.ext |
| 65 | exact e.hom_inv_id_assoc z.val |
| 66 | |
| 67 | theorem testEquiv_endpoint (z : C.Fiber x) : |
| 68 | C.endpoint (testEquiv C e x z) = e.hom ≫ C.endpoint z := |
| 69 | precomposeBranch_endpoint C e.hom x z |
| 70 | |
| 71 | def sourceEquiv {x₀ y₀ : T ⟶ X} (h : x₀ = y₀) : C.Fiber x₀ ≃ C.Fiber y₀ := |
| 72 | h ▸ Equiv.refl (C.Fiber x₀) |
| 73 | |
| 74 | theorem sourceEquiv_endpoint {x₀ y₀ : T ⟶ X} (h : x₀ = y₀) (z : C.Fiber x₀) : |
| 75 | C.endpoint (sourceEquiv C h z) = C.endpoint z := by |
| 76 | subst y₀ |
| 77 | rfl |
| 78 | |
| 79 | def labels {I : Type} (eLabels : I ≃ C.Fiber x) {y : U ⟶ X} (hy : e.hom ≫ x = y) : |
| 80 | I ≃ C.Fiber y := eLabels.trans ((testEquiv C e x).trans (sourceEquiv C hy)) |
| 81 | |
| 82 | theorem labels_endpoint {I : Type} (eLabels : I ≃ C.Fiber x) {y : U ⟶ X} |
| 83 | (hy : e.hom ≫ x = y) (i : I) : |
| 84 | C.endpoint (labels C e x eLabels hy i) = e.hom ≫ C.endpoint (eLabels i) := |
| 85 | (sourceEquiv_endpoint C hy (testEquiv C e x (eLabels i))).trans |
| 86 | (testEquiv_endpoint C e x (eLabels i)) |
| 87 | |
| 88 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.BranchEnumeration.CM.TestIso |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI |