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.Isogenies.NeighborCounting.Intrinsic.Neighbors |
| 2 | |
| 3 | /-! # Generic Parameters -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.GenericParameters |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The generic enumeration bridge for a split block. The inputs are coordinate |
| 11 | equivalences on the actual generic points of M, E, and H_U, together with |
| 12 | the coordinate formulas for the supplied morphisms e_U and chi_f. No |
| 13 | subgroup enumeration, fiber count, or quotient-target equation is assumed. |
| 14 | The proof computes each graph/product image and obtains every subspace |
| 15 | exactly once from the previously proved classification. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCounts.Construction |
| 24 | |
| 25 | variable {F V : Type} [Field F] [AddCommGroup V] [Module F V] |
| 26 | variable {S : Scheme.{u}} {G M E : Over S} |
| 27 | |
| 28 | /-- Generic coordinates of the actual product scheme, constructed from its |
| 29 | universal property and the chosen coordinates of its two factors. -/ |
| 30 | def blockCoordinates (m : (G ⟶ M) ≃ F) (v : (G ⟶ E) ≃ V) : |
| 31 | (G ⟶ M ⊗ E) ≃ V × F where |
| 32 | toFun a := (v (a ≫ snd M E), m (a ≫ fst M E)) |
| 33 | invFun a := lift (m.symm a.2) (v.symm a.1) |
| 34 | left_inv a := by |
| 35 | apply CartesianMonoidalCategory.hom_ext <;> simp |
| 36 | right_inv a := by simp |
| 37 | |
| 38 | variable (H : Submodule F V → Over S) (e : ∀ U, H U ⟶ E) |
| 39 | variable (χ : ∀ U : Submodule F V, (U →ₗ[F] F) → (H U ⟶ M)) |
| 40 | variable (m : (G ⟶ M) ≃ F) (v : (G ⟶ E) ≃ V) |
| 41 | variable (h : ∀ U : Submodule F V, (G ⟶ H U) ≃ U) |
| 42 | variable (he : ∀ (U : Submodule F V) (a : G ⟶ H U), v (a ≫ e U) = (h U a).val) |
| 43 | variable (hχ : ∀ (U : Submodule F V) (l : U →ₗ[F] F) (a : G ⟶ H U), |
| 44 | m (a ≫ χ U l) = l (h U a)) |
| 45 | |
| 46 | def kernelPointImage (K : Intrinsic.Neighbors.KernelPresentation (M ⊗ E)) : Set (V × F) := |
| 47 | Set.range (fun a : G ⟶ K.carrier => blockCoordinates m v (a ≫ K.inclusion)) |
| 48 | |
| 49 | include he hχ in |
| 50 | lemma graph_point_coordinates (U : Submodule F V) (l : U →ₗ[F] F) (a : G ⟶ H U) : |
| 51 | blockCoordinates m v (a ≫ QuotientGraphs.graphKernel (𝟙 (M ⊗ E)) (e U) (χ U l)) = |
| 52 | ((h U a).val, l (h U a)) := by |
| 53 | change (v ((a ≫ (lift (χ U l) (e U) ≫ 𝟙 _)) ≫ snd M E), |
| 54 | m ((a ≫ (lift (χ U l) (e U) ≫ 𝟙 _)) ≫ fst M E)) = _ |
| 55 | simp only [Category.comp_id, Category.assoc, lift_snd, lift_fst] |
| 56 | exact Prod.ext (he U a) (hχ U l a) |
| 57 | |
| 58 | include h he hχ in |
| 59 | theorem generic_graph_image (U : Submodule F V) (l : U →ₗ[F] F) : |
| 60 | kernelPointImage m v ⟨H U, QuotientGraphs.graphKernel (𝟙 (M ⊗ E)) (e U) (χ U l)⟩ = |
| 61 | (SubspaceCounts.Construction.fiberGraph U l : Set (V × F)) := by |
| 62 | ext z |
| 63 | constructor |
| 64 | · rintro ⟨a, rfl⟩ |
| 65 | change blockCoordinates m v (a ≫ QuotientGraphs.graphKernel (𝟙 (M ⊗ E)) (e U) (χ U l)) ∈ |
| 66 | SubspaceCounts.Construction.fiberGraph U l |
| 67 | rw [graph_point_coordinates H e χ m v h he hχ U l a] |
| 68 | exact ⟨h U a, rfl⟩ |
| 69 | · rintro ⟨a, ha⟩ |
| 70 | refine ⟨(h U).symm a, ?_⟩ |
| 71 | change blockCoordinates m v ((h U).symm a ≫ |
| 72 | QuotientGraphs.graphKernel (𝟙 (M ⊗ E)) (e U) (χ U l)) = z |
| 73 | rw [graph_point_coordinates H e χ m v h he hχ U l ((h U).symm a), |
| 74 | Equiv.apply_symm_apply] |
| 75 | exact ha |
| 76 | |
| 77 | include he in |
| 78 | lemma mixed_point_coordinates (U : Submodule F V) (a : G ⟶ M ⊗ H U) : |
| 79 | blockCoordinates m v (a ≫ QuotientGraphs.mixedKernel (𝟙 (M ⊗ E)) (e U)) = |
| 80 | ((h U (a ≫ snd M (H U))).val, m (a ≫ fst M (H U))) := by |
| 81 | change (v ((a ≫ ((𝟙 M ⊗ₘ e U) ≫ 𝟙 _)) ≫ snd M E), |
| 82 | m ((a ≫ ((𝟙 M ⊗ₘ e U) ≫ 𝟙 _)) ≫ fst M E)) = _ |
| 83 | simp only [Category.comp_id, Category.assoc, tensorHom_snd, tensorHom_fst] |
| 84 | exact Prod.ext (he U (a ≫ snd M (H U))) rfl |
| 85 | |
| 86 | include h he in |
| 87 | theorem generic_mixed_image (U : Submodule F V) : |
| 88 | kernelPointImage m v ⟨M ⊗ H U, QuotientGraphs.mixedKernel (𝟙 (M ⊗ E)) (e U)⟩ = |
| 89 | (U.comap (LinearMap.fst F V F) : Set (V × F)) := by |
| 90 | ext z |
| 91 | constructor |
| 92 | · rintro ⟨a, rfl⟩ |
| 93 | change blockCoordinates m v (a ≫ QuotientGraphs.mixedKernel (𝟙 (M ⊗ E)) (e U)) ∈ |
| 94 | U.comap (LinearMap.fst F V F) |
| 95 | rw [mixed_point_coordinates H e m v h he U a] |
| 96 | exact (h U (a ≫ snd M (H U))).property |
| 97 | · intro hz |
| 98 | let a : G ⟶ M ⊗ H U := lift (m.symm z.2) ((h U).symm ⟨z.1, hz⟩) |
| 99 | refine ⟨a, ?_⟩ |
| 100 | change blockCoordinates m v (a ≫ QuotientGraphs.mixedKernel (𝟙 (M ⊗ E)) (e U)) = z |
| 101 | rw [mixed_point_coordinates H e m v h he U a] |
| 102 | simp only [a, lift_snd, lift_fst, Equiv.apply_symm_apply] |
| 103 | |
| 104 | include h he hχ in |
| 105 | /-- Every constructed generic kernel has exactly the indexed subspace as |
| 106 | its image. The coordinate formulas prove the enumeration identity. -/ |
| 107 | theorem generic_subspace_kernel_image (L : Submodule F (V × F)) : |
| 108 | kernelPointImage m v (Intrinsic.Neighbors.subspaceKernel H (𝟙 (M ⊗ E)) e χ L) = |
| 109 | (L : Set (V × F)) := by |
| 110 | obtain ⟨⟨U, L | L⟩, rfl⟩ := (SubspaceCounts.Construction.allSubspacesEquiv (F := F) (V := V)).surjective L |
| 111 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 112 | change kernelPointImage m v |
| 113 | ⟨H U, QuotientGraphs.graphKernel (𝟙 (M ⊗ E)) (e U) (χ U ((SubspaceCounts.Construction.disjointLiftEquiv U).symm L))⟩ = |
| 114 | (L.val : Set (V × F)) |
| 115 | rw [generic_graph_image H e χ m v h he hχ] |
| 116 | have hgraph := congrArg Subtype.val ((SubspaceCounts.Construction.disjointLiftEquiv U).apply_symm_apply L) |
| 117 | exact congrArg (fun K : Submodule F (V × F) => (K : Set (V × F))) hgraph |
| 118 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 119 | change kernelPointImage m v ⟨M ⊗ H U, QuotientGraphs.mixedKernel (𝟙 (M ⊗ E)) (e U)⟩ = |
| 120 | (L.val : Set (V × F)) |
| 121 | rw [generic_mixed_image H e m v h he] |
| 122 | exact congrArg (fun K : Submodule F (V × F) => (K : Set (V × F))) |
| 123 | (SubspaceCounts.Construction.containingLift_eq_preimage U L).symm |
| 124 | |
| 125 | include h he hχ in |
| 126 | theorem generic_subspace_kernel_image_injective : |
| 127 | Function.Injective (fun L : Submodule F (V × F) => |
| 128 | kernelPointImage m v (Intrinsic.Neighbors.subspaceKernel H (𝟙 (M ⊗ E)) e χ L)) := by |
| 129 | intro L₁ L₂ hsame |
| 130 | change kernelPointImage m v (Intrinsic.Neighbors.subspaceKernel H (𝟙 (M ⊗ E)) e χ L₁) = |
| 131 | kernelPointImage m v (Intrinsic.Neighbors.subspaceKernel H (𝟙 (M ⊗ E)) e χ L₂) at hsame |
| 132 | rw [generic_subspace_kernel_image H e χ m v h he hχ, |
| 133 | generic_subspace_kernel_image H e χ m v h he hχ] at hsame |
| 134 | exact SetLike.coe_injective hsame |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.GenericParameters |