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.Order |
| 3 | |
| 4 | /-! # Branch Stalk Field -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BranchStalkField |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The native stalk at a normal affine branch embeds in the specified |
| 11 | fraction field. This supplies the actual valuation rings used to place |
| 12 | normalized parameter branches on the proper curve. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsDedekindDomain |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Order OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FractionField |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (A : Type u) [CommRing A] [IsDedekindDomain A] |
| 23 | (L : Type u) [Field L] [Algebra A L] [IsFractionRing A L] |
| 24 | |
| 25 | local instance : Algebra A (Spec (.of A)).functionField := |
| 26 | (StructureSheaf.toStalk A (genericPoint (Spec (.of A)))).hom.toAlgebra |
| 27 | |
| 28 | local instance (x : Spec (.of A)) : Algebra A ((Spec (.of A)).presheaf.stalk x) := |
| 29 | StructureSheaf.stalkAlgebra A x |
| 30 | |
| 31 | abbrev branchStalk (P : HeightOneSpectrum A) := (Spec (.of A)).presheaf.stalk (Affine.Order.branchPoint A P) |
| 32 | |
| 33 | theorem branchStalk_isDVR (P : HeightOneSpectrum A) : IsDiscreteValuationRing (branchStalk A P) := by |
| 34 | let := IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain A P.ne_bot (Localization.AtPrime P.asIdeal) |
| 35 | exact IsDiscreteValuationRing.RingEquivClass.isDiscreteValuationRing |
| 36 | (Affine.Order.affineStalkIso A (Affine.Order.branchPoint A P)).toRingEquiv |
| 37 | |
| 38 | abbrev branchAlgebra (P : HeightOneSpectrum A) : Algebra (branchStalk A P) L := |
| 39 | ((Affine.FractionField.fieldIso A L).hom.hom.comp (algebraMap (branchStalk A P) (Spec (.of A)).functionField)).toAlgebra |
| 40 | |
| 41 | def branchFieldEquiv (P : HeightOneSpectrum A) : |
| 42 | letI := branchAlgebra A L P |
| 43 | (Spec (.of A)).functionField ≃ₐ[branchStalk A P] L := by |
| 44 | let := branchAlgebra A L P |
| 45 | exact { (Affine.FractionField.fieldIso A L).commRingCatIsoToRingEquiv with commutes' := fun _ => rfl } |
| 46 | |
| 47 | theorem branch_isFractionRing (P : HeightOneSpectrum A) : |
| 48 | letI := branchAlgebra A L P |
| 49 | IsFractionRing (branchStalk A P) L := by |
| 50 | let := branchAlgebra A L P |
| 51 | exact IsFractionRing.of_algEquiv (branchFieldEquiv A L P) |
| 52 | |
| 53 | theorem branch_toStalk (P : HeightOneSpectrum A) : |
| 54 | letI := branchAlgebra A L P |
| 55 | StructureSheaf.toStalk A (Affine.Order.branchPoint A P) ≫ |
| 56 | CommRingCat.ofHom (algebraMap (branchStalk A P) L) = CommRingCat.ofHom (algebraMap A L) := by |
| 57 | let := branchAlgebra A L P |
| 58 | let := Affine.Order.affine_stalk_functionField_tower A (Affine.Order.branchPoint A P) |
| 59 | ext a |
| 60 | have h := congrArg (fun t : CommRingCat.of A ⟶ CommRingCat.of L => t a) (Affine.FractionField.toStalk_fieldIso A L) |
| 61 | change (Affine.FractionField.fieldIso A L).hom |
| 62 | (algebraMap (branchStalk A P) (Spec (.of A)).functionField |
| 63 | (algebraMap A (branchStalk A P) a)) = algebraMap A L a |
| 64 | rw [← IsScalarTower.algebraMap_apply] |
| 65 | exact h |
| 66 | |
| 67 | theorem generic_branch_comp (P : HeightOneSpectrum A) : |
| 68 | letI := branchAlgebra A L P |
| 69 | Spec.map (CommRingCat.ofHom (algebraMap (branchStalk A P) L)) ≫ |
| 70 | (Spec (.of A)).fromSpecStalk (Affine.Order.branchPoint A P) = |
| 71 | Spec.map (CommRingCat.ofHom (algebraMap A L)) := by |
| 72 | let := branchAlgebra A L P |
| 73 | rw [Spec.fromSpecStalk_eq', ← Spec.map_comp, branch_toStalk] |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BranchStalkField |