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.IntersectionTheory.ProjectionFormula.IntermediateSupports |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.UniversallyOpen |
| 3 | |
| 4 | /-! # Image Codimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.ImageCodimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat morphisms do not increase point codimension. The proof lifts |
| 11 | actual strict specialization chains through the generalizing map. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity |
| 18 | |
| 19 | theorem coheight_le {X Y : Scheme} (f : X ⟶ Y) [Flat f] |
| 20 | (p : ℕ) (x : X) (hx : coheight x ≤ p) : coheight (f x) ≤ p := by |
| 21 | induction p generalizing x with |
| 22 | | zero => |
| 23 | apply coheight_le_coe_iff.mpr |
| 24 | intro y hy |
| 25 | obtain ⟨z, hz, hfz⟩ := Flat.generalizingMap f (Scheme.le_iff_specializes.mp hy.le) |
| 26 | have hxz : x < z := lt_iff_le_not_ge.mpr ⟨Scheme.le_iff_specializes.mpr hz, fun hzx => hy.not_ge (by |
| 27 | rw [← hfz] |
| 28 | exact Scheme.le_iff_specializes.mpr ((Scheme.le_iff_specializes.mp hzx).map f.continuous))⟩ |
| 29 | exact False.elim (not_lt_of_ge (zero_le : (0 : ℕ∞) ≤ coheight z) |
| 30 | (coheight_le_coe_iff.mp hx z hxz)) |
| 31 | | succ p ih => |
| 32 | apply coheight_le_coe_iff.mpr |
| 33 | intro y hy |
| 34 | obtain ⟨z, hz, hfz⟩ := Flat.generalizingMap f (Scheme.le_iff_specializes.mp hy.le) |
| 35 | have hxz : x < z := lt_iff_le_not_ge.mpr ⟨Scheme.le_iff_specializes.mpr hz, fun hzx => hy.not_ge (by |
| 36 | rw [← hfz] |
| 37 | exact Scheme.le_iff_specializes.mpr ((Scheme.le_iff_specializes.mp hzx).map f.continuous))⟩ |
| 38 | have hzdim : coheight z ≤ p := by |
| 39 | have h := coheight_le_coe_iff.mp hx z hxz |
| 40 | rw [Nat.cast_add, Nat.cast_one, ENat.lt_natCast_add_one_iff] at h |
| 41 | exact h |
| 42 | rw [← hfz, Nat.cast_add, Nat.cast_one, ENat.lt_natCast_add_one_iff] |
| 43 | exact ih z hzdim |
| 44 | |
| 45 | theorem image_codimension_le {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} |
| 46 | (f : X.toOver ⟶ Y.toOver) [Flat f.left] (m n p : ℕ) |
| 47 | [SmoothOfRelativeDimension m X.structureMap] [SmoothOfRelativeDimension n Y.structureMap] |
| 48 | (A : X.DimensionCycleSupport p) : Y.supportCodimension (ProperCycleLinearity.imageSupport f A.val) ≤ p := by |
| 49 | have h := coheight_le f.left p (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 50 | (IntermediateSupports.support_coheight X m p A).le |
| 51 | let B : Y.DimensionCycleSupport (Y.supportCodimension (ProperCycleLinearity.imageSupport f A.val)) := ⟨_, rfl⟩ |
| 52 | have he := IntermediateSupports.support_coheight Y n _ B |
| 53 | have hp : CycleClass.Thom.IntersectionGeometry.supportPoint B.val = f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) := irreducibleSetEquivPoints.apply_symm_apply _ |
| 54 | rw [hp] at he |
| 55 | have hdim : (Y.supportCodimension (ProperCycleLinearity.imageSupport f A.val) : ℕ∞) ≤ p := he.symm.trans_le h |
| 56 | exact_mod_cast hdim |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.ImageCodimension |