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.ValuationExtension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveLocalRings |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BranchStalkField |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ValuativeCenterFields |
| 5 | |
| 6 | /-! # Dedekind Extension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DedekindExtension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The normalized parameter ring maps to a proper curve by extending |
| 13 | its prescribed function-field map. This construction includes all of its |
| 14 | branches at once and fixes the generic-field coordinates. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FractionField |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | theorem stalk_valuation (A : Type u) [CommRing A] [IsDedekindDomain A] |
| 25 | (x : Spec (.of A)) : ValuationRing ((Spec (.of A)).presheaf.stalk x) := by |
| 26 | let : Algebra A ((Spec (.of A)).presheaf.stalk x) := StructureSheaf.stalkAlgebra A x |
| 27 | let : IsLocalization.AtPrime ((Spec (.of A)).presheaf.stalk x) x.asIdeal := |
| 28 | StructureSheaf.IsLocalization.to_stalk A x |
| 29 | let : IsDedekindDomain ((Spec (.of A)).presheaf.stalk x) := |
| 30 | IsLocalization.AtPrime.isDedekindDomain A x.asIdeal _ |
| 31 | exact CurveLocalRings.normal_local_valuation _ |
| 32 | |
| 33 | theorem exists_extension {k : Type u} [Field k] {X : Scheme.{u}} [IsIntegral X] |
| 34 | (f : X ⟶ Spec (.of k)) [IsProper f] |
| 35 | (A : Type u) [CommRing A] [IsDedekindDomain A] |
| 36 | [Algebra k A] [Algebra A X.functionField] [IsFractionRing A X.functionField] |
| 37 | (hscalar : (algebraMap A X.functionField).comp (algebraMap k A) = Foundations.Scheme.FunctionFieldScalar.functionFieldScalarMap f) : |
| 38 | ∃ i : Spec (.of A) ⟶ X, |
| 39 | Spec.map (CommRingCat.ofHom (algebraMap A X.functionField)) ≫ i = Normalization.Scheme.genericMap X ∧ |
| 40 | i ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k A)) := by |
| 41 | let : X.IsSeparated := ⟨by |
| 42 | rw [← Limits.terminal.comp_from f] |
| 43 | infer_instance⟩ |
| 44 | let e := Affine.FractionField.fieldIso A X.functionField |
| 45 | let φ := Spec.map e.inv ≫ Normalization.Scheme.genericMap X |
| 46 | let sA := Spec.map (CommRingCat.ofHom (algebraMap k A)) |
| 47 | have hc : φ ≫ f = Normalization.Scheme.genericMap (Spec (.of A)) ≫ sA := by |
| 48 | dsimp only [φ, sA] |
| 49 | rw [Category.assoc, ← ValuativeCenter.genericMap_scalar, |
| 50 | Normalization.Scheme.genericMap, Spec.fromSpecStalk_eq', ← Spec.map_comp, ← Spec.map_comp] |
| 51 | congr 1 |
| 52 | apply (cancel_mono e.hom).mp |
| 53 | rw [Category.assoc, Iso.inv_hom_id, Category.comp_id, Category.assoc, |
| 54 | Affine.FractionField.toStalk_fieldIso] |
| 55 | exact congrArg CommRingCat.ofHom hscalar.symm |
| 56 | obtain ⟨i, hi, hf⟩ := ValuationExtension.exists_extension sA f φ hc (stalk_valuation A) |
| 57 | refine ⟨i, ?_, hf⟩ |
| 58 | have hgeneric : Spec.map (CommRingCat.ofHom (algebraMap A X.functionField)) = |
| 59 | Spec.map e.hom ≫ Normalization.Scheme.genericMap (Spec (.of A)) := by |
| 60 | rw [Normalization.Scheme.genericMap, Spec.fromSpecStalk_eq', ← Spec.map_comp, Affine.FractionField.toStalk_fieldIso] |
| 61 | rw [hgeneric, Category.assoc, hi] |
| 62 | simp [φ, ← Spec.map_comp_assoc] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DedekindExtension |