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.Sites.ConstantSheaf |
| 2 | |
| 3 | /-! # Constant Forget -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantForget.ConstantForgetGenerators |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Forgetting coefficients in a constant sheaf preserves its canonical generating maps. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.CategoryTheory.Limits |
| 12 | |
| 13 | variable {C A B : Type*} [Category* C] [Category* A] [Category* B] |
| 14 | (J : GrothendieckTopology C) (F : A ⥤ B) |
| 15 | [HasWeakSheafify J A] [HasWeakSheafify J B] |
| 16 | [J.PreservesSheafification F] [J.HasSheafCompose F] |
| 17 | |
| 18 | theorem hom_generator (X : A) : |
| 19 | whiskerRight (toSheafify J ((Functor.const Cᵒᵖ).obj X)) F ≫ |
| 20 | ((constantCommuteCompose J F).hom.app X).hom = |
| 21 | (Functor.constComp Cᵒᵖ X F).hom ≫ |
| 22 | toSheafify J ((Functor.const Cᵒᵖ).obj (F.obj X)) := by |
| 23 | rw [constantCommuteCompose_hom_app_hom] |
| 24 | erw [sheafComposeIso_inv_fac_assoc, ← toSheafify_naturality] |
| 25 | |
| 26 | theorem inv_generator (X : A) : |
| 27 | (Functor.constComp Cᵒᵖ X F).hom ≫ toSheafify J ((Functor.const Cᵒᵖ).obj (F.obj X)) ≫ |
| 28 | ((constantCommuteCompose J F).inv.app X).hom = |
| 29 | whiskerRight (toSheafify J ((Functor.const Cᵒᵖ).obj X)) F := by |
| 30 | erw [← Category.assoc, ← hom_generator, Category.assoc] |
| 31 | have h := congrArg (fun k => k.hom) ((constantCommuteCompose J F).hom_inv_id_app X) |
| 32 | change ((constantCommuteCompose J F).hom.app X).hom ≫ |
| 33 | ((constantCommuteCompose J F).inv.app X).hom = 𝟙 _ at h |
| 34 | erw [h, Category.comp_id] |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantForget.ConstantForgetGenerators |