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.AdjacentSupportStalk |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalOrder |
| 4 | |
| 5 | /-! # Principal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Principal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Principal cycles are supported on their defining support. A function |
| 12 | that is a unit along its divisor intersection meets that divisor properly. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | open scoped Classical |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 20 | |
| 21 | theorem subset (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) (W : X.DimensionCycleSupport k) |
| 22 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 23 | (A : X.DimensionCycleSupport (k + 1)) (hA : A ∈ (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).support) : A.val ≤ W.val := by |
| 24 | have hp : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (W.val : Set X.carrier) := by |
| 25 | by_contra h |
| 26 | exact Finsupp.mem_support_iff.mp hA (by |
| 27 | rw [Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right h]) |
| 28 | exact (Supports.supportPoint_mem_iff_subset |
| 29 | (⟨(W.val : Set X.carrier), W.val.isClosed⟩ : Closeds X.carrier) A.val).mp hp |
| 30 | |
| 31 | theorem avoids (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 32 | [SmoothOfRelativeDimension m X.structureMap] |
| 33 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 34 | (hunit : ∀ y : CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val, Order.coheight y = 1 → |
| 35 | CycleClass.Geometric.GenericPoint.reducedSupportι W.val y ∈ (D.val : Set X.carrier) → |
| 36 | ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y, IsUnit u ∧ |
| 37 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y) |
| 38 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g) |
| 39 | (A : X.DimensionCycleSupport (k + 1)) (hA : A ∈ (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).support) : ¬ A.val ≤ D.val := by |
| 40 | intro hAD |
| 41 | have hxW : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (W.val : Set X.carrier) := |
| 42 | subset X k W g A hA (A.val.isIrreducible.isGenericPoint_genericPoint A.val.isClosed).mem |
| 43 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) hxW |
| 44 | have hy : Order.coheight y = 1 := AdjacentSupportStalk.coheight_one X m k W A hxW |
| 45 | have hyD : CycleClass.Geometric.GenericPoint.reducedSupportι W.val y ∈ (D.val : Set X.carrier) := by |
| 46 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] |
| 47 | exact hAD (A.val.isIrreducible.isGenericPoint_genericPoint A.val.isClosed).mem |
| 48 | obtain ⟨u, hu, hug⟩ := hunit y hy hyD |
| 49 | apply Finsupp.mem_support_iff.mp hA |
| 50 | rw [Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hxW, ← hug, |
| 51 | Affine.PrincipalOrder.stalk_order _ y hy u hu.ne_zero, Ring.ord_of_isUnit hu] |
| 52 | rfl |
| 53 | |
| 54 | theorem proper (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 55 | [SmoothOfRelativeDimension m X.structureMap] |
| 56 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 57 | (hunit : ∀ y : CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val, Order.coheight y = 1 → |
| 58 | CycleClass.Geometric.GenericPoint.reducedSupportι W.val y ∈ (D.val : Set X.carrier) → |
| 59 | ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y, IsUnit u ∧ |
| 60 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y) |
| 61 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g) : |
| 62 | CycleClass.Thom.IntersectionGeometry.MeetProperly X 1 (k + 1) (Finsupp.single D 1) (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) := by |
| 63 | intro B hB A hA C hC |
| 64 | have hBD : B = D := by simpa using hB |
| 65 | subst B |
| 66 | have hCA : C ≤ A.val := fun _ hx => (hC hx).2 |
| 67 | have hn : C ≠ A.val := by |
| 68 | intro he |
| 69 | exact avoids X m k D W g hunit A hA (fun x hx => (hC (he ▸ hx)).1) |
| 70 | have hh := Supports.codimension_strictAnti X m (lt_of_le_of_ne hCA hn) |
| 71 | rw [A.property] at hh |
| 72 | omega |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Principal |