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.FactorOrder |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.UnitDivisorSupport |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.CycleMoving |
| 5 | |
| 6 | /-! # Specified Cycle -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpecifiedCycle |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The principal intersection formula with a specified generic unit. |
| 13 | The restricted function is the actual image of that unit in the support |
| 14 | function field, so later norm comparisons retain its identity. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | open scoped Classical |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 22 | |
| 23 | theorem isProperIntersection (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m q : ℕ) |
| 24 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 25 | (A : X.DimensionCycleSupport q) (hz : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (A.val : Set X.carrier)) |
| 26 | (u : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)) (hu : IsUnit u) |
| 27 | (d : X.RationalDimensionCycle 1) |
| 28 | (hd : ∀ B : X.DimensionCycleSupport 1, d B = |
| 29 | (X.carrier.ord (algebraMap (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)) X.carrier.functionField u) |
| 30 | (CycleClass.Thom.IntersectionGeometry.supportPoint B.val) : ℚ)) : |
| 31 | CycleClass.Thom.IntersectionGeometry.IsProperIntersectionCycle X 1 q d (Finsupp.single A 1) |
| 32 | (Principal.ClosedSectionCycle.principalCycle X (1 + q) A.val (Support.LocalFraction.Restriction.toFunctionField X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) hz u)) := by |
| 33 | let f := algebraMap (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)) X.carrier.functionField u |
| 34 | let g := Support.LocalFraction.Restriction.toFunctionField X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) hz u |
| 35 | constructor |
| 36 | · apply Divisor.CycleMoving.of_avoiding X m q |
| 37 | intro B hB E hE hEB |
| 38 | have hEA : E = A := by simpa using hE |
| 39 | subst E |
| 40 | have hs : CycleClass.Thom.IntersectionGeometry.supportPoint B.val ⤳ CycleClass.Thom.IntersectionGeometry.supportPoint A.val := |
| 41 | (B.val.isIrreducible.isGenericPoint_genericPoint B.val.isClosed).specializes (hEB hz) |
| 42 | have ho := UnitDivisorSupport.order_zero X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) (CycleClass.Thom.IntersectionGeometry.supportPoint B.val) hs u hu |
| 43 | apply Finsupp.mem_support_iff.mp hB |
| 44 | rw [hd, ho, Int.cast_zero] |
| 45 | · intro C |
| 46 | rw [Principal.ClosedSectionCycle.principalCycle_apply] |
| 47 | simp only [Finsupp.sum_single_index, mul_zero, zero_mul, mul_one] |
| 48 | by_cases hx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier) |
| 49 | · rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hx] |
| 50 | obtain ⟨a, b, ha, hb, habf, habg⟩ := Support.LocalFraction.exists_fraction X.carrier A.val hz |
| 51 | (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx u hu |
| 52 | let C' : X.DimensionCycleSupport (q + 1) := ⟨C.val, by rw [C.property]; omega⟩ |
| 53 | have he := FactorOrder.PrincipalLocal.ratio X m q A C' hx a b ha hb |
| 54 | dsimp only at he |
| 55 | rw [← habf] at he |
| 56 | change g = |
| 57 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx)) |
| 58 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).functionField |
| 59 | (Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx a) / |
| 60 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx)) |
| 61 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).functionField |
| 62 | (Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx b) at habg |
| 63 | rw [← habg] at he |
| 64 | have heq : d = Principal.Integral.Cycle.cycle X f := Finsupp.ext (fun B => |
| 65 | (hd B).trans (Principal.Integral.Cycle.cycle_apply X f B).symm) |
| 66 | rw [heq] |
| 67 | exact he.symm |
| 68 | · rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hx] |
| 69 | symm |
| 70 | apply Finset.sum_eq_zero |
| 71 | intro B _ |
| 72 | have he : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val = 0 := dite_eq_right (fun h => hx h.2) |
| 73 | change d B * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val = 0 |
| 74 | rw [he, mul_zero] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpecifiedCycle |