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.Proper.EtaleRestriction |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.ResidueDegree |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PushforwardComposition |
| 4 | |
| 5 | /-! # Etale Support Points -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleSupportPoints |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Points over the finite etale support open have positive native |
| 12 | residue degree and the exact codimension required by pushforward. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Map |
| 20 | |
| 21 | theorem residueDegree {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (f : X.toOver ⟶ Y.toOver) |
| 22 | (W : IrreducibleCloseds X.carrier) (x : CycleClass.Geometric.GenericPoint.reducedSupportScheme W) : |
| 23 | (Support.Map.supportImageMap f W).residueDegree x = f.left.residueDegree (CycleClass.Geometric.GenericPoint.reducedSupportι W x) := by |
| 24 | calc |
| 25 | _ = (Support.Map.supportImageMap f W ≫ CycleClass.Geometric.GenericPoint.reducedSupportι (ProperCycleLinearity.imageSupport f W)).residueDegree x := |
| 26 | (Support.Map.residueDegree_post_immersion (Support.Map.supportImageMap f W) (CycleClass.Geometric.GenericPoint.reducedSupportι (ProperCycleLinearity.imageSupport f W)) x).symm |
| 27 | _ = (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f.left).residueDegree x := by rw [Support.Map.supportImageMap_inclusion]; rfl |
| 28 | _ = _ := Support.Map.residueDegree_pre_immersion (CycleClass.Geometric.GenericPoint.reducedSupportι W) f.left x |
| 29 | |
| 30 | theorem positive {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (f : X.toOver ⟶ Y.toOver) |
| 31 | (W : IrreducibleCloseds X.carrier) (U : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).Opens) |
| 32 | [Etale (U.ι ≫ Support.Map.supportImageMap f W)] (x : CycleClass.Geometric.GenericPoint.reducedSupportScheme W) |
| 33 | (hx : Support.Map.supportImageMap f W x ∈ Proper.EtaleRestriction.good (Support.Map.supportImageMap f W) U) : |
| 34 | 0 < f.left.residueDegree (CycleClass.Geometric.GenericPoint.reducedSupportι W x) := by |
| 35 | let u := Support.Map.supportImageMap f W |
| 36 | let V := Proper.EtaleRestriction.good u U |
| 37 | let : IsFinite (u ∣_ V) := Proper.EtaleRestriction.finite u U |
| 38 | let x' : (u ⁻¹ᵁ V).toScheme := ⟨x, hx⟩ |
| 39 | have hp := ResidueDegree.positive (u ∣_ V) x' |
| 40 | have he : (u ∣_ V).residueDegree x' = u.residueDegree x := by |
| 41 | rw [← Support.Map.residueDegree_post_immersion (u ∣_ V) V.ι x', morphismRestrict_ι, |
| 42 | Support.Map.residueDegree_pre_immersion] |
| 43 | rfl |
| 44 | rw [he] at hp |
| 45 | exact (EtaleSupportPoints.residueDegree f W x) ▸ hp |
| 46 | |
| 47 | theorem codimension {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (f : X.toOver ⟶ Y.toOver) |
| 48 | (m n k l : ℕ) [SmoothOfRelativeDimension m X.structureMap] [SmoothOfRelativeDimension n Y.structureMap] |
| 49 | (hd : k + n = l + m) (W : IrreducibleCloseds X.carrier) (U : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).Opens) |
| 50 | [Etale (U.ι ≫ Support.Map.supportImageMap f W)] (x : CycleClass.Geometric.GenericPoint.reducedSupportScheme W) |
| 51 | (hx : Support.Map.supportImageMap f W x ∈ Proper.EtaleRestriction.good (Support.Map.supportImageMap f W) U) |
| 52 | (D : Y.DimensionCycleSupport l) (hy : f.left (CycleClass.Geometric.GenericPoint.reducedSupportι W x) = CycleClass.Thom.IntersectionGeometry.supportPoint D.val) : |
| 53 | X.supportCodimension (irreducibleSetEquivPoints.symm (CycleClass.Geometric.GenericPoint.reducedSupportι W x)) = k := by |
| 54 | let C := irreducibleSetEquivPoints.symm (CycleClass.Geometric.GenericPoint.reducedSupportι W x) |
| 55 | have hp : CycleClass.Thom.IntersectionGeometry.supportPoint C = CycleClass.Geometric.GenericPoint.reducedSupportι W x := irreducibleSetEquivPoints.apply_symm_apply _ |
| 56 | have hIm : ProperCycleLinearity.imageSupport f C = D.val := by |
| 57 | apply irreducibleSetEquivPoints.injective |
| 58 | exact (irreducibleSetEquivPoints.apply_symm_apply _).trans ((congrArg f.left hp).trans hy) |
| 59 | have hn : f.left.residueDegree (CycleClass.Thom.IntersectionGeometry.supportPoint C) ≠ 0 := by |
| 60 | rw [hp] |
| 61 | exact Nat.ne_of_gt (positive f W U x hx) |
| 62 | have he := PushforwardComposition.Grading.support_dimension_eq_of_degree f C hn |
| 63 | rw [hIm] at he |
| 64 | have hC := Grading.supportDimension_add_codimension X m C |
| 65 | have hD := Grading.supportDimension_add_codimension Y n D.val |
| 66 | rw [D.property] at hD |
| 67 | change X.supportCodimension C = k |
| 68 | omega |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleSupportPoints |