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.Flat.ImageCodimension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveFiberCycle |
| 3 | |
| 4 | /-! # Divisor Cycle -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.DivisorCycle |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Smooth inverse images of divisors have reduced codimension-one cycles |
| 11 | in every target dimension. Coefficients use the actual image generic points. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 16 | open scoped Classical |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveFiberCycle |
| 19 | |
| 20 | variable {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (f : X.toOver ⟶ Y.toOver) |
| 21 | (m n : ℕ) [SmoothOfRelativeDimension m X.structureMap] [SmoothOfRelativeDimension n Y.structureMap] |
| 22 | |
| 23 | include n in |
| 24 | theorem generic_ne_supportPoint [IsIntegral Y.carrier] (B : Y.DimensionCycleSupport 1) : |
| 25 | genericPoint Y.carrier ≠ CycleClass.Thom.IntersectionGeometry.supportPoint B.val := by |
| 26 | intro he |
| 27 | have hz : coheight (genericPoint Y.carrier) = 0 := |
| 28 | coheight_eq_zero.mpr (fun y _ => genericPoint_specializes y) |
| 29 | rw [he, CurveSupports.coheight_one Y n B] at hz |
| 30 | exact one_ne_zero hz |
| 31 | |
| 32 | variable [Smooth f.left] |
| 33 | |
| 34 | include m n |
| 35 | |
| 36 | theorem fiber_codimension (B : Y.DimensionCycleSupport 1) (W : IrreducibleCloseds X.carrier) |
| 37 | (hW : (W : Set X.carrier) ⊆ CurveFiberCycle.support f B) : 1 ≤ X.supportCodimension W := by |
| 38 | by_contra hn |
| 39 | have hzero : X.supportCodimension W = 0 := by omega |
| 40 | have him := Flat.ImageCodimension.image_codimension_le f m n 0 ⟨W, hzero⟩ |
| 41 | change Y.supportCodimension (ProperCycleLinearity.imageSupport f W) ≤ 0 at him |
| 42 | have hWB : ProperCycleLinearity.imageSupport f W ≤ B.val := by |
| 43 | change (ProperCycleLinearity.imageSupport f W : Set Y.carrier) ⊆ B.val |
| 44 | rw [ProperCycleLinearity.imageSupport_eq_image] |
| 45 | rintro _ ⟨x, hx, rfl⟩ |
| 46 | exact hW hx |
| 47 | have hh := (Supports.codimension_strictAnti Y n).antitone hWB |
| 48 | rw [B.property] at hh |
| 49 | omega |
| 50 | |
| 51 | theorem point_mem_iff (A : X.DimensionCycleSupport 1) (B : Y.DimensionCycleSupport 1) : |
| 52 | f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) ∈ (B.val : Set Y.carrier) ↔ |
| 53 | f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) = CycleClass.Thom.IntersectionGeometry.supportPoint B.val := by |
| 54 | constructor |
| 55 | · intro h |
| 56 | have hIB : ProperCycleLinearity.imageSupport f A.val ≤ B.val := by |
| 57 | change closure {f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)} ⊆ (B.val : Set Y.carrier) |
| 58 | exact B.val.isClosed.closure_subset_iff.mpr (Set.singleton_subset_iff.mpr h) |
| 59 | have he : ProperCycleLinearity.imageSupport f A.val = B.val := by |
| 60 | by_contra hn |
| 61 | have hh := Supports.codimension_strictAnti Y n (lt_of_le_of_ne hIB hn) |
| 62 | rw [B.property] at hh |
| 63 | have hb := Flat.ImageCodimension.image_codimension_le f m n 1 A |
| 64 | omega |
| 65 | exact (irreducibleSetEquivPoints.apply_symm_apply _).symm.trans (congrArg CycleClass.Thom.IntersectionGeometry.supportPoint he) |
| 66 | · intro h |
| 67 | rw [h] |
| 68 | exact (B.val.isIrreducible.isGenericPoint_genericPoint B.val.isClosed).mem |
| 69 | |
| 70 | theorem cycle_apply (B : Y.DimensionCycleSupport 1) (A : X.DimensionCycleSupport 1) : |
| 71 | CurveFiberCycle.cycle f B A = if f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) = CycleClass.Thom.IntersectionGeometry.supportPoint B.val then 1 else 0 := by |
| 72 | rw [CurveFiberCycle.cycle, CycleClass.Thom.IntersectionGeometry.reducedClosedCycle_apply] |
| 73 | congr 1 |
| 74 | apply propext |
| 75 | have hp : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ CurveFiberCycle.support f B ↔ f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) = CycleClass.Thom.IntersectionGeometry.supportPoint B.val := |
| 76 | point_mem_iff f m n A B |
| 77 | constructor |
| 78 | · rintro ⟨D, hD⟩ |
| 79 | apply hp.mp |
| 80 | have hs := Supports.closedComponentSupport_subset X.carrier (CurveFiberCycle.support f B) D |
| 81 | rw [hD] at hs |
| 82 | exact hs ((A.val.isIrreducible.isGenericPoint_genericPoint A.val.isClosed).mem) |
| 83 | · intro h |
| 84 | exact Supports.support_eq_component X m 1 (CurveFiberCycle.support f B) (fiber_codimension f m n B) |
| 85 | A ((Supports.supportPoint_mem_iff_subset (CurveFiberCycle.support f B) A.val).mp (hp.mpr h)) |
| 86 | |
| 87 | theorem flatMap_apply (a : Y.RationalDimensionCycle 1) (A : X.DimensionCycleSupport 1) : |
| 88 | CurveFiberCycle.flatMap f a A = a.sum (fun B r => r * if f.left (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) = CycleClass.Thom.IntersectionGeometry.supportPoint B.val then 1 else 0) := by |
| 89 | simp only [CurveFiberCycle.flatMap, Finsupp.linearCombination_apply, Finsupp.sum, Finsupp.finsetSum_apply, |
| 90 | Finsupp.smul_apply, smul_eq_mul, cycle_apply f m n] |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.DivisorCycle |