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.FractionField |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FunctionFields |
| 3 | |
| 4 | /-! # Norm Fields -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.NormFields |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The finite affine norm-divisor formula in any specified compatible |
| 11 | fraction fields, retaining the native scheme map and all divisor branches. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FractionField OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FunctionFields OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | local instance (A : Type u) [CommRing A] [IsDomain A] : |
| 22 | Algebra A (Spec (.of A)).functionField := |
| 23 | (StructureSheaf.toStalk A (genericPoint (Spec (.of A)))).hom.toAlgebra |
| 24 | |
| 25 | theorem fractionField_comparison (R : Type u) [CommRing R] [IsDedekindDomain R] |
| 26 | (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K] (g : FractionRing R) : |
| 27 | (FractionField.fieldIso R K).hom (Order.affineFunctionFieldIso R g) = FractionRing.algEquiv R K g := by |
| 28 | have h : (FractionField.fieldIso R K).hom.hom.comp (Order.affineFunctionFieldIso R).toRingHom = |
| 29 | (FractionRing.algEquiv R K).toRingHom := by |
| 30 | apply IsFractionRing.ringHom_ext (A := R) |
| 31 | intro a |
| 32 | change (FractionField.fieldIso R K).hom |
| 33 | (Order.affineFunctionFieldIso R (algebraMap R (FractionRing R) a)) = |
| 34 | FractionRing.algEquiv R K (algebraMap R (FractionRing R) a) |
| 35 | rw [AlgEquiv.commutes, AlgEquiv.commutes] |
| 36 | exact congrArg (fun t : CommRingCat.of R ⟶ CommRingCat.of K => t a) (FractionField.toStalk_fieldIso R K) |
| 37 | exact congrArg (fun t : FractionRing R →+* K => t g) h |
| 38 | |
| 39 | theorem schemeOrder_closed (R : Type u) [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 40 | (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K] |
| 41 | (g : (Spec (.of R)).functionField) : |
| 42 | (Spec (.of R)).ord g (IsLocalRing.closedPoint R) = |
| 43 | WithZero.log (Ring.ordFrac R ((FractionField.fieldIso R K).hom g)) := by |
| 44 | obtain ⟨a, rfl⟩ := (Order.affineFunctionFieldIso R).surjective g |
| 45 | rw [fractionField_comparison] |
| 46 | change (Spec (.of R)).ord (Order.affineFunctionFieldIso R a) |
| 47 | (Order.branchPoint R (Order.closedBranch R)) = _ |
| 48 | rw [Order.schemeOrder_closed] |
| 49 | exact (congrArg WithZero.log (OrderQuotientTransport.ordFrac_equiv (RingEquiv.refl R) |
| 50 | (FractionRing.algEquiv R K).toRingEquiv (fun r => (FractionRing.algEquiv R K).commutes r) a)).symm |
| 51 | |
| 52 | variable (R S : Type u) [CommRing R] [CommRing S] [IsDedekindDomain R] [IsDedekindDomain S] |
| 53 | [Algebra R S] [Module.IsTorsionFree R S] |
| 54 | (K L : Type u) [Field K] [Field L] [Algebra R K] [IsFractionRing R K] |
| 55 | [Algebra S L] [IsFractionRing S L] [Algebra R L] [IsScalarTower R S L] |
| 56 | [Algebra K L] [IsScalarTower R K L] |
| 57 | |
| 58 | theorem fieldMap_square : |
| 59 | (FractionField.fieldIso R K).hom ≫ CommRingCat.ofHom (algebraMap K L) = |
| 60 | FunctionFields.affineFieldMap R S ≫ (FractionField.fieldIso S L).hom := by |
| 61 | let : IsFractionRing R (Spec (.of R)).functionField := |
| 62 | functionField_isFractionRing_of_affine (.of R) |
| 63 | apply CommRingCat.hom_ext |
| 64 | apply IsFractionRing.ringHom_ext (A := R) |
| 65 | intro a |
| 66 | have hs := congrArg (fun t : CommRingCat.of R ⟶ (Spec (.of S)).functionField => |
| 67 | (FractionField.fieldIso S L).hom (t a)) (FunctionFields.affineFieldMap_toStalk R S) |
| 68 | have hr := congrArg (fun t : CommRingCat.of R ⟶ CommRingCat.of K => t a) (FractionField.toStalk_fieldIso R K) |
| 69 | have ht := congrArg (fun t : CommRingCat.of S ⟶ CommRingCat.of L => t (algebraMap R S a)) |
| 70 | (FractionField.toStalk_fieldIso S L) |
| 71 | change (FractionField.fieldIso R K).hom (algebraMap R (Spec (.of R)).functionField a) = algebraMap R K a at hr |
| 72 | change (FractionField.fieldIso S L).hom (FunctionFields.affineFieldMap R S (algebraMap R (Spec (.of R)).functionField a)) = |
| 73 | (FractionField.fieldIso S L).hom (algebraMap S (Spec (.of S)).functionField (algebraMap R S a)) at hs |
| 74 | change (FractionField.fieldIso S L).hom (algebraMap S (Spec (.of S)).functionField (algebraMap R S a)) = |
| 75 | algebraMap S L (algebraMap R S a) at ht |
| 76 | change algebraMap K L ((FractionField.fieldIso R K).hom (algebraMap R (Spec (.of R)).functionField a)) = |
| 77 | (FractionField.fieldIso S L).hom (FunctionFields.affineFieldMap R S (algebraMap R (Spec (.of R)).functionField a)) |
| 78 | rw [hr, hs, ht, ← IsScalarTower.algebraMap_apply, ← IsScalarTower.algebraMap_apply] |
| 79 | |
| 80 | theorem norm_comparison (g : (Spec (.of S)).functionField) : |
| 81 | letI := (FunctionFields.affineFieldMap R S).hom.toAlgebra |
| 82 | (FractionField.fieldIso R K).hom (Algebra.norm (Spec (.of R)).functionField g) = |
| 83 | Algebra.norm K ((FractionField.fieldIso S L).hom g) := by |
| 84 | let := (FunctionFields.affineFieldMap R S).hom.toAlgebra |
| 85 | have h := Algebra.norm_eq_of_equiv_equiv (FractionField.fieldIso R K).commRingCatIsoToRingEquiv |
| 86 | (FractionField.fieldIso S L).commRingCatIsoToRingEquiv |
| 87 | (congrArg CommRingCat.Hom.hom (fieldMap_square R S K L)) g |
| 88 | exact (RingEquiv.eq_symm_apply (FractionField.fieldIso R K).commRingCatIsoToRingEquiv).mp h |
| 89 | |
| 90 | /-- Native pushforward has coefficient equal to the order of the norm in |
| 91 | the specified base fraction field. -/ |
| 92 | theorem principalDivisor_pushforward [IsDiscreteValuationRing R] [Module.Finite R S] |
| 93 | [PerfectField (FractionRing R)] (g : (Spec (.of S)).functionField) (hg : g ≠ 0) : |
| 94 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 95 | (DivisorNorm.rationalPrincipalDivisor (Spec (.of S)) g) = |
| 96 | Finsupp.single (IsLocalRing.closedPoint R : Spec (.of R)) |
| 97 | ((WithZero.log (Ring.ordFrac R (Algebra.norm K ((FractionField.fieldIso S L).hom g))) : ℤ) : ℚ) := by |
| 98 | let := (FunctionFields.affineFieldMap R S).hom.toAlgebra |
| 99 | rw [FunctionFields.principalDivisor_native_norm R S g hg, DivisorNorm.rationalPrincipalDivisor_local] |
| 100 | change Finsupp.single (IsLocalRing.closedPoint R : Spec (.of R)) |
| 101 | ((Spec (.of R)).ord (Algebra.norm (Spec (.of R)).functionField g) |
| 102 | (IsLocalRing.closedPoint R) : ℚ) = _ |
| 103 | rw [schemeOrder_closed R K, norm_comparison R S K L] |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.NormFields |