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.Normalization.DivisorComparison |
| 2 | |
| 3 | /-! # Function Divisor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FunctionDivisor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Nonzero rational functions algebraic over the ground field have zero |
| 10 | principal divisor. Normal local rings contain both the function and its |
| 11 | inverse; finite normalization extends the conclusion to singular schemes. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 16 | |
| 17 | theorem algebraic_isUnit_integer (k R L : Type*) [Field k] [CommRing R] [IsDomain R] |
| 18 | [IsIntegrallyClosed R] [Field L] [Algebra k R] [Algebra k L] [Algebra R L] |
| 19 | [IsScalarTower k R L] [IsFractionRing R L] (g : L) (hg : g ≠ 0) (ha : IsAlgebraic k g) : |
| 20 | ∃ a : R, IsUnit a ∧ algebraMap R L a = g := by |
| 21 | obtain ⟨a, ha'⟩ := (isIntegrallyClosed_iff L).mp ‹IsIntegrallyClosed R› ha.isIntegral.tower_top |
| 22 | obtain ⟨b, hb'⟩ := (isIntegrallyClosed_iff L).mp ‹IsIntegrallyClosed R› ha.inv.isIntegral.tower_top |
| 23 | refine ⟨a, IsUnit.of_mul_eq_one b ?_, ha'⟩ |
| 24 | apply IsFractionRing.injective R L |
| 25 | rw [map_mul, ha', hb', mul_inv_cancel₀ hg, map_one] |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable {k : Type u} [Field k] {X : Scheme.{u}} [IsIntegral X] |
| 30 | |
| 31 | abbrev stalkScalarAlgebra (f : X ⟶ Spec (.of k)) (x : X) : Algebra k (X.presheaf.stalk x) := |
| 32 | ((X.presheaf.germ ⊤ x (by trivial)).hom.comp |
| 33 | (f.appTop.hom.comp (Scheme.ΓSpecIso (.of k)).inv.hom)).toAlgebra |
| 34 | |
| 35 | theorem stalkScalarTower (f : X ⟶ Spec (.of k)) (x : X) : |
| 36 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 37 | letI := stalkScalarAlgebra f x |
| 38 | IsScalarTower k (X.presheaf.stalk x) X.functionField := by |
| 39 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 40 | let := stalkScalarAlgebra f x |
| 41 | let : Nonempty (⊤ : X.Opens) := ⟨⟨x, trivial⟩⟩ |
| 42 | apply IsScalarTower.of_algebraMap_eq |
| 43 | intro c |
| 44 | exact (Scheme.algebraMap_germ_eq_germToFunctionField X (U := ⊤) (x := x) (by trivial) |
| 45 | (f.appTop ((Scheme.ΓSpecIso (.of k)).inv c))).symm |
| 46 | |
| 47 | theorem ord_eq_zero_of_algebraic [IsLocallyNoetherian X] |
| 48 | (f : X ⟶ Spec (.of k)) (x : X) [IsIntegrallyClosed (X.presheaf.stalk x)] |
| 49 | (g : X.functionField) (hg : g ≠ 0) : |
| 50 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 51 | IsAlgebraic k g → X.ord g x = 0 := by |
| 52 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 53 | intro ha |
| 54 | by_cases hx : coheight x = 1 |
| 55 | · let := stalkScalarAlgebra f x |
| 56 | let := stalkScalarTower f x |
| 57 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 58 | obtain ⟨a, hau, ha'⟩ := algebraic_isUnit_integer k (X.presheaf.stalk x) X.functionField g hg ha |
| 59 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx] |
| 60 | change WithZero.log (Ring.ordFrac (X.presheaf.stalk x) g) = 0 |
| 61 | rw [← ha', Ring.ordFrac_of_isUnit hau, WithZero.log_one] |
| 62 | · exact Scheme.ord_eq_zero_of_coheight_neq_one hx g |
| 63 | |
| 64 | theorem principalDivisor_eq_zero_of_normal [AlgebraicGeometry.IsNoetherian X] |
| 65 | (f : X ⟶ Spec (.of k)) |
| 66 | (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 67 | (g : X.functionField) (hg : g ≠ 0) : |
| 68 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 69 | IsAlgebraic k g → Affine.DivisorNorm.rationalPrincipalDivisor X g = 0 := by |
| 70 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 71 | intro ha |
| 72 | ext x |
| 73 | let := hNormal x |
| 74 | change (X.ord g x : ℚ) = 0 |
| 75 | rw [ord_eq_zero_of_algebraic f x g hg ha, Int.cast_zero] |
| 76 | |
| 77 | theorem principalDivisor_eq_zero [AlgebraicGeometry.IsNoetherian X] [CharZero k] |
| 78 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 79 | (g : X.functionField) (hg : g ≠ 0) : |
| 80 | letI := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 81 | IsAlgebraic k g → Affine.DivisorNorm.rationalPrincipalDivisor X g = 0 := by |
| 82 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra f |
| 83 | intro ha |
| 84 | let := Normalization.DivisorComparison.normalization_noetherian X f |
| 85 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (Normalization.Scheme.normalizationMap X ≫ f) |
| 86 | let hmap := Cycles.Functoriality.FunctionFields.Construction.genericFieldAlgHom (Normalization.Scheme.normalizationMap X) |
| 87 | (Normalization.Fields.normalizationMap_genericPoint X) f |
| 88 | have ha' : IsAlgebraic k ((Normalization.Fields.normalizationFieldIso X).hom g) := |
| 89 | (ha.isIntegral.map hmap).isAlgebraic |
| 90 | have hg' : (Normalization.Fields.normalizationFieldIso X).hom g ≠ 0 := |
| 91 | (map_ne_zero_iff _ (Normalization.Fields.normalizationFieldMap_bijective X).injective).mpr hg |
| 92 | have hz := principalDivisor_eq_zero_of_normal (Normalization.Scheme.normalizationMap X ≫ f) |
| 93 | (Normalization.Scheme.normalization_stalk_integrallyClosed X) |
| 94 | ((Normalization.Fields.normalizationFieldIso X).hom g) hg' ha' |
| 95 | rw [← Normalization.DivisorComparison.normalization_principalDivisor X f g hg, hz, map_zero] |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FunctionDivisor |