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 Mathlib.CategoryTheory.Iso |
| 2 | |
| 3 | /-! # Forward Refinement Class -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ForwardRefinementClass |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Carry a source class forward through a common refinement and |
| 10 | invert the refinement only on the target. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | variable {C : Type*} [Category C] |
| 15 | {P A B T A' B' T' Z : C} |
| 16 | (xV : P ⟶ A) (xW : P ⟶ B) |
| 17 | (rV : A ⟶ T) (rW : B ⟶ T) |
| 18 | (fV : A ⟶ A') (fW : B ⟶ B') (fT : T ⟶ T') |
| 19 | (rV' : A' ⟶ T') (rW' : B' ⟶ T') [IsIso rW'] |
| 20 | (e : B' ⟶ Z) |
| 21 | (hsource : xV ≫ rV = xW ≫ rW) |
| 22 | (hV : fV ≫ rV' = rV ≫ fT) (hW : fW ≫ rW' = rW ≫ fT) |
| 23 | |
| 24 | include hsource hV hW in |
| 25 | theorem comparison : |
| 26 | (xV ≫ fV) ≫ (rV' ≫ inv rW' ≫ e) = (xW ≫ fW) ≫ e := by |
| 27 | have h : (xV ≫ fV) ≫ rV' = (xW ≫ fW) ≫ rW' := by |
| 28 | calc |
| 29 | _ = (xV ≫ rV) ≫ fT := by |
| 30 | simpa only [Category.assoc] using congrArg (fun z => xV ≫ z) hV |
| 31 | _ = (xW ≫ rW) ≫ fT := by rw [hsource] |
| 32 | _ = _ := by |
| 33 | simpa only [Category.assoc] using congrArg (fun z => xW ≫ z) hW.symm |
| 34 | simpa only [Category.assoc, IsIso.hom_inv_id_assoc] using |
| 35 | congrArg (fun z => z ≫ inv rW' ≫ e) h |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ForwardRefinementClass |