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 OAI.ArithmeticGeometry.Models.BaseChange |
| 2 | |
| 3 | /-! # Finite Equations -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.FiniteEquations.Constructions.Foundations |
| 6 | |
| 7 | /-! Simultaneous preservation of finitely many generic equations. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 10 | open scoped _root_.NumberField |
| 11 | |
| 12 | universe u v w |
| 13 | |
| 14 | variable {K : Type u} [Field K] {s t z : Finset K} |
| 15 | |
| 16 | theorem equation_survives_enlargement |
| 17 | (hst : s ⊆ t) (htz : t ⊆ z) |
| 18 | (X₀ Y₀ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) (a b : X₀ ⟶ Y₀) |
| 19 | (hab : pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst) ≫ a.left = |
| 20 | pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst) ≫ b.left) : |
| 21 | pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K (hst.trans htz)) ≫ a.left = |
| 22 | pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K (hst.trans htz)) ≫ b.left := by |
| 23 | let : Epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz X₀).hom.left := by |
| 24 | change Epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTransSquare hst htz X₀).isoPullback.hom |
| 25 | infer_instance |
| 26 | apply (cancel_epi (BaseChange.Constructions.Foundations.coefficientBaseChangeTrans hst htz X₀).hom.left).mp |
| 27 | erw [← Category.assoc, BaseChange.Constructions.Foundations.coefficientBaseChangeTrans_hom_fst, |
| 28 | ← Category.assoc, BaseChange.Constructions.Foundations.coefficientBaseChangeTrans_hom_fst, Category.assoc, Category.assoc, hab] |
| 29 | |
| 30 | theorem baseChange_map_eq_of_fst_eq |
| 31 | (hst : s ⊆ t) (X₀ Y₀ : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) (a b : X₀ ⟶ Y₀) |
| 32 | (hab : pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst) ≫ a.left = |
| 33 | pullback.fst X₀.hom (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst) ≫ b.left) : |
| 34 | (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst)).map a = |
| 35 | (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst)).map b := by |
| 36 | apply Over.OverMorphism.ext |
| 37 | apply pullback.hom_ext |
| 38 | · erw [pullback.lift_fst, pullback.lift_fst] |
| 39 | exact hab |
| 40 | · erw [pullback.lift_snd, pullback.lift_snd] |
| 41 | |
| 42 | /-- Finitely many equations holding on the generic fiber hold at one common stage. -/ |
| 43 | theorem finite_equations_descend |
| 44 | {I : Type v} {E : Type w} [Finite E] |
| 45 | (src dst : E → I) |
| 46 | (X : I → Over (Spec (CommRingCat.of K))) |
| 47 | (X₀ : I → Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) |
| 48 | (hX₀ : ∀ i, Scheme.Constructions.Foundations.FinitePresentationMorphism (X₀ i).hom) |
| 49 | (p : ∀ i, (X i).left ⟶ (X₀ i).left) |
| 50 | (hp : ∀ i, IsPullback (p i) (X i).hom (X₀ i).hom (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)) |
| 51 | (a b : ∀ e, X₀ (src e) ⟶ X₀ (dst e)) |
| 52 | (hab : ∀ e, p (src e) ≫ (a e).left = p (src e) ≫ (b e).left) : |
| 53 | ∃ (t : Finset K) (hst : s ⊆ t), |
| 54 | ∀ e, (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst)).map (a e) = |
| 55 | (Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K hst)).map (b e) := by |
| 56 | classical |
| 57 | let : Fintype E := Fintype.ofFinite E |
| 58 | choose t ht heq using fun e ↦ ModelMorphisms.Constructions.Foundations.equation_between_models_descends |
| 59 | (X₀ (src e)) (X₀ (dst e)) (hX₀ (src e)) (hX₀ (dst e)) |
| 60 | (p (src e)) (hp (src e)) (a e) (b e) (hab e) |
| 61 | let z := s ∪ Finset.univ.biUnion t |
| 62 | have htz (e : E) : t e ⊆ z := |
| 63 | (Finset.subset_biUnion_of_mem t (Finset.mem_univ e)).trans Finset.subset_union_right |
| 64 | refine ⟨z, Finset.subset_union_left, fun e ↦ ?_⟩ |
| 65 | apply baseChange_map_eq_of_fst_eq |
| 66 | exact equation_survives_enlargement (ht e) (htz e) (X₀ (src e)) (X₀ (dst e)) |
| 67 | (a e) (b e) (heq e) |
| 68 | |
| 69 | end OAI.ArithmeticGeometry.Models.FiniteEquations.Constructions.Foundations |