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 | import Mathlib.AlgebraicGeometry.Limits |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Products |
| 4 | |
| 5 | /-! # Proper Products -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProperProducts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite products of proper schemes over a common base are proper. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} |
| 18 | |
| 19 | def overFinProductSuccIso {n : ℕ} (F : Fin (n + 1) → Over S) : |
| 20 | (∏ᶜ F) ≅ F 0 ⨯ ∏ᶜ (fun i : Fin n => F i.succ) where |
| 21 | hom := prod.lift (Pi.π F 0) (Pi.lift (fun i => Pi.π F i.succ)) |
| 22 | inv := Pi.lift (Fin.cases prod.fst (fun i => prod.snd ≫ Pi.π _ i)) |
| 23 | hom_inv_id := by |
| 24 | apply Pi.hom_ext |
| 25 | intro i |
| 26 | refine Fin.cases ?_ (fun j => ?_) i |
| 27 | · simp only [Category.assoc, Pi.lift_comp_π, Fin.cases_zero, Category.id_comp] |
| 28 | exact prod.lift_fst _ _ |
| 29 | · simp only [Category.assoc, Pi.lift_comp_π, Fin.cases_succ, Category.id_comp] |
| 30 | rw [prod.lift_snd_assoc, Pi.lift_comp_π] |
| 31 | inv_hom_id := by |
| 32 | apply prod.hom_ext |
| 33 | · simp only [Category.assoc, prod.lift_fst, Pi.lift_comp_π, Fin.cases_zero, Category.id_comp] |
| 34 | · apply Pi.hom_ext |
| 35 | intro i |
| 36 | simp only [Category.assoc, prod.lift_snd_assoc, Pi.lift_comp_π, Fin.cases_succ, Category.id_comp] |
| 37 | |
| 38 | theorem over_proper_of_iso {X Y : Over S} (e : X ≅ Y) [IsProper Y.hom] : IsProper X.hom := by |
| 39 | have : IsIso e.hom.left := (Over.forget S).map_isIso e.hom |
| 40 | rw [← e.hom.w] |
| 41 | infer_instance |
| 42 | |
| 43 | theorem overBinaryProduct_proper (X Y : Over S) [IsProper X.hom] [IsProper Y.hom] : |
| 44 | IsProper (X ⨯ Y).hom := by |
| 45 | rw [← (prod.fst : X ⨯ Y ⟶ X).w, ← Over.prodLeftIsoPullback_hom_fst] |
| 46 | infer_instance |
| 47 | |
| 48 | def overEmptyProductIso (F : Fin 0 → Over S) : (∏ᶜ F) ≅ Over.mk (𝟙 S) where |
| 49 | hom := Over.homMk (∏ᶜ F).hom |
| 50 | inv := Pi.lift (fun i => Fin.elim0 i) |
| 51 | hom_inv_id := by |
| 52 | apply Pi.hom_ext |
| 53 | intro i |
| 54 | exact Fin.elim0 i |
| 55 | inv_hom_id := by |
| 56 | apply (Over.forget S).map_injective |
| 57 | exact (Pi.lift (fun i => Fin.elim0 i) : Over.mk (𝟙 S) ⟶ ∏ᶜ F).w |
| 58 | |
| 59 | theorem overFinProduct_proper (n : ℕ) (F : Fin n → Over S) |
| 60 | (hF : ∀ i, IsProper (F i).hom) : IsProper (∏ᶜ F).hom := by |
| 61 | induction n with |
| 62 | | zero => |
| 63 | have : IsProper (Over.mk (𝟙 S)).hom := inferInstanceAs (IsProper (𝟙 S)) |
| 64 | exact over_proper_of_iso (overEmptyProductIso F) |
| 65 | | succ n ih => |
| 66 | have : IsProper (F 0).hom := hF 0 |
| 67 | have : IsProper (∏ᶜ (fun i : Fin n => F i.succ)).hom := |
| 68 | ih _ (fun i => hF i.succ) |
| 69 | have := overBinaryProduct_proper (F 0) (∏ᶜ (fun i : Fin n => F i.succ)) |
| 70 | exact over_proper_of_iso (overFinProductSuccIso F) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProperProducts |