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.ChartGerm |
| 2 | |
| 3 | /-! # Chart Equations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Fixed numerator and denominator sections for a nonzero support |
| 10 | rational function, chosen on the finite ambient affine chart cover. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts |
| 15 | |
| 16 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : TopologicalSpace.IrreducibleCloseds X.carrier) |
| 17 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 18 | |
| 19 | def numerator : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W, Affine.ChartGerm.FiniteSupportCharts.ring X W i := (Affine.ChartGerm.FiniteSupportCharts.exists_fractions X W g hg).choose |
| 20 | |
| 21 | def denominator : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W, Affine.ChartGerm.FiniteSupportCharts.ring X W i := (Affine.ChartGerm.FiniteSupportCharts.exists_fractions X W g hg).choose_spec.choose |
| 22 | |
| 23 | theorem avoid (i : Affine.ChartGerm.FiniteSupportCharts.Index X W) : |
| 24 | numerator X W g hg i ∉ (Affine.ChartGerm.FiniteSupportCharts.prime X W i).asIdeal ∧ |
| 25 | denominator X W g hg i ∉ (Affine.ChartGerm.FiniteSupportCharts.prime X W i).asIdeal := |
| 26 | (Affine.ChartGerm.FiniteSupportCharts.exists_fractions X W g hg).choose_spec.choose_spec.1 i |
| 27 | |
| 28 | def equation (i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool) : Affine.ChartGerm.FiniteSupportCharts.ring X W i.1 := |
| 29 | if i.2 then numerator X W g hg i.1 else denominator X W g hg i.1 |
| 30 | |
| 31 | theorem equation_avoid (i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool) : equation X W g hg i ∉ (Affine.ChartGerm.FiniteSupportCharts.prime X W i.1).asIdeal := by |
| 32 | cases h : i.2 <;> simp only [equation, h, Bool.false_eq_true, ↓reduceIte] |
| 33 | · exact (avoid X W g hg i.1).2 |
| 34 | · exact (avoid X W g hg i.1).1 |
| 35 | |
| 36 | theorem fraction (i : Affine.ChartGerm.FiniteSupportCharts.Index X W) (x : X.carrier) (hxW : x ∈ (W : Set X.carrier)) (hxU : x ∈ Affine.ChartGerm.FiniteSupportCharts.opens X W i) : |
| 37 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 38 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) x hxU (numerator X W g hg i)) ≠ 0 ∧ |
| 39 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 40 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) x hxU (denominator X W g hg i)) ≠ 0 ∧ |
| 41 | g = Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 42 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) x hxU (numerator X W g hg i)) / |
| 43 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 44 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) x hxU (denominator X W g hg i)) := |
| 45 | (Affine.ChartGerm.FiniteSupportCharts.exists_fractions X W g hg).choose_spec.choose_spec.2 i x hxW hxU |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |