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.PushforwardFiber |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Principal.DivisorInverse |
| 3 | |
| 4 | /-! # Positive Cycle Eq -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.PositiveCycleEq.BundleCycles.PositiveCycle |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The positive part of a finite rational cycle records its zeros. |
| 11 | An injective model with unchanged residue fields, nonnegative orders, and |
| 12 | coverage of every positive coefficient pushes to exactly that part. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped Classical |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 18 | |
| 19 | def positivePart {α : Type*} (c : α →₀ ℚ) : α →₀ ℚ := |
| 20 | Finsupp.mapRange (fun a => max a 0) (by simp) c |
| 21 | |
| 22 | theorem positivePart_apply {α : Type*} (c : α →₀ ℚ) (x : α) : |
| 23 | positivePart c x = max (c x) 0 := rfl |
| 24 | |
| 25 | theorem positivePart_sub_neg {α : Type*} (c : α →₀ ℚ) : |
| 26 | positivePart c - positivePart (-c) = c := by |
| 27 | ext x |
| 28 | exact max_zero_sub_max_neg_zero_eq_self (c x) |
| 29 | |
| 30 | theorem pointPushforward_eq_positivePart {X Y : Scheme} (i : X ⟶ Y) |
| 31 | (hi : Function.Injective i) (hd : ∀ x : X, i.residueDegree x = 1) |
| 32 | (c : X →₀ ℚ) (d : Y →₀ ℚ) |
| 33 | (hc : ∀ x : X, c x = d (i x)) (hn : ∀ x : X, 0 ≤ c x) |
| 34 | (hcover : ∀ y : Y, 0 < d y → y ∈ Set.range i) : |
| 35 | IntersectionTheory.ProjectionFormula.CyclePushforward.pointPushforward i c = positivePart d := by |
| 36 | ext y |
| 37 | by_cases hy : y ∈ Set.range i |
| 38 | · obtain ⟨x, rfl⟩ := hy |
| 39 | rw [IntersectionTheory.ProjectionFormula.PushforwardFiber.pointPushforward_uniqueFiber i x (i x) rfl |
| 40 | (fun z hz => hi hz), hd, Nat.cast_one, mul_one, positivePart_apply, ← hc] |
| 41 | exact (max_eq_left (hn x)).symm |
| 42 | · rw [IntersectionTheory.ProjectionFormula.PushforwardFiber.pointPushforward_apply_eq_zero i c y |
| 43 | (fun x _ hx => hy ⟨x, hx⟩), positivePart_apply] |
| 44 | exact (max_eq_right (le_of_not_gt (fun hp => hy (hcover y hp)))).symm |
| 45 | |
| 46 | theorem principalDivisor_eq_positive_sub_inverse {X : Scheme} [IsIntegral X] |
| 47 | [AlgebraicGeometry.IsNoetherian X] (g : X.functionField) : |
| 48 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g = positivePart (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g) - |
| 49 | positivePart (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g⁻¹) := by |
| 50 | rw [Principal.DivisorInverse.BundleCycles.PrincipalDivisorInverse.rationalPrincipalPointDivisor_inv, positivePart_sub_neg] |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.Divisors.LineBundles.PositiveCycleEq.BundleCycles.PositiveCycle |