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.AbelianModuli.HilbertConstruction.Finite.CochainTruncation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.DualFunctor |
| 3 | import Mathlib.Algebra.Homology.Embedding.Restriction |
| 4 | |
| 5 | /-! # Dual Cochain -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bounded.DualCochain |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The reversed dual of a finite cochain interval is again a nonnegative cochain complex, concentrated in the same interval. Its terms are the actual module duals, with finite freeness preserved. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | universe u |
| 14 | |
| 15 | def finiteDualEmbedding (g : ℕ) : ComplexShape.Embedding (HilbertConstruction.Finite.CochainTruncation.finiteCochainShape g) (.down ℕ) := |
| 16 | ComplexShape.Embedding.mk' _ _ (fun i => i.rev.val) |
| 17 | (fun i j h => by |
| 18 | have he : i.rev = j.rev := Fin.ext h |
| 19 | simpa only [Fin.rev_rev] using congrArg Fin.rev he) |
| 20 | (fun i j => by |
| 21 | change i.val + 1 = j.val ↔ j.rev.val + 1 = i.rev.val |
| 22 | rw [Fin.val_rev, Fin.val_rev] |
| 23 | have hi := i.isLt |
| 24 | have hj := j.isLt |
| 25 | omega) |
| 26 | |
| 27 | instance finiteDualEmbedding_isRelIff (g : ℕ) : (finiteDualEmbedding g).IsRelIff where |
| 28 | rel' i j h := by |
| 29 | change j.rev.val + 1 = i.rev.val at h |
| 30 | change i.val + 1 = j.val |
| 31 | simp only [Fin.val_rev] at h |
| 32 | have := i.isLt |
| 33 | have := j.isLt |
| 34 | omega |
| 35 | |
| 36 | instance finiteDualEmbedding_isTruncGE (g : ℕ) : (finiteDualEmbedding g).IsTruncGE where |
| 37 | toIsRelIff := inferInstance |
| 38 | mem_next {j k} h := by |
| 39 | change k + 1 = j.rev.val at h |
| 40 | have hk : k < g + 1 := by have := j.rev.isLt; omega |
| 41 | refine ⟨(⟨k, hk⟩ : Fin (g + 1)).rev, ?_⟩ |
| 42 | change ((⟨k, hk⟩ : Fin (g + 1)).rev.rev).val = k |
| 43 | rw [Fin.rev_rev] |
| 44 | |
| 45 | theorem finiteDualEmbedding_outside_iff (g q : ℕ) : |
| 46 | (∀ i, (finiteDualEmbedding g).f i ≠ q) ↔ g < q := by |
| 47 | constructor |
| 48 | · intro h |
| 49 | by_contra hn |
| 50 | have hq : q < g + 1 := Nat.lt_succ_of_le (Nat.le_of_not_gt hn) |
| 51 | apply h (⟨q, hq⟩ : Fin (g + 1)).rev |
| 52 | change ((⟨q, hq⟩ : Fin (g + 1)).rev.rev).val = q |
| 53 | rw [Fin.rev_rev] |
| 54 | · intro h i hi |
| 55 | change i.rev.val = q at hi |
| 56 | have := i.rev.isLt |
| 57 | omega |
| 58 | |
| 59 | variable {R : Type u} [CommRing R] |
| 60 | |
| 61 | def finiteDualCochain (C : CochainComplex (ModuleCat.{u} R) ℕ) (g : ℕ) : |
| 62 | HomologicalComplex (ModuleCat.{u} R) (HilbertConstruction.Finite.CochainTruncation.finiteCochainShape g) := |
| 63 | let D : ChainComplex (ModuleCat.{u} R) ℕ := HilbertConstruction.Module.DualFunctor.dualModuleComplex C |
| 64 | D.restriction (finiteDualEmbedding g) |
| 65 | |
| 66 | def boundedDualCochain (C : CochainComplex (ModuleCat.{u} R) ℕ) (g : ℕ) : |
| 67 | CochainComplex (ModuleCat.{u} R) ℕ := |
| 68 | (finiteDualCochain C g).extend (HilbertConstruction.Finite.CochainTruncation.finiteCochainEmbedding g) |
| 69 | |
| 70 | def boundedDualCochainXIso (C : CochainComplex (ModuleCat.{u} R) ℕ) (g q : ℕ) (hq : q ≤ g) : |
| 71 | (boundedDualCochain C g).X q ≅ ModuleCat.of R (Module.Dual R (C.X (g - q))) := by |
| 72 | let i : Fin (g + 1) := ⟨q, Nat.lt_succ_of_le hq⟩ |
| 73 | let e := (finiteDualCochain C g).extendXIso (HilbertConstruction.Finite.CochainTruncation.finiteCochainEmbedding g) (i := i) (i' := q) rfl |
| 74 | change (boundedDualCochain C g).X q ≅ ModuleCat.of R (Module.Dual R (C.X i.rev.val)) at e |
| 75 | have hi : i.rev.val = g - q := by |
| 76 | simp only [Fin.val_rev, i, Nat.add_sub_add_right] |
| 77 | rw [hi] at e |
| 78 | exact e |
| 79 | |
| 80 | theorem boundedDualCochain_isZero_above |
| 81 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (g q : ℕ) (hq : g < q) : |
| 82 | IsZero ((boundedDualCochain C g).X q) := |
| 83 | (finiteDualCochain C g).isZero_extend_X (HilbertConstruction.Finite.CochainTruncation.finiteCochainEmbedding g) q |
| 84 | ((HilbertConstruction.Finite.CochainTruncation.finiteCochainEmbedding_outside_iff g q).mpr hq) |
| 85 | |
| 86 | theorem boundedDualCochain_finite_free |
| 87 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (g : ℕ) |
| 88 | (hfin : ∀ q, Module.Finite R (C.X q)) (hfree : ∀ q, Module.Free R (C.X q)) : |
| 89 | ∀ q, Module.Finite R ((boundedDualCochain C g).X q) ∧ |
| 90 | Module.Free R ((boundedDualCochain C g).X q) := by |
| 91 | intro q |
| 92 | by_cases hq : q ≤ g |
| 93 | · have : Module.Finite R (C.X (g - q)) := hfin (g - q) |
| 94 | have : Module.Free R (C.X (g - q)) := hfree (g - q) |
| 95 | let e := (boundedDualCochainXIso C g q hq).symm.toLinearEquiv |
| 96 | exact ⟨Module.Finite.equiv e, Module.Free.of_equiv e⟩ |
| 97 | · have : Subsingleton ((boundedDualCochain C g).X q) := |
| 98 | ModuleCat.subsingleton_of_isZero (boundedDualCochain_isZero_above C g q (Nat.lt_of_not_ge hq)) |
| 99 | exact ⟨inferInstance, inferInstance⟩ |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bounded.DualCochain |