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.Relative.NormalizationFields |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Integral.Height |
| 3 | |
| 4 | /-! # Normalization Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.NormalizationCharts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual integral-closure charts of relative normalization and preservation |
| 11 | of point codimensions for a finite-type base over a field. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.Normalization OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.NormalizationLocal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (Y : Scheme.{u}) [IsIntegral Y] (L : Type u) [Field L] [Algebra Y.functionField L] |
| 22 | |
| 23 | local instance (U : Y.Opens) [Nonempty U] : Algebra Γ(Y, U) L := |
| 24 | ((algebraMap Y.functionField L).comp (algebraMap Γ(Y, U) Y.functionField)).toAlgebra |
| 25 | |
| 26 | local instance (U : Y.Opens) [Nonempty U] : IsScalarTower Γ(Y, U) Y.functionField L := |
| 27 | IsScalarTower.of_algebraMap_eq' rfl |
| 28 | |
| 29 | def chartMap (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 30 | Spec (.of (integralClosure Γ(Y, U) L)) ⟶ Normalization.relativeNormalization Y L := |
| 31 | Spec.map (NormalizationLocal.affineRingIso Y L U hU).hom ≫ (hU.preimage (Normalization.relativeNormalizationMap Y L)).fromSpec |
| 32 | |
| 33 | instance (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 34 | IsOpenImmersion (chartMap Y L U hU) := by |
| 35 | unfold chartMap |
| 36 | infer_instance |
| 37 | |
| 38 | theorem chartMap_comp (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 39 | chartMap Y L U hU ≫ Normalization.relativeNormalizationMap Y L = |
| 40 | Spec.map (CommRingCat.ofHom (algebraMap Γ(Y, U) (integralClosure Γ(Y, U) L))) ≫ |
| 41 | hU.fromSpec := by |
| 42 | rw [chartMap, Category.assoc, |
| 43 | ← hU.SpecMap_appLE_fromSpec (Normalization.relativeNormalizationMap Y L) |
| 44 | (hU.preimage (Normalization.relativeNormalizationMap Y L)) le_rfl, |
| 45 | ← Category.assoc, ← Spec.map_comp] |
| 46 | congr 2 |
| 47 | rw [← Scheme.Hom.app_eq_appLE, NormalizationLocal.affineRingIso_base] |
| 48 | |
| 49 | theorem chartMap_range (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 50 | Set.range (chartMap Y L U hU) = |
| 51 | (Normalization.relativeNormalizationMap Y L ⁻¹ᵁ U : Set (Normalization.relativeNormalization Y L)) := by |
| 52 | rw [chartMap, Scheme.Hom.comp_base, TopCat.coe_comp, Set.range_comp, |
| 53 | (Spec.map (NormalizationLocal.affineRingIso Y L U hU).hom).surjective.range_eq, Set.image_univ] |
| 54 | exact (hU.preimage (Normalization.relativeNormalizationMap Y L)).range_fromSpec |
| 55 | |
| 56 | theorem relativeNormalizationMap_coheight {k : Type u} [Field k] |
| 57 | (f : Y ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 58 | (z : Normalization.relativeNormalization Y L) : |
| 59 | coheight (Normalization.relativeNormalizationMap Y L z) = coheight z := by |
| 60 | obtain ⟨U, hU, hzU, _⟩ := |
| 61 | exists_isAffineOpen_mem_and_subset (TopologicalSpace.Opens.mem_top (Normalization.relativeNormalizationMap Y L z)) |
| 62 | let : Nonempty U := ⟨⟨Normalization.relativeNormalizationMap Y L z, hzU⟩⟩ |
| 63 | let A := Γ(Y, U) |
| 64 | let B := integralClosure A L |
| 65 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 66 | let := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 67 | let := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 68 | have hinjL : Function.Injective (algebraMap A L) := |
| 69 | (algebraMap Y.functionField L).injective.comp (IsFractionRing.injective A Y.functionField) |
| 70 | have hinj : Function.Injective (algebraMap A B) := by |
| 71 | intro a b hab |
| 72 | apply hinjL |
| 73 | exact congrArg (fun t : B => (t : L)) hab |
| 74 | have hzrange : z ∈ Set.range (chartMap Y L U hU) := by |
| 75 | rw [chartMap_range] |
| 76 | exact hzU |
| 77 | obtain ⟨q, hq⟩ := hzrange |
| 78 | have hpoint := congrArg (fun i : Spec (.of B) ⟶ Y => i q) (chartMap_comp Y L U hU) |
| 79 | change Normalization.relativeNormalizationMap Y L (chartMap Y L U hU q) = |
| 80 | hU.fromSpec ((Spec.map (CommRingCat.ofHom (algebraMap A B))) q) at hpoint |
| 81 | rw [← hq, hpoint] |
| 82 | simp only [coheight_eq_of_isOpenImmersion] |
| 83 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 84 | exact Integral.Height.integral_height_under k A B hinj q |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.NormalizationCharts |