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.Divisors.LineBundles.Periodic.FactorKill |
| 2 | |
| 3 | /-! # Factor Sequence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.FactorSequence.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: the actual short exact sequence for the factor cone |
| 11 | |
| 12 | Inclusion is the first coordinate. Projection is the second coordinate |
| 13 | in degree zero and its negative in degree one. Thus the quotient is |
| 14 | the scalar complex (bc,a), with its original positive differentials. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory |
| 18 | |
| 19 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 20 | (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) |
| 21 | |
| 22 | def factorConeInclusion : EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (a * b) c h ⟶ FactorKill.BundleCycles.periodicFactorCone a b c h where |
| 23 | f _ := ModuleCat.ofHom (LinearMap.inl R M M) |
| 24 | comm' := by |
| 25 | intro i j hij |
| 26 | cases i <;> cases j |
| 27 | · exact (hij rfl).elim |
| 28 | · apply ModuleCat.hom_ext |
| 29 | apply LinearMap.ext |
| 30 | intro m |
| 31 | change M at m |
| 32 | apply Prod.ext |
| 33 | · change (a * b) • m + b • (0 : M) = (a * b) • m |
| 34 | module |
| 35 | · change (-(b * c)) • (0 : M) = 0 |
| 36 | module |
| 37 | · apply ModuleCat.hom_ext |
| 38 | apply LinearMap.ext |
| 39 | intro m |
| 40 | change M at m |
| 41 | apply Prod.ext |
| 42 | · change c • m + (0 : M) = c • m |
| 43 | module |
| 44 | · change (-a) • (0 : M) = 0 |
| 45 | module |
| 46 | · exact (hij rfl).elim |
| 47 | |
| 48 | def factorConeQuotient : FactorKill.BundleCycles.periodicFactorCone a b c h ⟶ |
| 49 | EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (b * c) a |
| 50 | (EquationPeriodicComplex.BundleCycles.equationPeriodic_kill_swap a (b * c) (FactorKill.BundleCycles.factorCone_kill_source a b c h)) where |
| 51 | f i := match i with |
| 52 | | false => ModuleCat.ofHom (LinearMap.snd R M M) |
| 53 | | true => ModuleCat.ofHom (-LinearMap.snd R M M) |
| 54 | comm' := by |
| 55 | intro i j hij |
| 56 | cases i <;> cases j |
| 57 | · exact (hij rfl).elim |
| 58 | · apply ModuleCat.hom_ext |
| 59 | apply LinearMap.ext |
| 60 | intro m |
| 61 | change (b * c) • m.2 = -((-(b * c)) • m.2) |
| 62 | module |
| 63 | · apply ModuleCat.hom_ext |
| 64 | apply LinearMap.ext |
| 65 | intro m |
| 66 | change a • (-m.2) = (-a) • m.2 |
| 67 | module |
| 68 | · exact (hij rfl).elim |
| 69 | |
| 70 | def factorConeSequence : |
| 71 | ShortComplex (HomologicalComplex (ModuleCat R) PeriodicComplex.BundleCycles.periodicComplexShape) := |
| 72 | ShortComplex.mk (factorConeInclusion a b c h) (factorConeQuotient a b c h) (by |
| 73 | apply HomologicalComplex.hom_ext |
| 74 | intro i |
| 75 | cases i |
| 76 | · rfl |
| 77 | · apply ModuleCat.hom_ext |
| 78 | apply LinearMap.ext |
| 79 | intro m |
| 80 | change -(0 : M) = 0 |
| 81 | module) |
| 82 | |
| 83 | theorem factorConeSequence_shortExact : (factorConeSequence a b c h).ShortExact := by |
| 84 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 85 | intro i |
| 86 | cases i |
| 87 | · apply ModuleCat.shortComplex_shortExact |
| 88 | · exact (Function.Exact.inl_snd : Function.Exact (LinearMap.inl R M M) (LinearMap.snd R M M)) |
| 89 | · exact (LinearMap.inl_injective : Function.Injective (LinearMap.inl R M M)) |
| 90 | · exact (LinearMap.snd_surjective : Function.Surjective (LinearMap.snd R M M)) |
| 91 | · apply ModuleCat.shortComplex_shortExact |
| 92 | · intro m |
| 93 | change -m.2 = 0 ↔ ∃ x : M, (x, 0) = m |
| 94 | rw [neg_eq_zero] |
| 95 | exact (Function.Exact.inl_snd : |
| 96 | Function.Exact (LinearMap.inl R M M) (LinearMap.snd R M M)) m |
| 97 | · exact (LinearMap.inl_injective : Function.Injective (LinearMap.inl R M M)) |
| 98 | · intro m |
| 99 | refine ⟨(0, -m), ?_⟩ |
| 100 | exact neg_neg m |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.FactorSequence.BundleCycles |