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.Group.Affine |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | |
| 4 | /-! # Finite Hopf Presentation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Extract finite Hopf coordinates from a native finite commutative group |
| 11 | scheme over a field. No coordinate presentation is assumed. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | open scoped _root_.CategoryTheory.MonObj TensorProduct |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem cocomm_of_commutative_hopfSpec |
| 23 | (k A : Type u) [Field k] [CommRing A] [Bialgebra k A] |
| 24 | [IsCommMonObj ((Spec (.of A)).asOver (Spec (.of k)))] : Coalgebra.IsCocomm k A := by |
| 25 | let f : WithConv (A →ₐ[k] A ⊗[k] A) := WithConv.toConv Algebra.TensorProduct.includeLeft |
| 26 | let g : WithConv (A →ₐ[k] A ⊗[k] A) := WithConv.toConv Algebra.TensorProduct.includeRight |
| 27 | have hfg : f * g = g * f := by |
| 28 | apply (Spec.mapMulEquiv (R := k) (S := A) (T := A ⊗[k] A)).injective |
| 29 | rw [map_mul, map_mul] |
| 30 | exact mul_comm _ _ |
| 31 | have hl : Algebra.TensorProduct.lift f.ofConv g.ofConv (fun _ _ => .all ..) = |
| 32 | AlgHom.id k (A ⊗[k] A) := by |
| 33 | apply AlgHom.toLinearMap_injective |
| 34 | apply TensorProduct.ext' |
| 35 | intro x y |
| 36 | simp [f, g] |
| 37 | have hr : Algebra.TensorProduct.lift g.ofConv f.ofConv (fun _ _ => .all ..) = |
| 38 | (Algebra.TensorProduct.comm k A A).toAlgHom := by |
| 39 | apply AlgHom.toLinearMap_injective |
| 40 | apply TensorProduct.ext' |
| 41 | intro x y |
| 42 | simp [f, g] |
| 43 | constructor |
| 44 | apply LinearMap.ext |
| 45 | intro x |
| 46 | change TensorProduct.comm k A A (Coalgebra.comul x) = Coalgebra.comul x |
| 47 | have h := congrArg (fun t : WithConv (A →ₐ[k] A ⊗[k] A) => t x) hfg |
| 48 | rw [AlgHom.convMul_apply, AlgHom.convMul_apply, hl, hr] at h |
| 49 | exact h.symm |
| 50 | |
| 51 | theorem finite_commutative_hopfPresentation (k : Type u) [Field k] |
| 52 | (G : Grp (Over (Spec (.of k)))) [IsCommMonObj G.X] [IsFinite G.X.hom] : |
| 53 | ∃ A : CommHopfAlgCat k, Module.Finite k A ∧ Coalgebra.IsCocomm k A ∧ |
| 54 | Nonempty ((hopfSpec (.of k)).obj (op A) ≅ G) := by |
| 55 | have hAffine : IsAffine G.X.left := isAffine_of_isAffineHom G.X.hom |
| 56 | obtain ⟨A, ⟨e⟩⟩ := (essImage_hopfSpec (R := .of k) (G := G)).mpr hAffine |
| 57 | let i : ((hopfSpec (.of k)).obj A).X ≅ G.X := (Grp.forget _).mapIso e |
| 58 | have : IsIso i.hom.left := inferInstanceAs (IsIso ((Over.forget (Spec (.of k))).map i.hom)) |
| 59 | have hfinite : IsFinite ((hopfSpec (.of k)).obj A).X.hom := by |
| 60 | rw [← i.hom.w] |
| 61 | infer_instance |
| 62 | have hf : Module.Finite k A.unop := RingHom.finite_algebraMap.mp |
| 63 | ((IsFinite.SpecMap_iff (CommRingCat.ofHom (algebraMap k A.unop))).mp hfinite) |
| 64 | have : IsMonHom i.hom := inferInstanceAs (IsMonHom e.hom.hom.hom) |
| 65 | have hcomm : IsCommMonObj ((hopfSpec (.of k)).obj A).X := by |
| 66 | apply (isCommMonObj_iff_isMulCommutative _).mpr |
| 67 | intro T |
| 68 | refine ⟨⟨fun a b => ?_⟩⟩ |
| 69 | apply (cancel_mono i.hom).mp |
| 70 | rw [MonObj.mul_comp, MonObj.mul_comp, mul_comm] |
| 71 | have : IsCommMonObj ((Spec (.of A.unop)).asOver (Spec (.of k))) := hcomm |
| 72 | exact ⟨A.unop, hf, cocomm_of_commutative_hopfSpec k A.unop, ⟨e⟩⟩ |
| 73 | |
| 74 | end Construction |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteHopfPresentation |