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.OrderQuotientTransport |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.StalkSupport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GlobalParameterSum |
| 4 | |
| 5 | /-! # Support Germ Order -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportGermOrder |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native principal colengths and divisor weights on corresponding |
| 12 | reduced supports agree under an open affine chart. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 20 | |
| 21 | variable {Y X : Scheme} (j : Y ⟶ X) [IsOpenImmersion j] |
| 22 | (A : IrreducibleCloseds Y) (B : IrreducibleCloseds X) |
| 23 | (hAB : j (CycleClass.Thom.IntersectionGeometry.supportPoint A) = CycleClass.Thom.IntersectionGeometry.supportPoint B) |
| 24 | (y : Y) (hyA : y ∈ (A : Set Y)) (hxB : j y ∈ (B : Set X)) (r : X.presheaf.stalk (j y)) |
| 25 | |
| 26 | include hAB |
| 27 | |
| 28 | omit [IsOpenImmersion j] in |
| 29 | theorem nonzero_iff : |
| 30 | Local.Principal.supportStalkMap Y A y hyA (j.stalkMap y r) ≠ 0 ↔ Local.Principal.supportStalkMap X B (j y) hxB r ≠ 0 := by |
| 31 | have h := StalkSupport.kernelPrime_comap j A B hAB y hyA hxB |
| 32 | change ¬ r ∈ (Stalk.PrimeQuotient.kernelPrime Y A y hyA).asIdeal.comap (j.stalkMap y).hom ↔ |
| 33 | ¬ r ∈ (Stalk.PrimeQuotient.kernelPrime X B (j y) hxB).asIdeal |
| 34 | rw [h] |
| 35 | |
| 36 | theorem order : |
| 37 | Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A y hyA)) |
| 38 | (Local.Principal.supportStalkMap Y A y hyA (j.stalkMap y r)) = |
| 39 | Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage B (j y) hxB)) |
| 40 | (Local.Principal.supportStalkMap X B (j y) hxB r) := by |
| 41 | let e := (asIso (j.stalkMap y)).commRingCatIsoToRingEquiv |
| 42 | let φ := Local.Principal.supportStalkMap X B (j y) hxB |
| 43 | let ψ := Local.Principal.supportStalkMap Y A y hyA |
| 44 | have hk : RingHom.ker ψ.hom = (RingHom.ker φ.hom).map e.toRingHom := |
| 45 | (StalkSupport.kernelPrime_map j A B hAB y hyA hxB).symm |
| 46 | rw [OrderQuotientTransport.ord ψ.hom (Local.Principal.supportStalkMap_surjective Y A y hyA), |
| 47 | OrderQuotientTransport.ord φ.hom (Local.Principal.supportStalkMap_surjective X B (j y) hxB)] |
| 48 | exact OrderQuotientTransport.Ring.equiv e (RingHom.ker φ.hom) (RingHom.ker ψ.hom) hk r |
| 49 | |
| 50 | include hyA hxB in |
| 51 | theorem weight : GlobalParameterSum.Weights.weight Y y (j.stalkMap y r) A = |
| 52 | GlobalParameterSum.Weights.weight X (j y) r B := by |
| 53 | rw [GlobalParameterSum.Weights.weight, dite_eq_left hyA, |
| 54 | GlobalParameterSum.Weights.weight, dite_eq_left hxB] |
| 55 | by_cases h : Local.Principal.supportStalkMap X B (j y) hxB r ≠ 0 |
| 56 | · have h' := (nonzero_iff j A B hAB y hyA hxB r).mpr h |
| 57 | rw [ite_eq_left h', ite_eq_left h, order j A B hAB y hyA hxB r] |
| 58 | · have h' : ¬ Local.Principal.supportStalkMap Y A y hyA (j.stalkMap y r) ≠ 0 := |
| 59 | fun hs => h ((nonzero_iff j A B hAB y hyA hxB r).mp hs) |
| 60 | rw [ite_eq_right h', ite_eq_right h] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportGermOrder |