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.Affine.Order |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ResidueDegree |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Ord |
| 4 | |
| 5 | /-! # Divisor Norm -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Proper pushforward of the actual principal divisor for a finite normal |
| 12 | affine scheme over a DVR. Coefficients are scheme orders and native scheme |
| 13 | residue degrees; the norm uses the canonical function-field isomorphisms. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsDedekindDomain _root_.Order |
| 18 | open scoped Classical BigOperators |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Order OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | def rationalPrincipalDivisor (X : Scheme.{u}) [IsIntegral X] |
| 25 | [AlgebraicGeometry.IsNoetherian X] (f : X.functionField) : X →₀ ℚ := |
| 26 | (Divisors.LineBundles.Ord.BundleCycles.principalDivisor X f).mapRange (fun n : ℤ => (n : ℚ)) (by simp) |
| 27 | |
| 28 | @[simp] |
| 29 | theorem rationalPrincipalDivisor_apply (X : Scheme.{u}) [IsIntegral X] |
| 30 | [AlgebraicGeometry.IsNoetherian X] (f : X.functionField) (x : X) : |
| 31 | rationalPrincipalDivisor X f x = (X.ord f x : ℚ) := rfl |
| 32 | |
| 33 | variable (S : Type u) [CommRing S] [IsDedekindDomain S] |
| 34 | |
| 35 | omit [IsDedekindDomain S] in |
| 36 | theorem branchPoint_injective : Function.Injective (Order.branchPoint S) := by |
| 37 | intro P Q h |
| 38 | exact HeightOneSpectrum.ext (congrArg PrimeSpectrum.asIdeal h) |
| 39 | |
| 40 | theorem rationalPrincipalDivisor_eq_sum [Fintype (HeightOneSpectrum S)] |
| 41 | (f : (Spec (.of S)).functionField) : |
| 42 | rationalPrincipalDivisor (Spec (.of S)) f = |
| 43 | ∑ P : HeightOneSpectrum S, Finsupp.single (Order.branchPoint S P) |
| 44 | ((Spec (.of S)).ord f (Order.branchPoint S P) : ℚ) := by |
| 45 | ext x |
| 46 | rw [rationalPrincipalDivisor_apply, Finsupp.finsetSum_apply] |
| 47 | by_cases hx : x.asIdeal = ⊥ |
| 48 | · have hc : coheight x ≠ 1 := by |
| 49 | rw [← idealHeight_eq_coheight, hx, Ideal.height_bot] |
| 50 | decide |
| 51 | rw [Scheme.ord_eq_zero_of_coheight_neq_one hc, Int.cast_zero] |
| 52 | symm |
| 53 | apply Finset.sum_eq_zero |
| 54 | intro P _ |
| 55 | apply Finsupp.single_eq_of_ne |
| 56 | intro h |
| 57 | exact P.ne_bot ((congrArg PrimeSpectrum.asIdeal h.symm).trans hx) |
| 58 | · let P : HeightOneSpectrum S := ⟨x.asIdeal, x.isPrime, hx⟩ |
| 59 | have he : Order.branchPoint S P = x := rfl |
| 60 | rw [← he] |
| 61 | rw [Finset.sum_eq_single P] |
| 62 | · exact (Finsupp.single_eq_same).symm |
| 63 | · intro Q _ hQP |
| 64 | exact Finsupp.single_eq_of_ne (fun h => hQP (branchPoint_injective S h.symm)) |
| 65 | · simp |
| 66 | |
| 67 | theorem rationalPrincipalDivisor_local [IsDiscreteValuationRing S] |
| 68 | (f : (Spec (.of S)).functionField) : |
| 69 | rationalPrincipalDivisor (Spec (.of S)) f = |
| 70 | Finsupp.single (Order.branchPoint S (Order.closedBranch S)) |
| 71 | ((Spec (.of S)).ord f (Order.branchPoint S (Order.closedBranch S)) : ℚ) := by |
| 72 | ext x |
| 73 | rw [rationalPrincipalDivisor_apply] |
| 74 | by_cases hx : x.asIdeal = ⊥ |
| 75 | · have hc : coheight x ≠ 1 := by |
| 76 | rw [← idealHeight_eq_coheight, hx, Ideal.height_bot] |
| 77 | decide |
| 78 | rw [Scheme.ord_eq_zero_of_coheight_neq_one hc, Int.cast_zero] |
| 79 | symm |
| 80 | apply Finsupp.single_eq_of_ne |
| 81 | intro h |
| 82 | exact (Order.closedBranch S).ne_bot ((congrArg PrimeSpectrum.asIdeal h.symm).trans hx) |
| 83 | · have he : x = Order.branchPoint S (Order.closedBranch S) := by |
| 84 | apply PrimeSpectrum.ext |
| 85 | exact IsLocalRing.eq_maximalIdeal (Ideal.IsPrime.isMaximal x.isPrime hx) |
| 86 | rw [he, Finsupp.single_eq_same] |
| 87 | |
| 88 | theorem affineMap_branchPoint_local (R : Type u) [CommRing R] [IsLocalRing R] |
| 89 | [Algebra R S] [Module.Finite R S] (P : HeightOneSpectrum S) : |
| 90 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) (Order.branchPoint S P) = |
| 91 | (IsLocalRing.closedPoint R : Spec (.of R)) := by |
| 92 | apply PrimeSpectrum.ext |
| 93 | exact IsLocalRing.eq_maximalIdeal (inferInstanceAs (P.asIdeal.under R).IsMaximal) |
| 94 | |
| 95 | theorem pushforward_rationalPrincipalDivisor_local (R : Type u) |
| 96 | [CommRing R] [IsLocalRing R] [Algebra R S] [Module.Finite R S] |
| 97 | [Fintype (HeightOneSpectrum S)] (f : (Spec (.of S)).functionField) : |
| 98 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 99 | (rationalPrincipalDivisor (Spec (.of S)) f) = |
| 100 | Finsupp.single (IsLocalRing.closedPoint R : Spec (.of R)) |
| 101 | (∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℚ) * |
| 102 | ((Spec (.of S)).ord f (Order.branchPoint S P) : ℚ)) := by |
| 103 | rw [rationalPrincipalDivisor_eq_sum, map_sum, Finsupp.single_finsetSum] |
| 104 | apply Finset.sum_congr rfl |
| 105 | intro P _ |
| 106 | rw [CyclePushforward.pointPushforward_single, affineMap_branchPoint_local, |
| 107 | ResidueDegree.residueDegree_eq_inertiaDeg] |
| 108 | congr 1 |
| 109 | exact mul_comm _ _ |
| 110 | |
| 111 | variable (R : Type u) [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 112 | [Algebra R S] [Module.Finite R S] |
| 113 | |
| 114 | theorem affineMap_branchPoint (P : HeightOneSpectrum S) : |
| 115 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) (Order.branchPoint S P) = |
| 116 | Order.branchPoint R (Order.closedBranch R) := affineMap_branchPoint_local S R P |
| 117 | |
| 118 | theorem pushforward_rationalPrincipalDivisor [Fintype (HeightOneSpectrum S)] |
| 119 | (f : (Spec (.of S)).functionField) : |
| 120 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 121 | (rationalPrincipalDivisor (Spec (.of S)) f) = |
| 122 | Finsupp.single (Order.branchPoint R (Order.closedBranch R)) |
| 123 | (∑ P : HeightOneSpectrum S, ((P.asIdeal.inertiaDeg R : ℕ) : ℚ) * |
| 124 | ((Spec (.of S)).ord f (Order.branchPoint S P) : ℚ)) := |
| 125 | pushforward_rationalPrincipalDivisor_local S R f |
| 126 | |
| 127 | attribute [local instance] FractionRing.liftAlgebra |
| 128 | |
| 129 | /-- Finite affine norm-divisor identity, with all branches and poles. -/ |
| 130 | theorem principalDivisor_norm [Module.IsTorsionFree R S] |
| 131 | [PerfectField (FractionRing R)] (f : FractionRing S) (hf : f ≠ 0) : |
| 132 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 133 | (rationalPrincipalDivisor (Spec (.of S)) (Order.affineFunctionFieldIso S f)) = |
| 134 | rationalPrincipalDivisor (Spec (.of R)) |
| 135 | (Order.affineFunctionFieldIso R (Algebra.norm (FractionRing R) f)) := by |
| 136 | let : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 137 | let := Fintype.ofFinite (HeightOneSpectrum S) |
| 138 | rw [pushforward_rationalPrincipalDivisor, rationalPrincipalDivisor_local, |
| 139 | Order.schemeOrder_closed, SemilocalDivisorNorm.log_ordFrac_norm R f hf] |
| 140 | congr 1 |
| 141 | simp_rw [Order.schemeOrder_eq_localOrder] |
| 142 | simp only [Int.cast_sum, Int.cast_mul, Int.cast_natCast] |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |