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 Mathlib.AlgebraicGeometry.Limits |
| 2 | |
| 3 | /-! # Point Algebra Hom -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.PointAlgebraHom.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Field-valued points of an actual affine scheme are algebra maps. |
| 10 | This standalone comparison has no dependence on statement modules. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def affinePointsEquivAlgHom |
| 17 | (R B C : Type u) [CommRing R] [CommRing B] [CommRing C] |
| 18 | [Algebra R B] [Algebra R C] : |
| 19 | (Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R C))) ⟶ |
| 20 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) ≃ (B →ₐ[R] C) where |
| 21 | toFun f := |
| 22 | { toRingHom := (Spec.preimage f.left).hom |
| 23 | commutes' := fun r => by |
| 24 | have hw : f.left ≫ Spec.map (CommRingCat.ofHom (algebraMap R B)) = |
| 25 | Spec.map (CommRingCat.ofHom (algebraMap R C)) := f.w |
| 26 | have h := congrArg Spec.preimage hw |
| 27 | simp only [Spec.preimage_comp, Spec.preimage_map] at h |
| 28 | exact congrArg (fun f => f.hom r) h } |
| 29 | invFun f := Over.homMk (Spec.map (CommRingCat.ofHom f.toRingHom)) (by |
| 30 | change Spec.map (CommRingCat.ofHom f.toRingHom) ≫ |
| 31 | Spec.map (CommRingCat.ofHom (algebraMap R B)) = |
| 32 | Spec.map (CommRingCat.ofHom (algebraMap R C)) |
| 33 | rw [← Spec.map_comp] |
| 34 | congr 1 |
| 35 | ext r |
| 36 | exact f.commutes r) |
| 37 | left_inv f := by |
| 38 | apply Over.OverMorphism.ext |
| 39 | exact Spec.map_preimage f.left |
| 40 | right_inv f := by |
| 41 | apply AlgHom.ext |
| 42 | intro x |
| 43 | change (Spec.preimage (Spec.map (CommRingCat.ofHom f.toRingHom))) x = f x |
| 44 | rw [Spec.preimage_map] |
| 45 | rfl |
| 46 | |
| 47 | def affineFieldPointsEquivAlgHom |
| 48 | (R B : Type u) [CommRing R] [CommRing B] [Algebra R B] : |
| 49 | (Over.mk (𝟙 (Spec (.of R))) ⟶ |
| 50 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) ≃ (B →ₐ[R] R) := by |
| 51 | simpa only [Algebra.algebraMap_self, CommRingCat.ofHom_id, Spec.map_id] using |
| 52 | affinePointsEquivAlgHom R B R |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.PointAlgebraHom.Construction |