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 Mathlib.LinearAlgebra.Prod |
| 2 | import Mathlib.LinearAlgebra.Isomorphisms |
| 3 | |
| 4 | /-! # Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quotient.Charts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Explicit coordinates for quotient-module charts used in Grassmannian parameter spaces. -/ |
| 11 | |
| 12 | universe u v w |
| 13 | |
| 14 | variable (R : Type u) [Ring R] (U : Type v) (V : Type w) |
| 15 | [AddCommGroup U] [AddCommGroup V] [Module R U] [Module R V] |
| 16 | |
| 17 | /-- A quotient lies in this chart when the first summand maps isomorphically onto it. -/ |
| 18 | def QuotientChart := |
| 19 | {N : Submodule R (U × V) // Function.Bijective (N.mkQ.comp (LinearMap.inl R U V))} |
| 20 | |
| 21 | namespace QuotientChart |
| 22 | |
| 23 | variable {R U V} |
| 24 | |
| 25 | /-- The first summand provides the canonical frame of a quotient in the chart. -/ |
| 26 | def frame (c : QuotientChart R U V) : U ≃ₗ[R] ((U × V) ⧸ c.val) := |
| 27 | LinearEquiv.ofBijective (c.val.mkQ.comp (LinearMap.inl R U V)) c.property |
| 28 | |
| 29 | @[simp] |
| 30 | theorem frame_apply (c : QuotientChart R U V) (u : U) : |
| 31 | c.frame u = c.val.mkQ (u, 0) := rfl |
| 32 | |
| 33 | /-- The second summand is expressed in the frame supplied by the first summand. -/ |
| 34 | def coordinates (c : QuotientChart R U V) : V →ₗ[R] U := |
| 35 | c.frame.symm.toLinearMap.comp (c.val.mkQ.comp (LinearMap.inr R U V)) |
| 36 | |
| 37 | /-- Every quotient class is the sum of its two coordinate contributions. -/ |
| 38 | theorem frame_symm_mkQ (c : QuotientChart R U V) (u : U) (v : V) : |
| 39 | c.frame.symm (c.val.mkQ (u, v)) = u + c.coordinates v := by |
| 40 | have he : (u, v) = (u, (0 : V)) + ((0 : U), v) := by simp |
| 41 | rw [he, map_add, map_add] |
| 42 | change c.frame.symm (c.frame u) + c.coordinates v = _ |
| 43 | rw [c.frame.symm_apply_apply] |
| 44 | |
| 45 | /-- A linear map specifies a quotient chart point by the kernel of its split projection. -/ |
| 46 | def ofCoordinates (L : V →ₗ[R] U) : QuotientChart R U V := by |
| 47 | let f : U × V →ₗ[R] U := LinearMap.id.coprod L |
| 48 | have hf : Function.Surjective f := fun u => ⟨(u, 0), by simp [f]⟩ |
| 49 | let e := f.quotKerEquivOfSurjective hf |
| 50 | have he (u : U) : e (f.ker.mkQ (u, 0)) = u := by simp [e, f] |
| 51 | refine ⟨f.ker, ?_, ?_⟩ |
| 52 | · intro u v huv |
| 53 | exact (he u).symm.trans ((congrArg e huv).trans (he v)) |
| 54 | · intro q |
| 55 | refine ⟨e q, e.injective ?_⟩ |
| 56 | exact he (e q) |
| 57 | |
| 58 | /-- The kernel of a quotient in the chart is determined by its coordinate map. -/ |
| 59 | theorem kernel_eq (c : QuotientChart R U V) : |
| 60 | c.val = (LinearMap.id.coprod c.coordinates).ker := by |
| 61 | ext x |
| 62 | change x ∈ c.val ↔ x.1 + c.coordinates x.2 = 0 |
| 63 | rw [← Submodule.Quotient.mk_eq_zero] |
| 64 | exact (c.frame.symm.map_eq_zero_iff).symm.trans |
| 65 | (Iff.of_eq (congrArg (fun u : U => u = 0) (c.frame_symm_mkQ x.1 x.2))) |
| 66 | |
| 67 | /-- Reconstructing a quotient from its coordinates recovers the original submodule. -/ |
| 68 | theorem ofCoordinates_coordinates (c : QuotientChart R U V) : |
| 69 | ofCoordinates c.coordinates = c := by |
| 70 | apply Subtype.ext |
| 71 | exact c.kernel_eq.symm |
| 72 | |
| 73 | /-- The coordinates of a split-projection kernel are the prescribed linear map. -/ |
| 74 | theorem coordinates_ofCoordinates (L : V →ₗ[R] U) : |
| 75 | (ofCoordinates L).coordinates = L := by |
| 76 | ext v |
| 77 | let c := ofCoordinates L |
| 78 | apply c.frame.injective |
| 79 | change c.frame (c.frame.symm (c.val.mkQ (0, v))) = c.frame (L v) |
| 80 | rw [c.frame.apply_symm_apply, frame_apply] |
| 81 | apply (LinearMap.quotKerEquivOfSurjective |
| 82 | (LinearMap.id.coprod L) (fun u => ⟨(u, 0), by simp⟩)).injective |
| 83 | change (LinearMap.id.coprod L) (0, v) = (LinearMap.id.coprod L) (L v, 0) |
| 84 | simp |
| 85 | |
| 86 | /-- Quotients in a fixed chart are parametrized exactly by linear maps between the two summands. -/ |
| 87 | def coordinateEquiv : QuotientChart R U V ≃ (V →ₗ[R] U) where |
| 88 | toFun := QuotientChart.coordinates |
| 89 | invFun := ofCoordinates |
| 90 | left_inv := ofCoordinates_coordinates |
| 91 | right_inv := coordinates_ofCoordinates |
| 92 | |
| 93 | end QuotientChart |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quotient.Charts |