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.AlgebraicGeometry.Morphisms.Proper |
| 2 | |
| 3 | /-! # Proper Product -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperProduct.Construction.FiniteProperProduct |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite products of proper schemes over a fixed base, with explicit |
| 10 | projections and the map determined by a family of component maps. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {S : Scheme.{u}} |
| 17 | |
| 18 | def product : {n : ℕ} → (Fin n → Over S) → Over S |
| 19 | | 0, _ => Over.mk (𝟙 S) |
| 20 | | _ + 1, P => Over.mk (pullback.fst (P 0).hom (product (fun i => P i.succ)).hom ≫ (P 0).hom) |
| 21 | |
| 22 | def first {n : ℕ} (P : Fin (n + 1) → Over S) : FiniteProperProduct.product P ⟶ P 0 := |
| 23 | Over.homMk (pullback.fst _ _) |
| 24 | |
| 25 | def rest {n : ℕ} (P : Fin (n + 1) → Over S) : FiniteProperProduct.product P ⟶ FiniteProperProduct.product (fun i => P i.succ) := |
| 26 | Over.homMk (pullback.snd _ _) (pullback.condition.symm) |
| 27 | |
| 28 | def projection : {n : ℕ} → (P : Fin n → Over S) → (i : Fin n) → (FiniteProperProduct.product P ⟶ P i) |
| 29 | | 0, _, i => Fin.elim0 i |
| 30 | | _ + 1, P, i => Fin.cases (first P) (fun k => rest P ≫ projection (fun i => P i.succ) k) i |
| 31 | |
| 32 | def lift {T : Over S} : {n : ℕ} → (P : Fin n → Over S) → (∀ i, T ⟶ P i) → (T ⟶ FiniteProperProduct.product P) |
| 33 | | 0, _, _ => Over.homMk T.hom (Category.comp_id _) |
| 34 | | _ + 1, P, a => Over.homMk |
| 35 | (pullback.lift (a 0).left (lift (fun i => P i.succ) (fun i => a i.succ)).left |
| 36 | ((Over.w (a 0)).trans (Over.w _).symm)) |
| 37 | (by |
| 38 | change _ ≫ pullback.fst _ _ ≫ (P 0).hom = T.hom |
| 39 | rw [pullback.lift_fst_assoc] |
| 40 | exact Over.w (a 0)) |
| 41 | |
| 42 | theorem lift_first {T : Over S} {n : ℕ} (P : Fin (n + 1) → Over S) (a : ∀ i, T ⟶ P i) : |
| 43 | FiniteProperProduct.lift P a ≫ first P = a 0 := by |
| 44 | ext1 |
| 45 | exact pullback.lift_fst _ _ _ |
| 46 | |
| 47 | theorem lift_rest {T : Over S} {n : ℕ} (P : Fin (n + 1) → Over S) (a : ∀ i, T ⟶ P i) : |
| 48 | FiniteProperProduct.lift P a ≫ rest P = FiniteProperProduct.lift (fun i => P i.succ) (fun i => a i.succ) := by |
| 49 | ext1 |
| 50 | exact pullback.lift_snd _ _ _ |
| 51 | |
| 52 | theorem lift_projection {T : Over S} {n : ℕ} (P : Fin n → Over S) (a : ∀ i, T ⟶ P i) (i : Fin n) : |
| 53 | FiniteProperProduct.lift P a ≫ FiniteProperProduct.projection P i = a i := by |
| 54 | induction n with |
| 55 | | zero => exact Fin.elim0 i |
| 56 | | succ n ih => |
| 57 | refine Fin.cases ?_ (fun k => ?_) i |
| 58 | · exact lift_first P a |
| 59 | · change FiniteProperProduct.lift P a ≫ rest P ≫ FiniteProperProduct.projection (fun i => P i.succ) k = a k.succ |
| 60 | rw [← Category.assoc, lift_rest] |
| 61 | exact ih _ _ _ |
| 62 | |
| 63 | theorem proper {n : ℕ} (P : Fin n → Over S) (hP : ∀ i, IsProper (P i).hom) : |
| 64 | IsProper (FiniteProperProduct.product P).hom := by |
| 65 | induction n with |
| 66 | | zero => exact inferInstanceAs (IsProper (𝟙 S)) |
| 67 | | succ n ih => |
| 68 | have := hP 0 |
| 69 | have := ih (fun i => P i.succ) (fun i => hP i.succ) |
| 70 | change IsProper (pullback.fst (P 0).hom (FiniteProperProduct.product (fun i => P i.succ)).hom ≫ (P 0).hom) |
| 71 | infer_instance |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperProduct.Construction.FiniteProperProduct |