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.NumberTheory.PadicHodge.IntegralComparison.Affine.SequenceCover |
| 2 | import Mathlib.CategoryTheory.Functor.OfSequence |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 5 | |
| 6 | /-! # Iterated Affine Cover -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.IteratedAffineCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An affine cover carrying compatible lifts through every iterate of |
| 13 | a finite étale surjective self-map. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | variable {X U : Scheme.{u}} (f : X ⟶ X) [IsFinite f] [Etale f] [Surjective f] |
| 22 | (w : U ⟶ X) [IsAffine U] |
| 23 | |
| 24 | def stage : ℕ → Over X |
| 25 | | 0 => Over.mk w |
| 26 | | n + 1 => (Over.pullback f).obj (stage n) |
| 27 | |
| 28 | def step (n : ℕ) : (IteratedAffineCover.stage f w (n + 1)).left ⟶ (IteratedAffineCover.stage f w n).left := |
| 29 | pullback.fst (IteratedAffineCover.stage f w n).hom f |
| 30 | |
| 31 | omit [IsFinite f] [Etale f] [Surjective f] [IsAffine U] in |
| 32 | theorem step_condition (n : ℕ) : |
| 33 | (IteratedAffineCover.stage f w (n + 1)).hom ≫ f = IteratedAffineCover.step f w n ≫ (IteratedAffineCover.stage f w n).hom := by |
| 34 | exact pullback.condition.symm |
| 35 | |
| 36 | instance step_finite (n : ℕ) : IsFinite (IteratedAffineCover.step f w n) := by |
| 37 | unfold IteratedAffineCover.step |
| 38 | infer_instance |
| 39 | |
| 40 | instance step_etale (n : ℕ) : Etale (IteratedAffineCover.step f w n) := by |
| 41 | unfold IteratedAffineCover.step |
| 42 | infer_instance |
| 43 | |
| 44 | instance step_surjective (n : ℕ) : Surjective (IteratedAffineCover.step f w n) := by |
| 45 | unfold IteratedAffineCover.step |
| 46 | infer_instance |
| 47 | |
| 48 | instance stage_affine (n : ℕ) : IsAffine (IteratedAffineCover.stage f w n).left := by |
| 49 | induction n with |
| 50 | | zero => exact inferInstanceAs (IsAffine U) |
| 51 | | succ n ih => exact isAffine_of_isAffineHom (IteratedAffineCover.step f w n) |
| 52 | |
| 53 | def diagram : ℕᵒᵖ ⥤ Scheme.{u} := |
| 54 | Functor.ofOpSequence (X := fun n => (IteratedAffineCover.stage f w n).left) (IteratedAffineCover.step f w) |
| 55 | |
| 56 | instance diagram_affine (n : ℕᵒᵖ) : IsAffine ((diagram f w).obj n) := stage_affine f w n.unop |
| 57 | |
| 58 | omit [IsFinite f] [IsAffine U] in |
| 59 | theorem diagram_map (i j : ℕ) (h : i ≤ j) : |
| 60 | Etale ((diagram f w).map (homOfLE h).op) ∧ |
| 61 | Surjective ((diagram f w).map (homOfLE h).op) := by |
| 62 | induction j, h using Nat.le_induction with |
| 63 | | base => |
| 64 | have he : (diagram f w).map (homOfLE (Nat.le_refl i)).op = 𝟙 _ := (diagram f w).map_id _ |
| 65 | rw [he] |
| 66 | exact ⟨inferInstance, inferInstance⟩ |
| 67 | | succ j h ih => |
| 68 | have he : (homOfLE (Nat.le.step h)).op = |
| 69 | (homOfLE (Nat.le_succ j)).op ≫ (homOfLE h).op := Subsingleton.elim _ _ |
| 70 | rw [he, Functor.map_comp] |
| 71 | have hs : (diagram f w).map (homOfLE (Nat.le_succ j)).op = IteratedAffineCover.step f w j := |
| 72 | Functor.ofOpSequence_map_homOfLE_succ _ j |
| 73 | rw [hs] |
| 74 | let : Etale ((diagram f w).map (homOfLE h).op) := ih.1 |
| 75 | let : Surjective ((diagram f w).map (homOfLE h).op) := ih.2 |
| 76 | exact ⟨inferInstance, inferInstance⟩ |
| 77 | |
| 78 | def point : Scheme.{u} := Affine.SequenceCover.point (diagram f w) |
| 79 | |
| 80 | def projection (n : ℕ) : point f w ⟶ (IteratedAffineCover.stage f w n).left := |
| 81 | Affine.SequenceCover.projection (diagram f w) n |
| 82 | |
| 83 | omit [Etale f] [Surjective f] in |
| 84 | theorem projection_step (n : ℕ) : projection f w (n + 1) ≫ IteratedAffineCover.step f w n = projection f w n := by |
| 85 | change Affine.SequenceCover.projection (diagram f w) (n + 1) ≫ IteratedAffineCover.step f w n = |
| 86 | Affine.SequenceCover.projection (diagram f w) n |
| 87 | have he := Affine.SequenceCover.projection_comp (diagram f w) n (n + 1) (Nat.le_succ n) |
| 88 | rw [show (diagram f w).map (homOfLE (Nat.le_succ n)).op = IteratedAffineCover.step f w n from |
| 89 | Functor.ofOpSequence_map_homOfLE_succ _ n] at he |
| 90 | exact he |
| 91 | |
| 92 | def toBase (n : ℕ) : point f w ⟶ X := projection f w n ≫ (IteratedAffineCover.stage f w n).hom |
| 93 | |
| 94 | omit [Etale f] [Surjective f] in |
| 95 | theorem toBase_step (n : ℕ) : toBase f w (n + 1) ≫ f = toBase f w n := by |
| 96 | rw [toBase, toBase, Category.assoc, step_condition, ← Category.assoc, projection_step] |
| 97 | |
| 98 | instance point_affine : IsAffine (point f w) := |
| 99 | inferInstanceAs (IsAffine (Affine.SequenceCover.point (diagram f w))) |
| 100 | |
| 101 | theorem projection_zero_surjective : Surjective (projection f w 0) := |
| 102 | Affine.SequenceCover.projection_surjective (diagram f w) (fun i j h => |
| 103 | let he := diagram_map f w i j h |
| 104 | letI : Etale ((diagram f w).map (homOfLE h).op) := he.1 |
| 105 | ⟨inferInstance, he.2⟩) |
| 106 | |
| 107 | theorem projection_zero_weaklyEtale : WeaklyEtale (projection f w 0) := |
| 108 | Affine.SequenceCover.projection_weaklyEtale (diagram f w) (fun i j h => |
| 109 | let he := diagram_map f w i j h |
| 110 | letI : Etale ((diagram f w).map (homOfLE h).op) := he.1 |
| 111 | ⟨inferInstance, he.2⟩) (fun n => by |
| 112 | let : Etale ((diagram f w).map (homOfLE (Nat.zero_le n)).op) := |
| 113 | (diagram_map f w 0 n (Nat.zero_le n)).1 |
| 114 | infer_instance) |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.NumberTheory.PadicHodge.IntegralComparison.IteratedAffineCover |