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.SupportedComplexRestriction |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CochainTruncation |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.FieldSupport |
| 4 | |
| 5 | /-! # Negative Interval Complex -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.NegativeIntervalComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reindex a complex supported on the integer interval minus g through zero as a nonnegative cochain complex on zero through g. The actual terms, exactness, and field support are preserved. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | universe u |
| 14 | |
| 15 | def finiteNegativeIntervalEmbedding (g : ℕ) : |
| 16 | ComplexShape.Embedding (CochainTruncation.finiteCochainShape g) (.up ℤ) := |
| 17 | ComplexShape.Embedding.mk' _ _ (fun i => (i.val : ℤ) - g) |
| 18 | (fun i j h => by |
| 19 | change (i.val : ℤ) - g = (j.val : ℤ) - g at h |
| 20 | apply Fin.ext |
| 21 | omega) |
| 22 | (fun i j => by change i.val + 1 = j.val ↔ (i.val : ℤ) - g + 1 = (j.val : ℤ) - g; omega) |
| 23 | |
| 24 | instance finiteNegativeIntervalEmbedding_isRelIff (g : ℕ) : |
| 25 | (finiteNegativeIntervalEmbedding g).IsRelIff where |
| 26 | rel' := by |
| 27 | intro i j h |
| 28 | change (i.val : ℤ) - g + 1 = (j.val : ℤ) - g at h |
| 29 | change i.val + 1 = j.val |
| 30 | omega |
| 31 | |
| 32 | theorem finiteNegativeIntervalEmbedding_outside_iff (g : ℕ) (q : ℤ) : |
| 33 | (∀ i, (finiteNegativeIntervalEmbedding g).f i ≠ q) ↔ q < -(g : ℤ) ∨ 0 < q := by |
| 34 | constructor |
| 35 | · intro h |
| 36 | by_contra hn |
| 37 | have hq : 0 ≤ q + g := by omega |
| 38 | have hi : (q + g).toNat < g + 1 := by omega |
| 39 | apply h ⟨(q + g).toNat, hi⟩ |
| 40 | change ((q + g).toNat : ℤ) - g = q |
| 41 | omega |
| 42 | · intro h i hi |
| 43 | change (i.val : ℤ) - g = q at hi |
| 44 | have := i.isLt |
| 45 | omega |
| 46 | |
| 47 | variable {R : Type u} [CommRing R] |
| 48 | |
| 49 | def negativeIntervalCochain (K : CochainComplex (ModuleCat.{u} R) ℤ) (g : ℕ) : |
| 50 | CochainComplex (ModuleCat.{u} R) ℕ := |
| 51 | (K.restriction (finiteNegativeIntervalEmbedding g)).extend (CochainTruncation.finiteCochainEmbedding g) |
| 52 | |
| 53 | def negativeIntervalCochainXIso (K : CochainComplex (ModuleCat.{u} R) ℤ) (g q : ℕ) (hq : q ≤ g) : |
| 54 | (negativeIntervalCochain K g).X q ≅ K.X ((q : ℤ) - g) := |
| 55 | (K.restriction (finiteNegativeIntervalEmbedding g)).extendXIso |
| 56 | (CochainTruncation.finiteCochainEmbedding g) (i := ⟨q, by omega⟩) rfl |
| 57 | |
| 58 | theorem negativeIntervalCochain_finite_free |
| 59 | (K : CochainComplex (ModuleCat.{u} R) ℤ) (g : ℕ) |
| 60 | (hfin : ∀ i, Module.Finite R (K.X i)) (hfree : ∀ i, Module.Free R (K.X i)) : |
| 61 | ∀ q, Module.Finite R ((negativeIntervalCochain K g).X q) ∧ |
| 62 | Module.Free R ((negativeIntervalCochain K g).X q) := by |
| 63 | intro q |
| 64 | by_cases hq : q ≤ g |
| 65 | · have : Module.Finite R (K.X ((q : ℤ) - g)) := hfin _ |
| 66 | have : Module.Free R (K.X ((q : ℤ) - g)) := hfree _ |
| 67 | let e := (negativeIntervalCochainXIso K g q hq).symm.toLinearEquiv |
| 68 | exact ⟨Module.Finite.equiv e, Module.Free.of_equiv e⟩ |
| 69 | · have : Subsingleton ((negativeIntervalCochain K g).X q) := |
| 70 | ModuleCat.subsingleton_of_isZero |
| 71 | ((K.restriction (finiteNegativeIntervalEmbedding g)).isZero_extend_X (CochainTruncation.finiteCochainEmbedding g) q |
| 72 | ((CochainTruncation.finiteCochainEmbedding_outside_iff g q).mpr (Nat.lt_of_not_ge hq))) |
| 73 | exact ⟨inferInstance, inferInstance⟩ |
| 74 | |
| 75 | theorem negativeIntervalCochain_exactAt_iff |
| 76 | (K : CochainComplex (ModuleCat.{u} R) ℤ) (g q : ℕ) (hq : q ≤ g) |
| 77 | (hbound : ∀ i, i < -(g : ℤ) ∨ 0 < i → IsZero (K.X i)) : |
| 78 | (negativeIntervalCochain K g).ExactAt q ↔ K.ExactAt ((q : ℤ) - g) := by |
| 79 | let e := finiteNegativeIntervalEmbedding g |
| 80 | let j : Fin (g + 1) := ⟨q, by omega⟩ |
| 81 | let : K.IsStrictlySupported e := { |
| 82 | isZero := fun i hi => hbound i ((finiteNegativeIntervalEmbedding_outside_iff g i).mp hi) } |
| 83 | exact ((K.restriction e).extend_exactAt_iff (CochainTruncation.finiteCochainEmbedding g) (j := j) rfl).trans |
| 84 | (SupportedComplexRestriction.strictlySupported_restriction_exactAt_iff e K j) |
| 85 | |
| 86 | theorem negativeIntervalCochain_fieldSupport |
| 87 | (K : CochainComplex (ModuleCat.{u} R) ℤ) (g : ℕ) |
| 88 | (hbound : ∀ i, i < -(g : ℤ) ∨ 0 < i → IsZero (K.X i)) (I : Ideal R) |
| 89 | (hfield : ∀ (B : Type u) [Field B] [Algebra R B], ¬ I ≤ RingHom.ker (algebraMap R B) → |
| 90 | (((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B).mapHomologicalComplex (.up ℤ)).obj K).Acyclic) : |
| 91 | Cochain.FieldSupport.CochainFieldSupport (negativeIntervalCochain K g) I := by |
| 92 | intro B _ _ hnot |
| 93 | let F := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B |
| 94 | let KB := (F.mapHomologicalComplex (.up ℤ)).obj K |
| 95 | let e := finiteNegativeIntervalEmbedding g |
| 96 | let : KB.IsStrictlySupported e := { |
| 97 | isZero := fun i hi => F.map_isZero (hbound i ((finiteNegativeIntervalEmbedding_outside_iff g i).mp hi)) } |
| 98 | have hr : ((F.mapHomologicalComplex (CochainTruncation.finiteCochainShape g)).obj (K.restriction e)).Acyclic := |
| 99 | SupportedComplexRestriction.strictlySupported_restriction_acyclic e KB (hfield B hnot) |
| 100 | have hB := Additive.ComplexExtension.additive_extend_acyclic F (K.restriction e) (CochainTruncation.finiteCochainEmbedding g) hr |
| 101 | intro q |
| 102 | exact (Base.ChangeTensorExactness.baseChange_exactAt_iff_tensor (negativeIntervalCochain K g) q).mp (hB q) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.NegativeIntervalComplex |