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.NonemptyCechDifferential |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SupportFunctoriality |
| 3 | |
| 4 | /-! # Tuple Restriction Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.TupleRestrictionFunctor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite integral tuple matrices act on the original Čech complex of |
| 11 | any presheaf on a preorder. Support containment supplies every restriction. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 14 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SupportFunctoriality |
| 15 | |
| 16 | universe u v w |
| 17 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 18 | {D : Type v} [Category.{w} D] [Preadditive D] [HasProducts.{u} D] |
| 19 | {ι : Type u} (U : ι → C) (P : Cᵒᵖ ⥤ D) |
| 20 | |
| 21 | abbrev complex := NonemptyCechDifferential.complex U P |
| 22 | abbrev factor {n : ℕ} (i : Fin (n + 1) → ι) := P.obj (op (∏ᶜ (U ∘ i))) |
| 23 | abbrev projection {n : ℕ} (i : Fin (n + 1) → ι) := |
| 24 | NonemptyCechDifferential.projection U P n i |
| 25 | |
| 26 | def inclusion {n m : ℕ} (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) |
| 27 | (h : Set.range j ⊆ Set.range i) : (∏ᶜ (U ∘ i)) ⟶ ∏ᶜ (U ∘ j) := |
| 28 | Pi.lift fun k => Pi.π (U ∘ i) (Classical.choose (h ⟨k, rfl⟩)) ≫ |
| 29 | eqToHom (congrArg U (Classical.choose_spec (h ⟨k, rfl⟩))) |
| 30 | |
| 31 | def restriction {n m : ℕ} (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) |
| 32 | (h : Set.range j ⊆ Set.range i) : factor U P j ⟶ factor U P i := |
| 33 | P.map (inclusion U i j h).op |
| 34 | |
| 35 | omit [Preadditive D] [HasProducts D] in |
| 36 | theorem restriction_comp {n m l : ℕ} |
| 37 | (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) (k : Fin (l + 1) → ι) |
| 38 | (hkj : Set.range k ⊆ Set.range j) (hji : Set.range j ⊆ Set.range i) : |
| 39 | restriction U P j k hkj ≫ restriction U P i j hji = |
| 40 | restriction U P i k (hkj.trans hji) := by |
| 41 | rw [restriction, restriction, ← P.map_comp] |
| 42 | congr 1 |
| 43 | |
| 44 | omit [Preadditive D] [HasProducts D] in |
| 45 | theorem restriction_self {n : ℕ} (i : Fin (n + 1) → ι) : |
| 46 | restriction U P i i Set.Subset.rfl = 𝟙 _ := by |
| 47 | unfold restriction |
| 48 | rw [Subsingleton.elim (inclusion U i i Set.Subset.rfl) (𝟙 _), op_id, P.map_id] |
| 49 | |
| 50 | def rowBasis {n m : ℕ} (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) : |
| 51 | (complex U P).X m ⟶ factor U P i := by |
| 52 | classical |
| 53 | exact if h : Set.range j ⊆ Set.range i then |
| 54 | projection U P j ≫ restriction U P i j h else 0 |
| 55 | |
| 56 | theorem rowBasis_of_subset {n m : ℕ} (i : Fin (n + 1) → ι) |
| 57 | (j : Fin (m + 1) → ι) (h : Set.range j ⊆ Set.range i) : |
| 58 | rowBasis U P i j = projection U P j ≫ restriction U P i j h := by |
| 59 | classical |
| 60 | simp only [rowBasis, dite_eq_left h] |
| 61 | |
| 62 | def row {n m : ℕ} (i : Fin (n + 1) → ι) : |
| 63 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m →ₗ[ℤ] ((complex U P).X m ⟶ factor U P i) := |
| 64 | Finsupp.lsum ℤ fun j => LinearMap.toSpanSingleton ℤ _ (rowBasis U P i j) |
| 65 | |
| 66 | theorem row_single {n m : ℕ} (i : Fin (n + 1) → ι) |
| 67 | (j : Fin (m + 1) → ι) (a : ℤ) : |
| 68 | row U P i (Finsupp.single j a) = a • rowBasis U P i j := by |
| 69 | simp only [row, Finsupp.lsum_single, LinearMap.toSpanSingleton_apply] |
| 70 | |
| 71 | theorem row_restriction {n m l : ℕ} |
| 72 | (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) |
| 73 | (hji : Set.range j ⊆ Set.range i) (x : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι l) |
| 74 | (hx : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain.SupportedBy x (Set.range j)) : |
| 75 | row U P j x ≫ restriction U P i j hji = row U P i x := by |
| 76 | classical |
| 77 | simp only [row, Finsupp.lsum_apply, Finsupp.sum, sum_comp, |
| 78 | LinearMap.toSpanSingleton_apply, zsmul_comp] |
| 79 | apply Finset.sum_congr rfl |
| 80 | intro k hk |
| 81 | rw [rowBasis_of_subset U P j k (hx hk), |
| 82 | rowBasis_of_subset U P i k ((hx hk).trans hji), Category.assoc, |
| 83 | restriction_comp] |
| 84 | |
| 85 | def map {n m : ℕ} (f : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m) |
| 86 | (_hf : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) : (complex U P).X m ⟶ (complex U P).X n := |
| 87 | Pi.lift fun i => row U P i (f (Finsupp.single i 1)) |
| 88 | |
| 89 | theorem map_projection {n m : ℕ} |
| 90 | (f : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m) |
| 91 | (hf : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) (i : Fin (n + 1) → ι) : |
| 92 | TupleRestrictionFunctor.map U P f hf ≫ projection U P i = row U P i (f (Finsupp.single i 1)) := |
| 93 | Pi.lift_comp_π _ i |
| 94 | |
| 95 | theorem map_row {n m l : ℕ} |
| 96 | (f : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m →ₗ[ℤ] AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι l) |
| 97 | (hf : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) (i : Fin (n + 1) → ι) |
| 98 | (x : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m) (hx : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain.SupportedBy x (Set.range i)) : |
| 99 | TupleRestrictionFunctor.map U P f hf ≫ row U P i x = row U P i (f x) := by |
| 100 | classical |
| 101 | rw [AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SupportFunctoriality.linearMap_apply_eq_finsupp_sum_single f x, map_finsuppSum] |
| 102 | simp only [row, Finsupp.lsum_apply, Finsupp.sum, |
| 103 | LinearMap.toSpanSingleton_apply, comp_sum, comp_zsmul, map_smul] |
| 104 | apply Finset.sum_congr rfl |
| 105 | intro j hj |
| 106 | rw [rowBasis_of_subset U P i j (hx hj), ← Category.assoc, |
| 107 | map_projection] |
| 108 | exact congrArg (fun t => x j • t) (row_restriction U P i j (hx hj) |
| 109 | (f (Finsupp.single j 1)) (hf j)) |
| 110 | |
| 111 | theorem map_comp {n m l : ℕ} |
| 112 | (f : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m) |
| 113 | (g : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι m →ₗ[ℤ] AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.CechTupleChain ι l) |
| 114 | (hf : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) (hg : AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing g) : |
| 115 | TupleRestrictionFunctor.map U P (g.comp f) (hg.comp hf) = TupleRestrictionFunctor.map U P g hg ≫ TupleRestrictionFunctor.map U P f hf := by |
| 116 | apply Pi.hom_ext |
| 117 | intro (i : Fin (n + 1) → ι) |
| 118 | change _ ≫ projection U P i = _ ≫ projection U P i |
| 119 | rw [map_projection, Category.assoc, map_projection, map_row] |
| 120 | · rfl |
| 121 | · exact hf i |
| 122 | |
| 123 | theorem map_boundary (n : ℕ) : |
| 124 | TupleRestrictionFunctor.map U P (AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.cechTupleBoundary n) (AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SupportFunctoriality.cechTupleBoundary_supportNonincreasing n) = |
| 125 | (complex U P).d n (n + 1) := by |
| 126 | apply Pi.hom_ext |
| 127 | intro (i : Fin (n + 2) → ι) |
| 128 | change _ ≫ projection U P i = _ ≫ projection U P i |
| 129 | rw [map_projection, AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.cechTupleBoundary_single, one_smul, |
| 130 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.cechTupleBoundaryBasis, map_sum, NonemptyCechDifferential.differential_projection] |
| 131 | apply Finset.sum_congr rfl |
| 132 | intro j _ |
| 133 | have h : Set.range (AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains.cechTupleDelete i j) ⊆ Set.range i := by |
| 134 | rintro x ⟨k, rfl⟩ |
| 135 | exact ⟨j.succAbove k, rfl⟩ |
| 136 | rw [row_single, rowBasis_of_subset U P i _ h] |
| 137 | congr 2 |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.TupleRestrictionFunctor |