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.OrderedCech.Refinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.CoefficientChange |
| 3 | |
| 4 | /-! # Refinement Coefficients -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.RefinementCoefficients |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual signed ordered Cech refinement commutes with additive, |
| 11 | product-preserving changes of coefficients. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u vA uA vB uB |
| 16 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 17 | {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 18 | (U : ι → C) (V : κ → C) |
| 19 | (r : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 20 | {A : Type uA} [Category.{vA} A] [Abelian A] [HasProducts.{u} A] |
| 21 | {B : Type uB} [Category.{vB} B] [Abelian B] [HasProducts.{u} B] |
| 22 | (G : A ⥤ B) [G.Additive] [PreservesLimitsOfSize.{u,u} G] |
| 23 | (P : Cᵒᵖ ⥤ A) |
| 24 | |
| 25 | private def fullObjectIso (n : ℕ) : |
| 26 | G.obj ((Cech.TupleRestrictionFunctor.complex U P).X n) ≅ |
| 27 | (Cech.TupleRestrictionFunctor.complex U (P ⋙ G)).X n := |
| 28 | PreservesProduct.iso G (fun a : Fin (n+1) → ι => Cech.TupleRestrictionFunctor.factor U P a) |
| 29 | |
| 30 | omit [LinearOrder ι] [G.Additive] in |
| 31 | private theorem full_projection (n : ℕ) (a : Fin (n+1) → ι) : |
| 32 | (fullObjectIso U G P n).hom ≫ Cech.TupleRestrictionFunctor.projection U (P ⋙ G) a = |
| 33 | G.map (Cech.TupleRestrictionFunctor.projection U P a) := |
| 34 | piComparison_comp_π G _ a |
| 35 | |
| 36 | omit [Abelian A] [Abelian B] [G.Additive] in |
| 37 | private theorem ordered_projection (n : ℕ) (a : Projection.Index (ι := ι) n) : |
| 38 | (AugmentedCech.CoefficientChange.objectIso U G P (n+1)).hom ≫ |
| 39 | Projection.projection U (P ⋙ G) n a = |
| 40 | G.map (Projection.projection U P n a) := |
| 41 | piComparison_comp_π G _ a |
| 42 | |
| 43 | omit [G.Additive] in |
| 44 | private theorem projection_natural (n : ℕ) : |
| 45 | G.map (Projection.mapF U P n) ≫ |
| 46 | (AugmentedCech.CoefficientChange.objectIso U G P (n+1)).hom = |
| 47 | (fullObjectIso U G P n).hom ≫ Projection.mapF U (P ⋙ G) n := by |
| 48 | apply Pi.hom_ext |
| 49 | intro (a : Projection.Index (ι := ι) n) |
| 50 | change _ ≫ Projection.projection U (P ⋙ G) n a = |
| 51 | _ ≫ Projection.projection U (P ⋙ G) n a |
| 52 | rw [Category.assoc, ordered_projection, ← G.map_comp, |
| 53 | Projection.mapF_projection, Category.assoc, |
| 54 | Projection.mapF_projection, full_projection] |
| 55 | |
| 56 | private abbrev sortedIndex {n : ℕ} (a : Fin (n+1) → ι) (ha : Function.Injective a) : |
| 57 | Projection.Index (ι := ι) n := |
| 58 | ⟨a ∘ Tuple.sort a, |
| 59 | (Tuple.monotone_sort a).strictMono_of_injective (ha.comp (Tuple.sort a).injective)⟩ |
| 60 | |
| 61 | private theorem sorted_subset {n : ℕ} (a : Fin (n+1) → ι) : |
| 62 | Set.range (a ∘ Tuple.sort a) ⊆ Set.range a := by |
| 63 | rintro x ⟨i, rfl⟩ |
| 64 | exact ⟨Tuple.sort a i, rfl⟩ |
| 65 | |
| 66 | private theorem inclusion_projection (n : ℕ) (a : Fin (n+1) → ι) (ha : Function.Injective a) : |
| 67 | Retraction.inclusionF U P n ≫ Cech.TupleRestrictionFunctor.projection U P a = |
| 68 | (Equiv.Perm.sign (Tuple.sort a) : ℤ) • |
| 69 | (Projection.projection U P n (sortedIndex a ha) ≫ |
| 70 | Cech.TupleRestrictionFunctor.restriction U P a (a ∘ Tuple.sort a) (sorted_subset a)) := by |
| 71 | rw [Retraction.inclusionF, Category.assoc, |
| 72 | Cech.SortedProjection.projection_injective U P n a ha, comp_zsmul, |
| 73 | Cech.TupleRestrictionFunctor.rowBasis_of_subset U P a _ (sorted_subset a), |
| 74 | ← Category.assoc, Projection.zeroExtension_projection U P n _ |
| 75 | (sortedIndex a ha).property] |
| 76 | |
| 77 | private theorem inclusion_projection_zero (n : ℕ) (a : Fin (n+1) → ι) |
| 78 | (ha : ¬ Function.Injective a) : |
| 79 | Retraction.inclusionF U P n ≫ Cech.TupleRestrictionFunctor.projection U P a = 0 := by |
| 80 | rw [Retraction.inclusionF, Category.assoc, |
| 81 | Cech.SortedProjection.projection_not_injective U P n a ha, comp_zero] |
| 82 | |
| 83 | private theorem inclusion_natural (n : ℕ) : |
| 84 | G.map (Retraction.inclusionF U P n) ≫ (fullObjectIso U G P n).hom = |
| 85 | (AugmentedCech.CoefficientChange.objectIso U G P (n+1)).hom ≫ |
| 86 | Retraction.inclusionF U (P ⋙ G) n := by |
| 87 | apply Pi.hom_ext |
| 88 | intro (a : Fin (n+1) → ι) |
| 89 | change _ ≫ Cech.TupleRestrictionFunctor.projection U (P ⋙ G) a = |
| 90 | _ ≫ Cech.TupleRestrictionFunctor.projection U (P ⋙ G) a |
| 91 | rw [Category.assoc, full_projection, ← G.map_comp, Category.assoc] |
| 92 | by_cases ha : Function.Injective a |
| 93 | · rw [inclusion_projection U P n a ha, inclusion_projection U (P ⋙ G) n a ha, |
| 94 | Functor.map_zsmul, G.map_comp, comp_zsmul, ← Category.assoc, ordered_projection] |
| 95 | rfl |
| 96 | · rw [inclusion_projection_zero U P n a ha, inclusion_projection_zero U (P ⋙ G) n a ha, |
| 97 | G.map_zero, comp_zero] |
| 98 | |
| 99 | variable [HasCoproducts.{0} A] [HasCoproducts.{0} B] |
| 100 | |
| 101 | omit [LinearOrder ι] [LinearOrder κ] [G.Additive] [HasCoproducts.{0} A] [HasCoproducts.{0} B] in |
| 102 | private theorem full_refinement_natural (n : ℕ) : |
| 103 | G.map ((GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r P).f n) ≫ (fullObjectIso V G P n).hom = |
| 104 | (fullObjectIso U G P n).hom ≫ (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r (P ⋙ G)).f n := by |
| 105 | let En := (NonemptyCechNerve.nerve U).obj (op (SimplexCategory.mk n)) |
| 106 | let Em := (NonemptyCechNerve.nerve V).obj (op (SimplexCategory.mk n)) |
| 107 | let a := (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.nerveMap U V r).app (op (SimplexCategory.mk n)) |
| 108 | exact AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.piComparison_natural G |
| 109 | (fun i : En.I => P.obj (op (En.obj i))) (fun i : Em.I => P.obj (op (Em.obj i))) |
| 110 | a.f (fun i => P.map (a.φ i).op) |
| 111 | |
| 112 | omit [HasCoproducts.{0} A] [HasCoproducts.{0} B] in |
| 113 | theorem complex_natural : |
| 114 | (G.mapHomologicalComplex (.up ℕ)).map (Refinement.map U V r P) ≫ |
| 115 | (CoefficientChange.complexIso V G P).hom = |
| 116 | (CoefficientChange.complexIso U G P).hom ≫ |
| 117 | Refinement.map U V r (P ⋙ G) := by |
| 118 | apply HomologicalComplex.Hom.ext |
| 119 | funext n |
| 120 | change G.map (Retraction.inclusionF U P n ≫ |
| 121 | (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r P).f n ≫ Projection.mapF V P n) ≫ |
| 122 | (AugmentedCech.CoefficientChange.objectIso V G P (n+1)).hom = |
| 123 | (AugmentedCech.CoefficientChange.objectIso U G P (n+1)).hom ≫ |
| 124 | (Retraction.inclusionF U (P ⋙ G) n ≫ |
| 125 | (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r (P ⋙ G)).f n ≫ |
| 126 | Projection.mapF V (P ⋙ G) n) |
| 127 | simp only [G.map_comp, Category.assoc] |
| 128 | rw [projection_natural, ← Category.assoc (G.map ((GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r P).f n)), |
| 129 | full_refinement_natural, Category.assoc, |
| 130 | ← Category.assoc (G.map (Retraction.inclusionF U P n)), inclusion_natural] |
| 131 | simp only [Category.assoc] |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.RefinementCoefficients |