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.Smooth.DiagramFaithfulness |
| 2 | |
| 3 | /-! # Diagram Schemes -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A recovered algebra diagram gives actual smooth affine schemes and Cartesian recovery maps. -/ |
| 10 | |
| 11 | open TensorProduct _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] {I : Type v} {A : I → Type u} |
| 16 | variable [∀ i, CommRing (A i)] [∀ i, Algebra R (A i)] |
| 17 | variable {J : Type w} {s t : J → I} {φ : ∀ j, A (s j) →ₐ[R] A (t j)} |
| 18 | variable (M : AffineDiagramModel.SmoothAffineDiagramModel R A s t φ) |
| 19 | |
| 20 | def AffineDiagramModel.SmoothAffineDiagramModel.chartScheme (i : I) : Scheme.{u} := Spec (.of (M.algebra i)) |
| 21 | |
| 22 | def AffineDiagramModel.SmoothAffineDiagramModel.chartMap (i : I) : M.chartScheme i ⟶ Spec (.of M.coefficients) := |
| 23 | Spec.map (CommRingCat.ofHom (algebraMap M.coefficients (M.algebra i))) |
| 24 | |
| 25 | instance AffineDiagramModel.SmoothAffineDiagramModel.chartMap_smooth (i : I) : Smooth (M.chartMap i) := by |
| 26 | apply HasRingHomProperty.Spec_iff.mpr |
| 27 | exact RingHom.smooth_algebraMap.mpr (M.smooth i) |
| 28 | |
| 29 | def AffineDiagramModel.SmoothAffineDiagramModel.chartArrow (j : J) : M.chartScheme (t j) ⟶ M.chartScheme (s j) := |
| 30 | Spec.map (CommRingCat.ofHom (M.arrow j).toRingHom) |
| 31 | |
| 32 | instance AffineDiagramModel.SmoothAffineDiagramModel.chartArrow_open (j : J) : IsOpenImmersion (M.chartArrow j) := M.arrow_open j |
| 33 | |
| 34 | theorem AffineDiagramModel.SmoothAffineDiagramModel.chartArrow_over (j : J) : M.chartArrow j ≫ M.chartMap (s j) = M.chartMap (t j) := by |
| 35 | change Spec.map (CommRingCat.ofHom (M.arrow j).toRingHom) ≫ |
| 36 | Spec.map (CommRingCat.ofHom (algebraMap M.coefficients (M.algebra (s j)))) = _ |
| 37 | rw [← Spec.map_comp] |
| 38 | congr 1 |
| 39 | ext r |
| 40 | exact (M.arrow j).commutes r |
| 41 | |
| 42 | def AffineDiagramModel.SmoothAffineDiagramModel.realizationSpec (i : I) : Spec (.of (A i)) ⟶ M.chartScheme i := |
| 43 | Spec.map (CommRingCat.ofHom (M.realization i)) |
| 44 | |
| 45 | theorem AffineDiagramModel.SmoothAffineDiagramModel.realizationSpec_isPullback (i : I) : |
| 46 | IsPullback (M.realizationSpec i) (Spec.map (CommRingCat.ofHom (algebraMap R (A i)))) |
| 47 | (M.chartMap i) (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := |
| 48 | Tensor.ModelCartesian.tensorModelMap_isPullback (M.recovery i) |
| 49 | |
| 50 | theorem AffineDiagramModel.SmoothAffineDiagramModel.realizationSpec_natural (j : J) : |
| 51 | M.realizationSpec (t j) ≫ M.chartArrow j = |
| 52 | Spec.map (CommRingCat.ofHom (φ j).toRingHom) ≫ M.realizationSpec (s j) := by |
| 53 | change Spec.map (CommRingCat.ofHom (M.realization (t j))) ≫ |
| 54 | Spec.map (CommRingCat.ofHom (M.arrow j).toRingHom) = |
| 55 | Spec.map (CommRingCat.ofHom (φ j).toRingHom) ≫ Spec.map (CommRingCat.ofHom (M.realization (s j))) |
| 56 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 57 | congr 1 |
| 58 | exact CommRingCat.hom_ext (RingHom.ext (M.realization_arrow j)) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth |