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.RingTheory.Etale.Kaehler |
| 2 | import Mathlib.LinearAlgebra.Dimension.Free |
| 3 | import Mathlib.RingTheory.OrzechProperty |
| 4 | |
| 5 | /-! # From Differentials -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.FromDifferentials |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The Jacobi-Zariski sequence upgrades unramifiedness to formal |
| 12 | etaleness when the absolute differential map is injective. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable (K : Type u) (A : Type v) (B : Type w) |
| 19 | [CommRing K] [CommRing A] [CommRing B] |
| 20 | [Algebra K A] [Algebra K B] [Algebra A B] [IsScalarTower K A B] |
| 21 | [Algebra.FormallySmooth K B] [Algebra.FormallyUnramified A B] |
| 22 | |
| 23 | theorem of_injective (hi : Function.Injective (KaehlerDifferential.mapBaseChange K A B)) : |
| 24 | Algebra.FormallyEtale A B := by |
| 25 | constructor |
| 26 | · infer_instance |
| 27 | · apply subsingleton_of_forall_eq 0 |
| 28 | intro x |
| 29 | have hδ : Algebra.H1Cotangent.δ K A B x = 0 := by |
| 30 | apply hi |
| 31 | rw [map_zero] |
| 32 | exact (Algebra.H1Cotangent.exact_δ_mapBaseChange K A B _).mpr ⟨x, rfl⟩ |
| 33 | obtain ⟨y, rfl⟩ := (Algebra.H1Cotangent.exact_map_δ K A B x).mp hδ |
| 34 | rw [Subsingleton.elim y 0, map_zero] |
| 35 | |
| 36 | omit [Algebra.FormallySmooth K B] in |
| 37 | theorem differentials_surjective : Function.Surjective (KaehlerDifferential.mapBaseChange K A B) := by |
| 38 | intro x |
| 39 | exact (KaehlerDifferential.exact_mapBaseChange_map K A B x).mp (Subsingleton.elim _ _) |
| 40 | |
| 41 | theorem of_finrank_eq [Nontrivial B] |
| 42 | [Module.Free B (B ⊗[A] Ω[A⁄K])] [Module.Free B Ω[B⁄K]] |
| 43 | [Module.Finite B (B ⊗[A] Ω[A⁄K])] [Module.Finite B Ω[B⁄K]] |
| 44 | (hd : Module.finrank B (B ⊗[A] Ω[A⁄K]) = Module.finrank B Ω[B⁄K]) : |
| 45 | Algebra.FormallyEtale A B := by |
| 46 | let e : (B ⊗[A] Ω[A⁄K]) ≃ₗ[B] Ω[B⁄K] := LinearEquiv.ofFinrankEq _ _ hd |
| 47 | apply of_injective K A B |
| 48 | exact OrzechProperty.injective_of_surjective_of_injective e.toLinearMap |
| 49 | (KaehlerDifferential.mapBaseChange K A B) e.injective (differentials_surjective K A B) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.FromDifferentials |