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.IntersectionTheory.ProjectionFormula.Principal.DivisorInverse |
| 3 | |
| 4 | /-! # Positive Cycle -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PositiveCycle |
| 11 | |
| 12 | /-! The positive part of a finite rational cycle records its zeros. |
| 13 | An injective model with unchanged residue fields, nonnegative orders, and |
| 14 | coverage of every positive coefficient pushes to exactly that part. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped Classical |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 20 | |
| 21 | def positivePart {α : Type*} (c : α →₀ ℚ) : α →₀ ℚ := |
| 22 | Finsupp.mapRange (fun a => max a 0) (by simp) c |
| 23 | |
| 24 | theorem positivePart_apply {α : Type*} (c : α →₀ ℚ) (x : α) : |
| 25 | positivePart c x = max (c x) 0 := rfl |
| 26 | |
| 27 | theorem positivePart_sub_neg {α : Type*} (c : α →₀ ℚ) : |
| 28 | positivePart c - positivePart (-c) = c := by |
| 29 | ext x |
| 30 | exact max_zero_sub_max_neg_zero_eq_self (c x) |
| 31 | |
| 32 | theorem pointPushforward_eq_positivePart {X Y : Scheme} (i : X ⟶ Y) |
| 33 | (hi : Function.Injective i) (hd : ∀ x : X, i.residueDegree x = 1) |
| 34 | (c : X →₀ ℚ) (d : Y →₀ ℚ) |
| 35 | (hc : ∀ x : X, c x = d (i x)) (hn : ∀ x : X, 0 ≤ c x) |
| 36 | (hcover : ∀ y : Y, 0 < d y → y ∈ Set.range i) : |
| 37 | CyclePushforward.pointPushforward i c = positivePart d := by |
| 38 | ext y |
| 39 | by_cases hy : y ∈ Set.range i |
| 40 | · obtain ⟨x, rfl⟩ := hy |
| 41 | rw [PushforwardFiber.pointPushforward_uniqueFiber i x (i x) rfl |
| 42 | (fun z hz => hi hz), hd, Nat.cast_one, mul_one, positivePart_apply, ← hc] |
| 43 | exact (max_eq_left (hn x)).symm |
| 44 | · rw [PushforwardFiber.pointPushforward_apply_eq_zero i c y |
| 45 | (fun x _ hx => hy ⟨x, hx⟩), positivePart_apply] |
| 46 | exact (max_eq_right (le_of_not_gt (fun hp => hy (hcover y hp)))).symm |
| 47 | |
| 48 | theorem principalDivisor_eq_positive_sub_inverse {X : Scheme} [IsIntegral X] |
| 49 | [AlgebraicGeometry.IsNoetherian X] (g : X.functionField) : |
| 50 | Affine.DivisorNorm.rationalPrincipalDivisor X g = positivePart (Affine.DivisorNorm.rationalPrincipalDivisor X g) - |
| 51 | positivePart (Affine.DivisorNorm.rationalPrincipalDivisor X g⁻¹) := by |
| 52 | rw [Principal.DivisorInverse.rationalPrincipalDivisor_inv, positivePart_sub_neg] |
| 53 | |
| 54 | end AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PositiveCycle |
| 55 | |
| 56 | namespace AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PositiveCycle.Pushforward |
| 57 | |
| 58 | /-! Positive parts commute with native residue-degree pushforward |
| 59 | whenever all coefficients in each fiber have the same sign. -/ |
| 60 | |
| 61 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 62 | open scoped Classical |
| 63 | |
| 64 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PositiveCycle |
| 65 | |
| 66 | theorem coefficient_congr {Z X : Scheme} (f : Z ⟶ X) (c d : Z →₀ ℚ) (x : X) |
| 67 | (h : ∀ z, f z = x → c z = d z) : CyclePushforward.pointPushforward f c x = CyclePushforward.pointPushforward f d x := by |
| 68 | have hz : CyclePushforward.pointPushforward f (c - d) x = 0 := by |
| 69 | apply PushforwardFiber.pointPushforward_apply_eq_zero |
| 70 | intro z hz he |
| 71 | exact hz (by rw [Finsupp.sub_apply, h z he, sub_self]) |
| 72 | rw [map_sub, Finsupp.sub_apply, sub_eq_zero] at hz |
| 73 | exact hz |
| 74 | |
| 75 | theorem nonneg_at {Z X : Scheme} (f : Z ⟶ X) (c : Z →₀ ℚ) (x : X) |
| 76 | (h : ∀ z, f z = x → 0 ≤ c z) : 0 ≤ CyclePushforward.pointPushforward f c x := by |
| 77 | rw [CyclePushforward.pointPushforward, Finsupp.linearCombination_apply, Finsupp.sum, Finsupp.finsetSum_apply] |
| 78 | apply Finset.sum_nonneg |
| 79 | intro z _ |
| 80 | rw [Finsupp.smul_apply, smul_eq_mul] |
| 81 | by_cases hz : f z = x |
| 82 | · rw [hz, Finsupp.single_eq_same] |
| 83 | exact mul_nonneg (h z hz) (Nat.cast_nonneg _) |
| 84 | · rw [Finsupp.single_eq_of_ne (fun h => hz h.symm), mul_zero] |
| 85 | |
| 86 | theorem nonpos_at {Z X : Scheme} (f : Z ⟶ X) (c : Z →₀ ℚ) (x : X) |
| 87 | (h : ∀ z, f z = x → c z ≤ 0) : CyclePushforward.pointPushforward f c x ≤ 0 := by |
| 88 | have hn := nonneg_at f (-c) x (fun z hz => by |
| 89 | rw [Finsupp.neg_apply] |
| 90 | exact neg_nonneg.mpr (h z hz)) |
| 91 | rw [map_neg, Finsupp.neg_apply, neg_nonneg] at hn |
| 92 | exact hn |
| 93 | |
| 94 | theorem positivePart_comm {Z X : Scheme} (f : Z ⟶ X) (c : Z →₀ ℚ) |
| 95 | (h : ∀ x : X, (∀ z, f z = x → 0 ≤ c z) ∨ (∀ z, f z = x → c z ≤ 0)) : |
| 96 | CyclePushforward.pointPushforward f (positivePart c) = positivePart (CyclePushforward.pointPushforward f c) := by |
| 97 | apply Finsupp.ext |
| 98 | intro x |
| 99 | rw [positivePart_apply] |
| 100 | rcases h x with hp | hn |
| 101 | · have he := coefficient_congr f (positivePart c) c x (fun z hz => max_eq_left (hp z hz)) |
| 102 | rw [he, max_eq_left (nonneg_at f c x hp)] |
| 103 | · have hz : CyclePushforward.pointPushforward f (positivePart c) x = 0 := by |
| 104 | apply PushforwardFiber.pointPushforward_apply_eq_zero |
| 105 | intro z hz he |
| 106 | exact hz (max_eq_right (hn z he)) |
| 107 | rw [hz, max_eq_right (nonpos_at f c x hn)] |
| 108 | |
| 109 | end AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PositiveCycle.Pushforward |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI |