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.IntersectionTheory.ProjectionFormula.Tor.AcyclicShift |
| 2 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels |
| 3 | |
| 4 | /-! # Comparison By Presentations -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.ComparisonByPresentations |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An exact functor that sends finite free presentations to Tor-acyclic |
| 11 | presentations computes the same native Tor objects, provided the degree-zero |
| 12 | tensor functors agree naturally. The proof shifts the degree through actual |
| 13 | finite free presentations; no derived comparison is assumed. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R S : Type u) [CommRing R] [CommRing S] [IsNoetherianRing R] |
| 23 | (N : ModuleCat.{u} R) (N' : ModuleCat.{u} S) |
| 24 | (H : ModuleCat.{u} R ⥤ ModuleCat.{u} S) [H.Additive] [H.PreservesHomology] |
| 25 | (G : ModuleCat.{u} S ⥤ ModuleCat.{u} R) [G.Additive] [PreservesFiniteLimits G] |
| 26 | (e : H ⋙ tensorRight N' ⋙ G ≅ tensorRight N) |
| 27 | (hfree : ∀ (P : ModuleCat.{u} R) [Module.Free R P] [Module.Finite R P] (i : ℕ), |
| 28 | IsZero (((Tor (ModuleCat S) (i + 1)).obj (H.obj P)).obj N')) |
| 29 | |
| 30 | include e hfree |
| 31 | |
| 32 | theorem exists_iso (n : ℕ) (M : ModuleCat.{u} R) [Module.Finite R M] : |
| 33 | Nonempty (G.obj (((Tor (ModuleCat S) n).obj (H.obj M)).obj N') ≅ |
| 34 | (((Tor (ModuleCat R) n).obj M).obj N)) := by |
| 35 | induction n using Nat.strong_induction_on generalizing M with |
| 36 | | h n ih => |
| 37 | cases n with |
| 38 | | zero => |
| 39 | exact ⟨G.mapIso (Flat.torZeroIso S (H.obj M) N') ≪≫ e.app M ≪≫ |
| 40 | (Flat.torZeroIso R M N).symm⟩ |
| 41 | | succ n => |
| 42 | obtain ⟨F, _, _, _, _, f, hf⟩ := Module.exists_finite_presentation R M |
| 43 | let π : ModuleCat.of R F ⟶ M := ModuleCat.ofHom f |
| 44 | let : Epi π := (ModuleCat.epi_iff_surjective π).mpr hf |
| 45 | let T := ShortComplex.mk (kernel.ι π) π (kernel.condition π) |
| 46 | have hT : T.ShortExact := |
| 47 | { exact := ShortComplex.exact_of_f_is_kernel T (kernelIsKernel π) |
| 48 | mono_f := inferInstanceAs (Mono (kernel.ι π)) |
| 49 | epi_g := inferInstanceAs (Epi π) } |
| 50 | let : Projective T.X₂ := inferInstanceAs (Projective (ModuleCat.of R F)) |
| 51 | let : Module.Finite R T.X₁ := Module.Finite.of_injective (kernel.ι π).hom |
| 52 | ((ModuleCat.mono_iff_injective (kernel.ι π)).mp inferInstance) |
| 53 | let : Mono T.f := hT.mono_f |
| 54 | let : Epi T.g := hT.epi_g |
| 55 | have hHT := hT.map H |
| 56 | cases n with |
| 57 | | zero => |
| 58 | let g := (tensorRight N').map (H.map T.f) |
| 59 | let g₀ := (tensorRight N).map T.f |
| 60 | let : HasKernel g := HasLimit.mk ⟨_, ModuleCat.kernelIsLimit g⟩ |
| 61 | let : HasKernel g₀ := HasLimit.mk ⟨_, ModuleCat.kernelIsLimit g₀⟩ |
| 62 | let : HasKernel (G.map g) := HasLimit.mk ⟨_, ModuleCat.kernelIsLimit (G.map g)⟩ |
| 63 | let ek : G.obj (.of S g.hom.ker) ≅ .of R g₀.hom.ker := |
| 64 | G.mapIso (ModuleCat.kernelIsoKer g).symm ≪≫ PreservesKernel.iso G g ≪≫ |
| 65 | kernel.mapIso (G.map g) g₀ (e.app T.X₁) (e.app T.X₂) (e.hom.naturality T.f) ≪≫ |
| 66 | ModuleCat.kernelIsoKer g₀ |
| 67 | exact ⟨G.mapIso (AcyclicShift.kernelIso S N' (T.map H) hHT |
| 68 | (hfree (.of R F) 0)) ≪≫ ek ≪≫ (OneFirst.kernelIso R N T hT).symm⟩ |
| 69 | | succ n => |
| 70 | obtain ⟨ei⟩ := ih (n + 1) (by omega) T.X₁ |
| 71 | exact ⟨G.mapIso (AcyclicShift.shiftIso S N' (T.map H) hHT n |
| 72 | (hfree (.of R F) (n + 1)) (hfree (.of R F) n)) ≪≫ ei ≪≫ |
| 73 | (FirstShift.shiftIso R N T hT n).symm⟩ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.ComparisonByPresentations |