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.Quotients.FiniteDescent.FieldHomology |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.FieldExtension |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 4 | import Mathlib.RingTheory.TensorProduct.Finite |
| 5 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.HomologyInjective |
| 6 | |
| 7 | /-! # Constant Cohomology -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ConstantCohomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A scalar extension of a field complex has a finite free cohomology |
| 14 | detector, valid under every further scalar extension. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace Construction.ConstantCohomologyDetector |
| 24 | |
| 25 | variable {K R : Type u} [Field K] [CommRing R] (f : K →+* R) |
| 26 | variable (C : ShortComplex (ModuleCat.{u} K)) |
| 27 | variable {T : ShortComplex (ModuleCat.{u} R)} |
| 28 | variable (e : (C.map (ModuleCat.extendScalars f)) ≅ T) |
| 29 | |
| 30 | def target : ShortComplex (ModuleCat.{u} R) := |
| 31 | (FieldHomology.Construction.FieldHomologyProjection.target C).map (ModuleCat.extendScalars f) |
| 32 | |
| 33 | def comparison : T ⟶ target f C := |
| 34 | e.inv ≫ (ModuleCat.extendScalars f).mapShortComplex.map (FieldHomology.Construction.FieldHomologyProjection.map C) |
| 35 | |
| 36 | theorem first_zero : (target f C).f = 0 := by |
| 37 | change (ModuleCat.extendScalars f).map 0 = 0 |
| 38 | exact (ModuleCat.extendScalars f).map_zero _ _ |
| 39 | |
| 40 | theorem second_zero : (target f C).g = 0 := by |
| 41 | change (ModuleCat.extendScalars f).map 0 = 0 |
| 42 | exact (ModuleCat.extendScalars f).map_zero _ _ |
| 43 | |
| 44 | theorem quasiIso : ShortComplex.QuasiIso (comparison f C e) := by |
| 45 | have := FieldExtension.Construction.FieldExtensionExact.preservesHomology f |
| 46 | have := FieldHomology.Construction.FieldHomologyProjection.quasiIso C |
| 47 | exact ShortComplex.quasiIso_comp _ _ |
| 48 | |
| 49 | theorem finite [Module.Finite K C.homology] : Module.Finite R (target f C).X₂ := by |
| 50 | let : Algebra K R := f.toAlgebra |
| 51 | have := FieldHomology.Construction.FieldHomologyProjection.finite C |
| 52 | exact inferInstanceAs (Module.Finite R (R ⊗[K] FieldHomology.Construction.FieldHomologyProjection.H C)) |
| 53 | |
| 54 | theorem free : Module.Free R (target f C).X₂ := by |
| 55 | let : Algebra K R := f.toAlgebra |
| 56 | exact inferInstanceAs (Module.Free R (R ⊗[K] FieldHomology.Construction.FieldHomologyProjection.H C)) |
| 57 | |
| 58 | theorem baseChange_quasiIso {A : Type u} [CommRing A] (g : R →+* A) : |
| 59 | ShortComplex.QuasiIso ((ModuleCat.extendScalars g).mapShortComplex.map (comparison f C e)) := by |
| 60 | let F := ModuleCat.extendScalars f |
| 61 | let G := ModuleCat.extendScalars g |
| 62 | have : (F ⋙ G).PreservesHomology := FieldExtension.Construction.FieldExtensionExact.preservesHomology_of_leftAdjoint (F ⋙ G) |
| 63 | have := FieldHomology.Construction.FieldHomologyProjection.quasiIso C |
| 64 | have hq : ShortComplex.QuasiIso ((F ⋙ G).mapShortComplex.map (FieldHomology.Construction.FieldHomologyProjection.map C)) := |
| 65 | inferInstance |
| 66 | change ShortComplex.QuasiIso (G.mapShortComplex.map (e.inv ≫ F.mapShortComplex.map _)) |
| 67 | rw [Functor.map_comp] |
| 68 | have : ShortComplex.QuasiIso (G.mapShortComplex.map (F.mapShortComplex.map |
| 69 | (FieldHomology.Construction.FieldHomologyProjection.map C))) := hq |
| 70 | exact ShortComplex.quasiIso_comp _ _ |
| 71 | |
| 72 | theorem detects {A : Type u} [CommRing A] (g : R →+* A) |
| 73 | (z : (T.map (ModuleCat.extendScalars g)).X₂) |
| 74 | (hz : (T.map (ModuleCat.extendScalars g)).g z = 0) |
| 75 | (hb : ((ModuleCat.extendScalars g).mapShortComplex.map (comparison f C e)).τ₂ z = 0) : |
| 76 | z ∈ (T.map (ModuleCat.extendScalars g)).f.hom.range := by |
| 77 | have := baseChange_quasiIso f C e g |
| 78 | exact HomologyInjective.Construction.HomologyInjectiveCriterion.boundary |
| 79 | ((ModuleCat.extendScalars g).mapShortComplex.map (comparison f C e)) |
| 80 | ((ModuleCat.mono_iff_injective _).mp inferInstance) z hz |
| 81 | ⟨0, (map_zero _).trans hb.symm⟩ |
| 82 | |
| 83 | end Construction.ConstantCohomologyDetector |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ConstantCohomology |