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.RestrictedSupportCoefficient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SupportMultiplicity |
| 3 | |
| 4 | /-! # Restricted Support Sum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RestrictedSupportSum |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Reindex the constructed principal relation by all height-one |
| 11 | components of the divisor equation in the actual support stalk. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | open scoped Classical |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CanonicalSurfaceReciprocity |
| 20 | |
| 21 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 22 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 23 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport k) (hDW : ¬ W.val ≤ D.val) |
| 24 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 25 | (hunit : ∀ y : CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val, Order.coheight y = 1 → |
| 26 | CycleClass.Geometric.GenericPoint.reducedSupportι W.val y ∈ (D.val : Set X.carrier) → |
| 27 | ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y, IsUnit u ∧ |
| 28 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk y) |
| 29 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g) |
| 30 | (C : X.DimensionCycleSupport (1 + (k + 1))) |
| 31 | (hxD : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (D.val : Set X.carrier)) |
| 32 | (hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier)) |
| 33 | (r : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) (hr : r ≠ 0) |
| 34 | (he : RingHom.ker (Local.Principal.supportStalkMap X.carrier D.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxD).hom = Ideal.span {r}) |
| 35 | (a b : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 36 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) |
| 37 | (havoid : ∀ p : PrimeSpectrum ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 38 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)), p.asIdeal.height = 1 → |
| 39 | Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r ∈ p.asIdeal → |
| 40 | a ∉ p.asIdeal ∧ b ∉ p.asIdeal) |
| 41 | (hab : g = algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 42 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField a / |
| 43 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 44 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField b) : |
| 45 | let R := (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW) |
| 46 | let f := Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r |
| 47 | let hf := Local.SupportMultiplicity.restricted_nonzero X k D W hDW _ hxD hxW r he |
| 48 | RestrictedSupportRelation.cycle X m k D W hDW g hunit C = |
| 49 | ∑ p ∈ CanonicalSurfaceReciprocity.primes R f hf, CanonicalSurfaceReciprocity.weight R p f * (CanonicalSurfaceReciprocity.restrictedOrder R p a - CanonicalSurfaceReciprocity.restrictedOrder R p b) := by |
| 50 | let x := CycleClass.Thom.IntersectionGeometry.supportPoint C.val |
| 51 | let R := (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW) |
| 52 | let f := Local.Principal.supportStalkMap X.carrier W.val x hxW r |
| 53 | have hf : f ≠ 0 := Local.SupportMultiplicity.restricted_nonzero X k D W hDW x hxD hxW r he |
| 54 | let S := CanonicalSurfaceReciprocity.primes R f hf |
| 55 | let c := Divisor.SupportCycle.cycle X m k D W |
| 56 | let A (p : PrimeSpectrum R) (hp : p ∈ S) : c.support := |
| 57 | ⟨⟨Support.LocalDivisor.support X k W x hxW p, |
| 58 | by rw [Support.LocalDivisor.codimension X k W x hxW p m ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).1]; omega⟩, |
| 59 | Local.SupportMultiplicity.mem_cycle X m k D W hDW x hxD hxW r hr he p |
| 60 | ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).1 ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).2⟩ |
| 61 | have hweight (p : PrimeSpectrum R) (hp : p ∈ S) : c (A p hp).val = CanonicalSurfaceReciprocity.weight R p f := |
| 62 | (Divisor.SupportCycle.coefficient X m k D W hDW (A p hp).val).trans |
| 63 | (Local.SupportMultiplicity.multiplicity_eq_weight X m k D W hDW x hxD hxW r hr he p |
| 64 | ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).1) |
| 65 | have hterm (p : PrimeSpectrum R) (hp : p ∈ S) : |
| 66 | RestrictedSupportRelation.term X m k D W hDW g hunit (A p hp).val (A p hp).property C = |
| 67 | CanonicalSurfaceReciprocity.restrictedOrder R p a - CanonicalSurfaceReciprocity.restrictedOrder R p b := by |
| 68 | have hxA : x ∈ ((A p hp).val.val : Set X.carrier) := Support.LocalDivisor.point_mem X k W x hxW p |
| 69 | let hAW := (Divisor.SupportCycle.support_subset X m k D W hDW (A p hp).val (A p hp).property).2 |
| 70 | have hprime : Support.DivisorPrime.prime X k W x hxW (A p hp).val.val hAW hxA = p := by |
| 71 | apply Support.DivisorPrime.support_injective X k W x hxW |
| 72 | exact Support.DivisorPrime.image X k W x hxW (A p hp).val.val hAW hxA |
| 73 | have ha := (havoid p ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).1 ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).2).1 |
| 74 | have hb := (havoid p ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).1 ((CanonicalSurfaceReciprocity.mem_primes R f hf p).mp hp).2).2 |
| 75 | have ha' : a ∉ (Support.DivisorPrime.prime X k W x hxW (A p hp).val.val hAW hxA).asIdeal := by |
| 76 | rw [hprime] |
| 77 | exact ha |
| 78 | have hb' : b ∉ (Support.DivisorPrime.prime X k W x hxW (A p hp).val.val hAW hxA).asIdeal := by |
| 79 | rw [hprime] |
| 80 | exact hb |
| 81 | have h := RestrictedSupportCoefficient.coefficient X m k D W hDW g hunit |
| 82 | (A p hp).val (A p hp).property C hxW hxA a b ha' hb' hab |
| 83 | change _ = CanonicalSurfaceReciprocity.restrictedOrder R (Support.DivisorPrime.prime X k W x hxW (A p hp).val.val hAW hxA) a - |
| 84 | CanonicalSurfaceReciprocity.restrictedOrder R (Support.DivisorPrime.prime X k W x hxW (A p hp).val.val hAW hxA) b at h |
| 85 | rw [hprime] at h |
| 86 | exact h |
| 87 | change (∑ B : c.support, c B.val • |
| 88 | RestrictedSupportRelation.term X m k D W hDW g hunit B.val B.property) C = _ |
| 89 | simp only [Finsupp.finsetSum_apply, Finsupp.smul_apply, smul_eq_mul] |
| 90 | symm |
| 91 | apply Finset.sum_bij_ne_zero (fun p hp _ => A p hp) |
| 92 | · intro p hp hn |
| 93 | exact Finset.mem_univ _ |
| 94 | · intro p hp _ q hq _ heq |
| 95 | apply Support.DivisorPrime.support_injective X k W x hxW |
| 96 | exact congrArg (fun B : c.support => B.val.val) heq |
| 97 | · intro B _ hn |
| 98 | have hxB : x ∈ (B.val.val : Set X.carrier) := by |
| 99 | by_contra h |
| 100 | have hz := RestrictedSupportCoefficient.zero_outside X m k D W hDW g hunit |
| 101 | B.val B.property C hxW h |
| 102 | exact hn (by rw [hz, mul_zero]) |
| 103 | let hBW := (Divisor.SupportCycle.support_subset X m k D W hDW B.val B.property).2 |
| 104 | let p := Support.DivisorPrime.prime X k W x hxW B.val.val hBW hxB |
| 105 | have hp : p.asIdeal.height = 1 := by |
| 106 | let B' : X.DimensionCycleSupport (k + 1) := ⟨B.val.val, by rw [B.val.property]; omega⟩ |
| 107 | exact Support.DivisorPrime.height X k W x hxW m B' hBW hxB |
| 108 | have him : Support.LocalDivisor.support X k W x hxW p = B.val.val := |
| 109 | Support.DivisorPrime.image X k W x hxW B.val.val hBW hxB |
| 110 | have hcw : c B.val = CanonicalSurfaceReciprocity.weight R p f := by |
| 111 | have hi := Local.SupportMultiplicity.multiplicity_eq_weight X m k D W hDW x hxD hxW r hr he p hp |
| 112 | rw [him] at hi |
| 113 | exact (Divisor.SupportCycle.coefficient X m k D W hDW B.val).trans hi |
| 114 | have hpS : p ∈ S := by |
| 115 | by_contra hout |
| 116 | have hz := CanonicalSurfaceReciprocity.weight_eq_zero R f hf p hp hout |
| 117 | exact Finsupp.mem_support_iff.mp B.property (hcw.trans hz) |
| 118 | have heq : A p hpS = B := Subtype.ext (Subtype.ext him) |
| 119 | have hn' : CanonicalSurfaceReciprocity.weight R p f * (CanonicalSurfaceReciprocity.restrictedOrder R p a - CanonicalSurfaceReciprocity.restrictedOrder R p b) ≠ 0 := by |
| 120 | rw [← hweight p hpS, ← hterm p hpS, heq] |
| 121 | exact hn |
| 122 | exact ⟨p, hpS, hn', heq⟩ |
| 123 | · intro p hp _ |
| 124 | rw [hweight p hp, hterm p hp] |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RestrictedSupportSum |