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.AbelianModuli.HilbertConstruction.Affine.OverMorphisms |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.DiagramSchemes |
| 3 | |
| 4 | /-! # Scheme Diagram Recovery -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SchemeDiagramRecovery |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Smooth coordinate-diagram models recover the actual affine schemes and their arrows. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {I : Type v} (X : I → Over (Spec (.of R))) |
| 17 | variable [∀ i, IsAffine (X i).left] |
| 18 | variable {J : Type w} (s t : J → I) (f : ∀ j, X (t j) ⟶ X (s j)) |
| 19 | variable (M : Smooth.AffineDiagramModel.SmoothAffineDiagramModel R (fun i => ↥(OverChartPoints.affineOverAlgebra R (X i))) s t |
| 20 | (fun j => OverMorphisms.affineOverMap R (f j))) |
| 21 | |
| 22 | def affineDiagramModelMap (i : I) : (X i).left ⟶ M.chartScheme i := |
| 23 | (OverChartPoints.affineOverIso R (X i)).hom.left ≫ M.realizationSpec i |
| 24 | |
| 25 | theorem affineDiagramModel_isPullback (i : I) : |
| 26 | IsPullback (affineDiagramModelMap X s t f M i) (X i).hom (M.chartMap i) |
| 27 | (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := by |
| 28 | let e := OverChartPoints.affineOverIso R (X i) |
| 29 | have : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 30 | have H : IsPullback e.hom.left (X i).hom |
| 31 | (Spec.map (CommRingCat.ofHom (algebraMap R (OverChartPoints.affineOverAlgebra R (X i))))) |
| 32 | (𝟙 (Spec (.of R))) := IsPullback.of_horiz_isIso ⟨e.hom.w.trans (Category.comp_id _).symm⟩ |
| 33 | have h := H.paste_horiz (M.realizationSpec_isPullback i) |
| 34 | exact (congrArg (fun b => IsPullback (affineDiagramModelMap X s t f M i) (X i).hom (M.chartMap i) b) |
| 35 | (Category.id_comp _)).mp h |
| 36 | |
| 37 | theorem affineDiagramModel_natural (j : J) : |
| 38 | affineDiagramModelMap X s t f M (t j) ≫ M.chartArrow j = |
| 39 | (f j).left ≫ affineDiagramModelMap X s t f M (s j) := by |
| 40 | let e : (X (t j)).left ⟶ Spec (.of (OverChartPoints.affineOverAlgebra R (X (t j)))) := |
| 41 | (OverChartPoints.affineOverIso R (X (t j))).hom.left |
| 42 | let d : Spec (.of (OverChartPoints.affineOverAlgebra R (X (t j)))) ⟶ (X (t j)).left := |
| 43 | (OverChartPoints.affineOverIso R (X (t j))).inv.left |
| 44 | let e' : (X (s j)).left ⟶ Spec (.of (OverChartPoints.affineOverAlgebra R (X (s j)))) := |
| 45 | (OverChartPoints.affineOverIso R (X (s j))).hom.left |
| 46 | have he : e ≫ d = 𝟙 (X (t j)).left := |
| 47 | congrArg (fun k => k.left) (OverChartPoints.affineOverIso R (X (t j))).hom_inv_id |
| 48 | have hf : Spec.map (CommRingCat.ofHom (OverMorphisms.affineOverMap R (f j)).toRingHom) = |
| 49 | d ≫ (f j).left ≫ e' := OverMorphisms.affineOverMap_spec R (f j) |
| 50 | change (e ≫ M.realizationSpec (t j)) ≫ M.chartArrow j = |
| 51 | (f j).left ≫ (e' ≫ M.realizationSpec (s j)) |
| 52 | rw [Category.assoc, M.realizationSpec_natural, hf] |
| 53 | simp only [← Category.assoc, he, Category.id_comp] |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SchemeDiagramRecovery |