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.AbelianModuli.HilbertConstruction.Moduli.Isomorphisms |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Level.BaseChange |
| 3 | import Mathlib.Data.Nat.GCD.Basic |
| 4 | import Mathlib.Tactic |
| 5 | |
| 6 | /-! # Data -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Level.Data |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The auxiliary coprime level and the prescribed full level are distinct. |
| 13 | These constructions use HilbertConstruction's actual group-scheme functors of points. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- A fine auxiliary level can be chosen prime to both the polarization |
| 20 | product and the independently prescribed level. -/ |
| 21 | theorem exists_auxiliary_level (D N : ℕ) (hD : 0 < D) (hN : 0 < N) : |
| 22 | ∃ L : ℕ, 3 ≤ L ∧ Nat.Coprime L D ∧ Nat.Coprime L N := by |
| 23 | let L := 2 * (D * N) + 1 |
| 24 | have hpos : 0 < D * N := Nat.mul_pos hD hN |
| 25 | have hcoprime : Nat.Coprime L (D * N) := by |
| 26 | dsimp only [L] |
| 27 | rw [Nat.coprime_mul_right_add_left] |
| 28 | simp |
| 29 | exact ⟨L, by dsimp [L]; omega, |
| 30 | hcoprime.coprime_dvd_right (dvd_mul_right D N), |
| 31 | hcoprime.coprime_dvd_right (dvd_mul_left N D)⟩ |
| 32 | |
| 33 | /-- Both markings belong to the same polarized abelian scheme. No |
| 34 | coprimality condition is imposed on the prescribed level N. -/ |
| 35 | structure AddedFullLevel (g : ℕ) (δ : Fin g → ℕ) (L N : ℕ) |
| 36 | (S : Scheme.{u}) where |
| 37 | auxiliary : HilbertConstruction.PolarizationData.PolarizedAbelianWithFullLevel g δ L S |
| 38 | prescribed : auxiliary.abelian.FullLevel N |
| 39 | |
| 40 | namespace AddedFullLevel |
| 41 | |
| 42 | variable {g L N : ℕ} {δ : Fin g → ℕ} {S : Scheme.{u}} |
| 43 | |
| 44 | /-- Forget the auxiliary marking and retain exactly the requested N-level. -/ |
| 45 | def forgetAuxiliary (A : AddedFullLevel g δ L N S) : |
| 46 | HilbertConstruction.PolarizationData.PolarizedAbelianWithFullLevel g δ N S where |
| 47 | abelian := A.auxiliary.abelian |
| 48 | dual := A.auxiliary.dual |
| 49 | polarization := A.auxiliary.polarization |
| 50 | level := A.prescribed |
| 51 | |
| 52 | /-- Interchange the two markings without altering the polarized abelian data. -/ |
| 53 | def swap (A : AddedFullLevel g δ L N S) : AddedFullLevel g δ N L S where |
| 54 | auxiliary := A.forgetAuxiliary |
| 55 | prescribed := A.auxiliary.level |
| 56 | |
| 57 | @[simp] theorem swap_swap (A : AddedFullLevel g δ L N S) : A.swap.swap = A := by |
| 58 | cases A |
| 59 | rfl |
| 60 | |
| 61 | end AddedFullLevel |
| 62 | |
| 63 | section Frames |
| 64 | |
| 65 | variable {C : Type*} [Category C] {X Y : C} |
| 66 | |
| 67 | /-- Once one frame is chosen, all frames are obtained by a unique change |
| 68 | of basis. This applies to HilbertConstruction's full-level isomorphisms of group functors. -/ |
| 69 | def framesEquivAut (frame : X ≅ Y) : (X ≅ Y) ≃ (X ≅ X) where |
| 70 | toFun other := other ≪≫ frame.symm |
| 71 | invFun change := change ≪≫ frame |
| 72 | left_inv other := by ext; simp |
| 73 | right_inv change := by ext; simp |
| 74 | |
| 75 | theorem existsUnique_change_of_frame (frame other : X ≅ Y) : |
| 76 | ∃! change : X ≅ X, change ≪≫ frame = other := by |
| 77 | refine ⟨framesEquivAut frame other, (framesEquivAut frame).symm_apply_apply other, ?_⟩ |
| 78 | intro change h |
| 79 | apply (framesEquivAut frame).symm.injective |
| 80 | exact h.trans ((framesEquivAut frame).symm_apply_apply other).symm |
| 81 | |
| 82 | end Frames |
| 83 | |
| 84 | /-- The fibers of forgetting an auxiliary full level are its actual |
| 85 | functor-of-points frames, with the explicit change-of-basis description. -/ |
| 86 | def auxiliaryFramesEquiv |
| 87 | {g L : ℕ} {S : Scheme.{u}} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 88 | (frame : A.FullLevel L) : |
| 89 | A.FullLevel L ≃ |
| 90 | (HilbertConstruction.Abelian.Schemes.AbelianScheme.constantLevelFunctor g L S ≅ |
| 91 | HilbertConstruction.Abelian.Schemes.AbelianScheme.constantLevelFunctor g L S) := |
| 92 | framesEquivAut frame |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Level.Data |