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.Finite.FieldNormalization |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme |
| 3 | |
| 4 | /-! # Normalization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.Normalization.BundleCycles.RelativeNormalization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Normalize an integral scheme in a finite extension of its actual |
| 11 | function field. The scheme and its finite morphism are constructed from |
| 12 | relative normalization, with affine rings given by integral closures. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (Y : Scheme.{u}) [IsIntegral Y] (L : Type u) [Field L] [Algebra Y.functionField L] |
| 19 | |
| 20 | def fieldGenericMap : Spec (.of L) ⟶ Y := |
| 21 | Spec.map (CommRingCat.ofHom (algebraMap Y.functionField L)) ≫ |
| 22 | IntersectionTheory.ProjectionFormula.Normalization.Scheme.genericMap Y |
| 23 | |
| 24 | instance fieldGenericMap_quasiCompact : QuasiCompact (fieldGenericMap Y L) := by |
| 25 | unfold fieldGenericMap |
| 26 | infer_instance |
| 27 | |
| 28 | instance fieldGenericMap_quasiSeparated : QuasiSeparated (fieldGenericMap Y L) := by |
| 29 | unfold fieldGenericMap |
| 30 | infer_instance |
| 31 | |
| 32 | def relativeNormalization : Scheme := (fieldGenericMap Y L).normalization |
| 33 | |
| 34 | def relativeNormalizationMap : relativeNormalization Y L ⟶ Y := |
| 35 | (fieldGenericMap Y L).fromNormalization |
| 36 | |
| 37 | instance relativeNormalization_integral : IsIntegral (relativeNormalization Y L) := by |
| 38 | unfold relativeNormalization |
| 39 | infer_instance |
| 40 | |
| 41 | instance relativeNormalizationMap_integral : IsIntegralHom (relativeNormalizationMap Y L) := by |
| 42 | unfold relativeNormalizationMap relativeNormalization |
| 43 | infer_instance |
| 44 | |
| 45 | theorem fieldGenericMap_apply (x : Spec (.of L)) : fieldGenericMap Y L x = genericPoint Y := |
| 46 | IntersectionTheory.ProjectionFormula.Normalization.Scheme.genericMap_apply Y _ |
| 47 | |
| 48 | theorem fieldGenericMap_preimage (U : Y.Opens) [Nonempty U] : fieldGenericMap Y L ⁻¹ᵁ U = ⊤ := by |
| 49 | apply Opens.ext |
| 50 | apply Set.ext |
| 51 | intro x |
| 52 | change fieldGenericMap Y L x ∈ U ↔ True |
| 53 | rw [fieldGenericMap_apply] |
| 54 | exact iff_of_true (((genericPoint_spec Y).mem_open_set_iff U.isOpen).mpr |
| 55 | (by simpa using (show Nonempty U from inferInstance))) trivial |
| 56 | |
| 57 | def preimageFieldIso (U : Y.Opens) [Nonempty U] : |
| 58 | Γ(Spec (.of L), fieldGenericMap Y L ⁻¹ᵁ U) ≅ .of L := |
| 59 | (Spec (.of L)).presheaf.mapIso (eqToIso (fieldGenericMap_preimage Y L U).symm).op ≪≫ |
| 60 | Scheme.ΓSpecIso (.of L) |
| 61 | |
| 62 | theorem fieldGenericMap_app (U : Y.Opens) [Nonempty U] : |
| 63 | (fieldGenericMap Y L).app U = |
| 64 | Y.germToFunctionField U ≫ CommRingCat.ofHom (algebraMap Y.functionField L) ≫ |
| 65 | (preimageFieldIso Y L U).inv := by |
| 66 | change (Spec.map (CommRingCat.ofHom (algebraMap Y.functionField L)) ≫ |
| 67 | IntersectionTheory.ProjectionFormula.Normalization.Scheme.genericMap Y).app U = _ |
| 68 | rw [Scheme.Hom.comp_app] |
| 69 | rw [IntersectionTheory.ProjectionFormula.Normalization.Scheme.genericMap_app] |
| 70 | simp [IntersectionTheory.ProjectionFormula.Normalization.Scheme.preimageFieldIso, preimageFieldIso, |
| 71 | Category.assoc, ← Scheme.ΓSpecIso_inv_naturality_assoc] |
| 72 | congr 4 |
| 73 | |
| 74 | local instance (U : Y.Opens) [Nonempty U] : Algebra Γ(Y, U) L := |
| 75 | ((algebraMap Y.functionField L).comp (algebraMap Γ(Y, U) Y.functionField)).toAlgebra |
| 76 | |
| 77 | local instance (U : Y.Opens) [Nonempty U] : IsScalarTower Γ(Y, U) Y.functionField L := |
| 78 | IsScalarTower.of_algebraMap_eq' rfl |
| 79 | |
| 80 | def preimageFieldAlgEquiv (U : Y.Opens) [Nonempty U] : |
| 81 | letI := ((fieldGenericMap Y L).app U).hom.toAlgebra |
| 82 | Γ(Spec (.of L), fieldGenericMap Y L ⁻¹ᵁ U) ≃ₐ[Γ(Y, U)] L := by |
| 83 | let := ((fieldGenericMap Y L).app U).hom.toAlgebra |
| 84 | refine { (preimageFieldIso Y L U).commRingCatIsoToRingEquiv with commutes' := ?_ } |
| 85 | intro a |
| 86 | change (preimageFieldIso Y L U).hom ((fieldGenericMap Y L).app U a) = |
| 87 | algebraMap Y.functionField L (Y.germToFunctionField U a) |
| 88 | rw [fieldGenericMap_app] |
| 89 | exact ConcreteCategory.congr_hom (preimageFieldIso Y L U).inv_hom_id |
| 90 | (algebraMap Y.functionField L (Y.germToFunctionField U a)) |
| 91 | |
| 92 | variable [Module.Finite Y.functionField L] |
| 93 | |
| 94 | theorem finite_affineRing {k : Type u} [Field k] [CharZero k] |
| 95 | (f : Y ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 96 | (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 97 | letI := ((fieldGenericMap Y L).app U).hom.toAlgebra |
| 98 | Module.Finite Γ(Y, U) |
| 99 | (integralClosure Γ(Y, U) Γ(Spec (.of L), fieldGenericMap Y L ⁻¹ᵁ U)) := by |
| 100 | let := ((fieldGenericMap Y L).app U).hom.toAlgebra |
| 101 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 102 | let := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 103 | let := functionField_isFractionRing_of_isAffineOpen Y U hU |
| 104 | let : Module.Finite Γ(Y, U) (integralClosure Γ(Y, U) L) := |
| 105 | IntersectionTheory.ProjectionFormula.Finite.FieldNormalization.finite_integralClosure_extension k Γ(Y, U) Y.functionField L |
| 106 | let e := (preimageFieldAlgEquiv Y L U).mapIntegralClosure |
| 107 | exact Module.Finite.of_surjective e.symm.toLinearMap e.symm.surjective |
| 108 | |
| 109 | /-- The intermediate normalization morphism is finite, proved on every |
| 110 | affine chart from the finite integral-closure theorem. -/ |
| 111 | theorem relativeNormalizationMap_isFinite {k : Type u} [Field k] [CharZero k] |
| 112 | (f : Y ⟶ Spec (.of k)) [LocallyOfFiniteType f] : |
| 113 | IsFinite (relativeNormalizationMap Y L) := by |
| 114 | refine { toIsAffineHom := inferInstance, finite_app := ?_ } |
| 115 | intro U hU |
| 116 | by_cases hbot : U = ⊥ |
| 117 | · subst U |
| 118 | have hpre : relativeNormalizationMap Y L ⁻¹ᵁ (⊥ : Y.Opens) = ⊥ := by simp |
| 119 | let : Subsingleton Γ(relativeNormalization Y L, |
| 120 | relativeNormalizationMap Y L ⁻¹ᵁ (⊥ : Y.Opens)) := by |
| 121 | rw [hpre] |
| 122 | infer_instance |
| 123 | exact RingHom.Finite.of_surjective _ (Function.surjective_to_subsingleton _) |
| 124 | · let : Nonempty U := Set.nonempty_coe_sort.mpr ((U.ne_bot_iff_nonempty).mp hbot) |
| 125 | let := ((fieldGenericMap Y L).app U).hom.toAlgebra |
| 126 | let := finite_affineRing Y L f U hU |
| 127 | change ((fieldGenericMap Y L).fromNormalization.app U).hom.Finite |
| 128 | rw [(fieldGenericMap Y L).fromNormalization_app hU, CommRingCat.hom_comp, |
| 129 | RingHom.finite_respectsIso.cancel_right_isIso] |
| 130 | exact RingHom.finite_algebraMap.mpr inferInstance |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.Normalization.BundleCycles.RelativeNormalization |