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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SingularCoefficientExact |
| 2 | |
| 3 | /-! # Singular Coefficient Image -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SingularCoefficientImage |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exactness at the middle term of singular cohomology for a short |
| 10 | exact coefficient sequence. The lift is constructed from actual cochains. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | variable {R : Type} [Ring R] {M N P : ModuleCat.{0} R} |
| 15 | (f : M ⟶ N) (g : N ⟶ P) (X : TopCat.{0}) |
| 16 | (hf : Function.Injective f) (hg : Function.Surjective g) |
| 17 | (he : ∀ b : N, g b = 0 ↔ ∃ a : M, f a = b) |
| 18 | |
| 19 | include hf hg he in |
| 20 | theorem singularCoefficient_lift_of_zero (n : ℕ) |
| 21 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology N X (n + 1)) |
| 22 | (ha : AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap g X (n + 1) a = 0) : |
| 23 | ∃ b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X (n + 1), |
| 24 | AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap f X (n + 1) b = a := by |
| 25 | obtain ⟨c, hc⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.singularClass_surjective N X (n + 1) a |
| 26 | have hgc : AlgebraicTopology.Cohomology.Singular.Representatives.singularClass P X (n + 1) (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientCocycleMap g X (n + 1) c) = |
| 27 | AlgebraicTopology.Cohomology.Singular.Representatives.singularClass P X (n + 1) 0 := by |
| 28 | rw [← AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientMap_class, hc, ha, map_zero] |
| 29 | obtain ⟨u, hu⟩ := (AlgebraicTopology.Cohomology.Singular.Representatives.singularClass_eq_iff_exists_succ P X n _ _).mp hgc |
| 30 | have hdu : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains P X).d n (n + 1) u = |
| 31 | (AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientCochainMap g X).f (n + 1) c.val := by |
| 32 | exact (hu.trans (sub_zero _)).trans |
| 33 | (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainCocycleMap_val (AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientCochainMap g X) (n + 1) c) |
| 34 | obtain ⟨v, hv⟩ := SingularCoefficientExact.coefficientCochain_surjective g X hg n u |
| 35 | let c' := c.val - (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d n (n + 1) v |
| 36 | have hgc' : (AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientCochainMap g X).f (n + 1) c' = 0 := by |
| 37 | dsimp only [c'] |
| 38 | rw [map_sub, ← SingularCoefficientExact.coefficientCochain_d, hv, hdu, sub_self] |
| 39 | obtain ⟨w, hw⟩ := SingularCoefficientExact.coefficientCochain_exact f g X he (n + 1) c' hgc' |
| 40 | have hdc : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d (n + 1) (n + 2) c.val = 0 := |
| 41 | (AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff _ _ _).mp c.property |
| 42 | have hdd : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d (n + 1) (n + 2) |
| 43 | ((AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d n (n + 1) v) = 0 := |
| 44 | ConcreteCategory.congr_hom ((AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d_comp_d n (n + 1) (n + 2)) v |
| 45 | have hdw : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains M X).d (n + 1) (n + 2) w = 0 := by |
| 46 | apply SingularCoefficientExact.coefficientCochain_injective f X hf (n + 2) |
| 47 | rw [map_zero, ← SingularCoefficientExact.coefficientCochain_d, hw] |
| 48 | dsimp only [c'] |
| 49 | rw [map_sub, hdc, hdd, sub_self] |
| 50 | let b : AlgebraicTopology.Cohomology.Singular.Representatives.singularCocycles M X (n + 1) := |
| 51 | ⟨w, (AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff _ _ _).mpr hdw⟩ |
| 52 | refine ⟨AlgebraicTopology.Cohomology.Singular.Representatives.singularClass M X (n + 1) b, ?_⟩ |
| 53 | rw [AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientMap_class] |
| 54 | have hb : AlgebraicTopology.Cohomology.Singular.Representatives.singularClass N X (n + 1) c = |
| 55 | AlgebraicTopology.Cohomology.Singular.Representatives.singularClass N X (n + 1) (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientCocycleMap f X (n + 1) b) := by |
| 56 | apply (AlgebraicTopology.Cohomology.Singular.Representatives.singularClass_eq_iff_exists_succ N X n _ _).mpr |
| 57 | refine ⟨v, ?_⟩ |
| 58 | change (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains N X).d n (n + 1) v = |
| 59 | c.val - (AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientCochainMap f X).f (n + 1) w |
| 60 | rw [hw] |
| 61 | dsimp only [c'] |
| 62 | abel |
| 63 | exact hb.symm.trans hc |
| 64 | |
| 65 | include he in |
| 66 | theorem singularCoefficient_comp_zero (n : ℕ) |
| 67 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X n) : |
| 68 | AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap g X n (AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap f X n a) = 0 := by |
| 69 | obtain ⟨c, hc⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.singularClass_surjective M X n a |
| 70 | rw [← hc, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientMap_class, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientMap_class] |
| 71 | have hz : AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientCocycleMap g X n (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.coefficientCocycleMap f X n c) = 0 := by |
| 72 | apply Subtype.ext |
| 73 | exact SingularCoefficientExact.coefficientCochain_comp_zero f g X |
| 74 | (fun x => (he (f x)).mpr ⟨x, rfl⟩) n c.val |
| 75 | rw [hz, map_zero] |
| 76 | |
| 77 | include hf hg he in |
| 78 | theorem singularCoefficient_image_iff (n : ℕ) |
| 79 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology N X (n + 1)) : |
| 80 | AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap g X (n + 1) a = 0 ↔ |
| 81 | ∃ b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X (n + 1), |
| 82 | AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap f X (n + 1) b = a := by |
| 83 | constructor |
| 84 | · exact singularCoefficient_lift_of_zero f g X hf hg he n a |
| 85 | · rintro ⟨b, rfl⟩ |
| 86 | exact singularCoefficient_comp_zero f g X he (n + 1) b |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SingularCoefficientImage |