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.Polynomial.ProductGerms |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ClosedStalkKernel |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.KernelSquare |
| 4 | |
| 5 | /-! # Section Kernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.SectionKernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual scalar section of an affine-line product has native |
| 12 | stalk kernel generated by its intrinsic parameter minus that scalar. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped _root_.Polynomial |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.ProductChart OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.ProductChart.Section |
| 21 | |
| 22 | variable {k : Type} [Field k] {Z : Scheme} (f : Z ⟶ Spec (.of k)) (a : k) |
| 23 | |
| 24 | instance closed : IsClosedImmersion (ProductChart.Section.sectionMap f a) := by |
| 25 | let : IsSeparated (ProductChart.source f) := |
| 26 | inferInstanceAs (IsSeparated (pullback.snd (ProductChart.base (k := k)) f)) |
| 27 | let : IsClosedImmersion (ProductChart.Section.sectionMap f a ≫ ProductChart.source f) := by |
| 28 | rw [ProductChart.Section.section_source] |
| 29 | infer_instance |
| 30 | exact IsClosedImmersion.of_comp _ (ProductChart.source f) |
| 31 | |
| 32 | theorem kernel (z : Z) : RingHom.ker ((ProductChart.Section.sectionMap f a).stalkMap z).hom = |
| 33 | Ideal.span {Affine.ParameterFiber.germ k (ProductChart.parameter f) (ProductChart.Section.sectionMap f a z) a} := by |
| 34 | obtain ⟨U, hU, hz, _⟩ := exists_isAffineOpen_mem_and_subset (TopologicalSpace.Opens.mem_top z) |
| 35 | obtain ⟨q, rfl⟩ := (hU.range_fromSpec.symm ▸ hz : z ∈ Set.range hU.fromSpec) |
| 36 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 37 | let b := algebraMap k Γ(Z, U) a |
| 38 | let l := Spec.map (CommRingCat.ofHom (Polynomial.evalRingHom b)) |
| 39 | apply Stalk.KernelSquare.principal_at_image (ProductChart.chart f U hU) (ProductChart.Section.sectionMap f a) hU.fromSpec l |
| 40 | (ProductChart.Section.chart_section f U hU a) q (fun x => Affine.ParameterFiber.germ k (ProductChart.parameter f) x a) |
| 41 | have he : RingHom.ker (l.stalkMap q).hom = |
| 42 | Ideal.span {StructureSheaf.toStalk Γ(Z, U)[X] (l q) (Polynomial.X - Polynomial.C b)} := by |
| 43 | rw [Affine.ClosedStalkKernel.kernel (Polynomial.evalRingHom b) |
| 44 | (fun c => ⟨Polynomial.C c, Polynomial.eval_C⟩) q, |
| 45 | Polynomial.ker_evalRingHom, Ideal.map_span, Set.image_singleton] |
| 46 | rfl |
| 47 | exact he.trans (congrArg (fun r => Ideal.span {r}) |
| 48 | (ProductGerms.chart f U hU (l q) a).symm) |
| 49 | |
| 50 | def quotientEquiv (z : Z) : |
| 51 | ((ProductChart.space f).presheaf.stalk (ProductChart.Section.sectionMap f a z) ⧸ |
| 52 | Ideal.span {Affine.ParameterFiber.germ k (ProductChart.parameter f) (ProductChart.Section.sectionMap f a z) a}) ≃+* |
| 53 | Z.presheaf.stalk z := |
| 54 | (Ideal.quotEquivOfEq (kernel f a z).symm).trans |
| 55 | (RingHom.quotientKerEquivOfSurjective ((ProductChart.Section.sectionMap f a).stalkMap_surjective z)) |
| 56 | |
| 57 | theorem quotientEquiv_mk (z : Z) (r : (ProductChart.space f).presheaf.stalk (ProductChart.Section.sectionMap f a z)) : |
| 58 | quotientEquiv f a z (Ideal.Quotient.mk _ r) = (ProductChart.Section.sectionMap f a).stalkMap z r := by |
| 59 | simp only [quotientEquiv, RingEquiv.trans_apply, Ideal.quotEquivOfEq_mk, |
| 60 | RingHom.quotientKerEquivOfSurjective_apply_mk] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.SectionKernel |