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.HasPullback |
| 2 | |
| 3 | /-! # Pair Cech Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Kernel.PairCechMaps.Construction.KernelPairDescent |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual kernel pair and composable pairs of a single cover, |
| 10 | with their universal maps from arbitrary test objects. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | variable {C : Type u} [Category.{v} C] [HasPullbacks C] {X Y : C} (f : X ⟶ Y) |
| 16 | |
| 17 | abbrev Relation := pullback f f |
| 18 | abbrev Triple := pullback (pullback.snd f f) (pullback.fst f f) |
| 19 | abbrev first : Triple f ⟶ Relation f := pullback.fst _ _ |
| 20 | abbrev second : Triple f ⟶ Relation f := pullback.snd _ _ |
| 21 | abbrev source : Triple f ⟶ X := first f ≫ pullback.fst f f |
| 22 | abbrev middle : Triple f ⟶ X := first f ≫ pullback.snd f f |
| 23 | abbrev target : Triple f ⟶ X := second f ≫ pullback.snd f f |
| 24 | |
| 25 | theorem second_middle : second f ≫ pullback.fst f f = middle f := pullback.condition.symm |
| 26 | |
| 27 | def outer : Triple f ⟶ Relation f := |
| 28 | pullback.lift (source f) (target f) (by |
| 29 | change (first f ≫ pullback.fst f f) ≫ f = (second f ≫ pullback.snd f f) ≫ f |
| 30 | calc |
| 31 | _ = (first f ≫ pullback.snd f f) ≫ f := by rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 32 | _ = (second f ≫ pullback.fst f f) ≫ f := congrArg (fun k => k ≫ f) pullback.condition |
| 33 | _ = _ := by rw [Category.assoc, pullback.condition, ← Category.assoc]) |
| 34 | |
| 35 | theorem outer_source : outer f ≫ pullback.fst f f = source f := pullback.lift_fst _ _ _ |
| 36 | theorem outer_target : outer f ≫ pullback.snd f f = target f := pullback.lift_snd _ _ _ |
| 37 | |
| 38 | def diagonal : X ⟶ Relation f := pullback.lift (𝟙 X) (𝟙 X) rfl |
| 39 | theorem diagonal_fst : diagonal f ≫ pullback.fst f f = 𝟙 X := pullback.lift_fst _ _ _ |
| 40 | theorem diagonal_snd : diagonal f ≫ pullback.snd f f = 𝟙 X := pullback.lift_snd _ _ _ |
| 41 | |
| 42 | def pair {T : C} (x y : T ⟶ X) (h : x ≫ f = y ≫ f) : T ⟶ Relation f := pullback.lift x y h |
| 43 | theorem pair_fst {T : C} (x y : T ⟶ X) (h : x ≫ f = y ≫ f) : |
| 44 | pair f x y h ≫ pullback.fst f f = x := pullback.lift_fst _ _ _ |
| 45 | theorem pair_snd {T : C} (x y : T ⟶ X) (h : x ≫ f = y ≫ f) : |
| 46 | pair f x y h ≫ pullback.snd f f = y := pullback.lift_snd _ _ _ |
| 47 | |
| 48 | theorem pair_self {T : C} (x : T ⟶ X) : pair f x x rfl = x ≫ diagonal f := by |
| 49 | apply pullback.hom_ext |
| 50 | · rw [pair_fst, Category.assoc, diagonal_fst, Category.comp_id] |
| 51 | · rw [pair_snd, Category.assoc, diagonal_snd, Category.comp_id] |
| 52 | |
| 53 | theorem pair_natural {T U : C} (g : U ⟶ T) (x y : T ⟶ X) (h : x ≫ f = y ≫ f) |
| 54 | (x' y' : U ⟶ X) (h' : x' ≫ f = y' ≫ f) (hx : g ≫ x = x') (hy : g ≫ y = y') : |
| 55 | g ≫ pair f x y h = pair f x' y' h' := by |
| 56 | apply pullback.hom_ext |
| 57 | · rw [Category.assoc, pair_fst, pair_fst, hx] |
| 58 | · rw [Category.assoc, pair_snd, pair_snd, hy] |
| 59 | |
| 60 | def triple {T : C} (x y z : T ⟶ X) (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f) : |
| 61 | T ⟶ Triple f := |
| 62 | pullback.lift (pair f x y hxy) (pair f y z hyz) (by rw [pair_snd, pair_fst]) |
| 63 | |
| 64 | theorem triple_first {T : C} (x y z : T ⟶ X) (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f) : |
| 65 | triple f x y z hxy hyz ≫ first f = pair f x y hxy := pullback.lift_fst _ _ _ |
| 66 | theorem triple_second {T : C} (x y z : T ⟶ X) (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f) : |
| 67 | triple f x y z hxy hyz ≫ second f = pair f y z hyz := pullback.lift_snd _ _ _ |
| 68 | theorem triple_outer {T : C} (x y z : T ⟶ X) (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f) : |
| 69 | triple f x y z hxy hyz ≫ outer f = pair f x z (hxy.trans hyz) := by |
| 70 | apply pullback.hom_ext |
| 71 | · rw [Category.assoc, outer_source, pair_fst] |
| 72 | change triple f x y z hxy hyz ≫ first f ≫ pullback.fst f f = x |
| 73 | rw [← Category.assoc, triple_first, pair_fst] |
| 74 | · rw [Category.assoc, outer_target, pair_snd] |
| 75 | change triple f x y z hxy hyz ≫ second f ≫ pullback.snd f f = z |
| 76 | rw [← Category.assoc, triple_second, pair_snd] |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Kernel.PairCechMaps.Construction.KernelPairDescent |