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.DivisorClass.Chern.TwoStepQuotientNaturality |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.ExtClass |
| 3 | |
| 4 | /-! # Two Step Ext -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.TwoStepExt |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual product of the two connecting extension classes and its naturality. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | universe u v |
| 19 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{v} C] |
| 20 | |
| 21 | def twoStepQuotientExtClass (S : ShortComplex C) (hS : S.Exact) [Mono S.f] : |
| 22 | Ext (cokernel (TwoStepQuotient.firstQuotientDifferential S)) S.X₁ 2 := |
| 23 | (TwoStepQuotient.secondQuotientSequence_shortExact S hS).extClass.comp |
| 24 | (TwoStepQuotient.firstQuotientSequence_shortExact S).extClass (rfl : 1 + 1 = 2) |
| 25 | |
| 26 | theorem twoStepQuotientExtClass_naturality {S T : ShortComplex C} |
| 27 | (hS : S.Exact) (hT : T.Exact) [Mono S.f] [Mono T.f] (φ : S ⟶ T) : |
| 28 | (twoStepQuotientExtClass S hS).comp (Ext.mk₀ φ.τ₁) (add_zero 2) = |
| 29 | (Ext.mk₀ (TwoStepQuotientNaturality.secondQuotientMap φ)).comp (twoStepQuotientExtClass T hT) (zero_add 2) := by |
| 30 | have h₀ := ShortComplex.ShortExact.extClass_naturality |
| 31 | (TwoStepQuotient.firstQuotientSequence_shortExact S) (TwoStepQuotient.firstQuotientSequence_shortExact T) |
| 32 | (TwoStepQuotientNaturality.firstQuotientSequenceMap φ) |
| 33 | have h₁ := ShortComplex.ShortExact.extClass_naturality |
| 34 | (TwoStepQuotient.secondQuotientSequence_shortExact S hS) (TwoStepQuotient.secondQuotientSequence_shortExact T hT) |
| 35 | (TwoStepQuotientNaturality.secondQuotientSequenceMap φ) |
| 36 | change (TwoStepQuotient.firstQuotientSequence_shortExact S).extClass.comp (Ext.mk₀ φ.τ₁) (add_zero 1) = |
| 37 | (Ext.mk₀ (TwoStepQuotientNaturality.firstQuotientMap φ)).comp (TwoStepQuotient.firstQuotientSequence_shortExact T).extClass (zero_add 1) at h₀ |
| 38 | change (TwoStepQuotient.secondQuotientSequence_shortExact S hS).extClass.comp (Ext.mk₀ (TwoStepQuotientNaturality.firstQuotientMap φ)) (add_zero 1) = |
| 39 | (Ext.mk₀ (TwoStepQuotientNaturality.secondQuotientMap φ)).comp (TwoStepQuotient.secondQuotientSequence_shortExact T hT).extClass (zero_add 1) at h₁ |
| 40 | unfold twoStepQuotientExtClass |
| 41 | rw [Ext.comp_assoc_of_third_deg_zero, h₀, ← Ext.comp_assoc_of_second_deg_zero, h₁] |
| 42 | exact Ext.comp_assoc _ _ _ (zero_add 1) (rfl : 1 + 1 = 2) (rfl : 0 + 1 + 1 = 2) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.DivisorClass.Chern.TwoStepExt |