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.Limits.Shapes.Pullback.IsPullback.Basic |
| 2 | |
| 3 | /-! # Product Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductMap.Construction.ProductMapSquares |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Changing one factor of a fiber product is a Cartesian base change |
| 10 | of that factor map, with explicit coordinate identities. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [HasPullbacks C] |
| 17 | variable {X Y X' Y' S : C} |
| 18 | |
| 19 | def left (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S) (q : X' ⟶ X) (hq : q ≫ f = f') : |
| 20 | pullback f' g ⟶ pullback f g := |
| 21 | pullback.map f' g f g q (𝟙 Y) (𝟙 S) (by simpa using hq.symm) (by simp) |
| 22 | |
| 23 | theorem left_first (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S) (q : X' ⟶ X) (hq : q ≫ f = f') : |
| 24 | left f g f' q hq ≫ pullback.fst f g = pullback.fst f' g ≫ q := pullback.lift_fst _ _ _ |
| 25 | |
| 26 | theorem left_second (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S) (q : X' ⟶ X) (hq : q ≫ f = f') : |
| 27 | left f g f' q hq ≫ pullback.snd f g = pullback.snd f' g := by |
| 28 | simp only [left, pullback.map, pullback.lift_snd, Category.comp_id] |
| 29 | |
| 30 | theorem left_isPullback (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S) (q : X' ⟶ X) (hq : q ≫ f = f') : |
| 31 | IsPullback (pullback.fst f' g) (left f g f' q hq) q (pullback.fst f g) := by |
| 32 | have ho : IsPullback (pullback.fst f' g) (left f g f' q hq ≫ pullback.snd f g) (q ≫ f) g := by |
| 33 | rw [left_second, hq] |
| 34 | exact IsPullback.of_hasPullback f' g |
| 35 | exact IsPullback.of_bot ho (left_first f g f' q hq).symm (IsPullback.of_hasPullback f g) |
| 36 | |
| 37 | def right (f : X ⟶ S) (g : Y ⟶ S) (g' : Y' ⟶ S) (q : Y' ⟶ Y) (hq : q ≫ g = g') : |
| 38 | pullback f g' ⟶ pullback f g := |
| 39 | pullback.map f g' f g (𝟙 X) q (𝟙 S) (by simp) (by simpa using hq.symm) |
| 40 | |
| 41 | theorem right_first (f : X ⟶ S) (g : Y ⟶ S) (g' : Y' ⟶ S) (q : Y' ⟶ Y) (hq : q ≫ g = g') : |
| 42 | right f g g' q hq ≫ pullback.fst f g = pullback.fst f g' := by |
| 43 | simp only [right, pullback.map, pullback.lift_fst, Category.comp_id] |
| 44 | |
| 45 | theorem right_second (f : X ⟶ S) (g : Y ⟶ S) (g' : Y' ⟶ S) (q : Y' ⟶ Y) (hq : q ≫ g = g') : |
| 46 | right f g g' q hq ≫ pullback.snd f g = pullback.snd f g' ≫ q := pullback.lift_snd _ _ _ |
| 47 | |
| 48 | theorem right_isPullback (f : X ⟶ S) (g : Y ⟶ S) (g' : Y' ⟶ S) (q : Y' ⟶ Y) (hq : q ≫ g = g') : |
| 49 | IsPullback (pullback.snd f g') (right f g g' q hq) q (pullback.snd f g) := by |
| 50 | have ho : IsPullback (pullback.snd f g') (right f g g' q hq ≫ pullback.fst f g) (q ≫ g) f := by |
| 51 | rw [right_first, hq] |
| 52 | exact (IsPullback.of_hasPullback f g').flip |
| 53 | exact IsPullback.of_bot ho (right_second f g g' q hq).symm (IsPullback.of_hasPullback f g).flip |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductMap.Construction.ProductMapSquares |