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.GeometricComparison.BicomplexLow |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary |
| 3 | |
| 4 | /-! # Total One Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Module.TotalOneCoordinates.ModuleTotalOneCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Degree-zero and degree-one module coordinates of the original total complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | open OAI.NumberTheory.PadicHodge.GeometricComparison.BicomplexLow.BicomplexLowDegree |
| 15 | universe u v |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | (B : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)) [B.HasTotal (.up ℕ)] |
| 18 | |
| 19 | def zero : (B.X 0).X 0 →ₗ[R] (B.total (.up ℕ)).X 0 := |
| 20 | (B.ιTotal (.up ℕ) 0 0 0 rfl).hom |
| 21 | |
| 22 | def one : (B.X 0).X 1 × (B.X 1).X 0 →ₗ[R] (B.total (.up ℕ)).X 1 := |
| 23 | (B.ιTotal (.up ℕ) 0 1 1 rfl).hom.comp (LinearMap.fst R _ _) + |
| 24 | (B.ιTotal (.up ℕ) 1 0 1 rfl).hom.comp (LinearMap.snd R _ _) |
| 25 | |
| 26 | def first : (B.total (.up ℕ)).X 1 →ₗ[R] (B.X 0).X 1 := ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 1 1).hom |
| 27 | |
| 28 | def second : (B.total (.up ℕ)).X 1 →ₗ[R] (B.X 1).X 0 := ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 1 0 1).hom |
| 29 | |
| 30 | theorem first_one (x : (B.X 0).X 1) (y : (B.X 1).X 0) : first B (one B (x, y)) = x := by |
| 31 | change ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 1 1).hom (_ + _) = x |
| 32 | rw [map_add] |
| 33 | change (B.ιTotal (.up ℕ) 0 1 1 rfl ≫ (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 1 1).hom x + |
| 34 | (B.ιTotal (.up ℕ) 1 0 1 rfl ≫ (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 1 1).hom y = x |
| 35 | simp |
| 36 | |
| 37 | theorem second_one (x : (B.X 0).X 1) (y : (B.X 1).X 0) : second B (one B (x, y)) = y := by |
| 38 | change ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 1 0 1).hom (_ + _) = y |
| 39 | rw [map_add] |
| 40 | change (B.ιTotal (.up ℕ) 0 1 1 rfl ≫ (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 1 0 1).hom x + |
| 41 | (B.ιTotal (.up ℕ) 1 0 1 rfl ≫ (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 1 0 1).hom y = y |
| 42 | simp |
| 43 | |
| 44 | theorem one_coordinates (z : (B.total (.up ℕ)).X 1) : one B (first B z, second B z) = z := |
| 45 | congrArg (fun g => g.hom z) (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.totalUpNat_one_decomposition B) |
| 46 | |
| 47 | theorem zero_coordinate (z : (B.total (.up ℕ)).X 0) : |
| 48 | zero B (((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 0 0).hom z) = z := |
| 49 | congrArg (fun g => g.hom z) (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.totalUpNat_zero_decomposition B) |
| 50 | |
| 51 | theorem one_injective : Function.Injective (one B) := by |
| 52 | rintro ⟨x₀, x₁⟩ ⟨y₀, y₁⟩ h |
| 53 | apply Prod.ext |
| 54 | · simpa only [first_one] using congrArg (first B) h |
| 55 | · simpa only [second_one] using congrArg (second B) h |
| 56 | |
| 57 | theorem boundary (b : (B.X 0).X 0) : |
| 58 | ((B.total (.up ℕ)).d 0 1).hom (zero B b) = |
| 59 | one B (BicomplexLow.BicomplexLowDegree.vertical B 0 0 b, BicomplexLow.BicomplexLowDegree.horizontal B 0 0 b) := by |
| 60 | have h := congrArg (fun g => g.hom b) ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat B) 0 0) |
| 61 | simpa [zero, one, BicomplexLow.BicomplexLowDegree.vertical, BicomplexLow.BicomplexLowDegree.horizontal, add_comm] using h |
| 62 | |
| 63 | theorem cycle_first (z : (B.total (.up ℕ)).X 1) |
| 64 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : BicomplexLow.BicomplexLowDegree.vertical B 0 1 (first B z) = 0 := by |
| 65 | have h := congrArg (fun g => g.hom z) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.total_d_π_zero B 1) |
| 66 | change ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 0 2 2).hom (((B.total (.up ℕ)).d 1 2).hom z) = |
| 67 | BicomplexLow.BicomplexLowDegree.vertical B 0 1 (first B z) at h |
| 68 | rw [hz, map_zero] at h |
| 69 | exact h.symm |
| 70 | |
| 71 | theorem cycle_mixed (z : (B.total (.up ℕ)).X 1) |
| 72 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : |
| 73 | BicomplexLow.BicomplexLowDegree.horizontal B 0 1 (first B z) = BicomplexLow.BicomplexLowDegree.vertical B 1 0 (second B z) := by |
| 74 | have h := congrArg (fun g => g.hom z) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.total_d_π_interior B 0 0) |
| 75 | have h' : BicomplexLow.BicomplexLowDegree.horizontal B 0 1 (first B z) - BicomplexLow.BicomplexLowDegree.vertical B 1 0 (second B z) = 0 := by |
| 76 | simpa [first, second, BicomplexLow.BicomplexLowDegree.horizontal, BicomplexLow.BicomplexLowDegree.vertical, hz, Units.smul_def, sub_eq_add_neg] using h.symm |
| 77 | exact sub_eq_zero.mp h' |
| 78 | |
| 79 | theorem cycle_second (z : (B.total (.up ℕ)).X 1) |
| 80 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : BicomplexLow.BicomplexLowDegree.horizontal B 1 0 (second B z) = 0 := by |
| 81 | have h := congrArg (fun g => g.hom z) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.total_d_π_zero_right B 1) |
| 82 | change ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat B) 2 0 2).hom (((B.total (.up ℕ)).d 1 2).hom z) = |
| 83 | BicomplexLow.BicomplexLowDegree.horizontal B 1 0 (second B z) at h |
| 84 | rw [hz, map_zero] at h |
| 85 | exact h.symm |
| 86 | |
| 87 | theorem one_cycle (x : (B.X 0).X 1) (y : (B.X 1).X 0) |
| 88 | (hx : BicomplexLow.BicomplexLowDegree.vertical B 0 1 x = 0) (hxy : BicomplexLow.BicomplexLowDegree.horizontal B 0 1 x = BicomplexLow.BicomplexLowDegree.vertical B 1 0 y) |
| 89 | (hy : BicomplexLow.BicomplexLowDegree.horizontal B 1 0 y = 0) : ((B.total (.up ℕ)).d 1 2).hom (one B (x, y)) = 0 := by |
| 90 | have h01 := congrArg (fun g => g.hom x) ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat B) 0 1) |
| 91 | have h10 := congrArg (fun g => g.hom y) ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat B) 1 0) |
| 92 | change ((B.total (.up ℕ)).d 1 2).hom (_ + _) = 0 |
| 93 | rw [map_add] |
| 94 | dsimp only [LinearMap.comp_apply, LinearMap.fst_apply, LinearMap.snd_apply] |
| 95 | dsimp only [ModuleCat.hom_comp, LinearMap.comp_apply] at h01 h10 |
| 96 | rw [h01, h10] |
| 97 | simp only [pow_zero, pow_one, one_smul, Units.smul_def, Units.val_neg, |
| 98 | Units.val_one, neg_one_zsmul, ModuleCat.hom_add, ModuleCat.hom_neg, |
| 99 | LinearMap.add_apply, LinearMap.neg_apply, ModuleCat.hom_comp, LinearMap.comp_apply] |
| 100 | change ((B.ιTotal (.up ℕ) 1 1 2 rfl).hom (BicomplexLow.BicomplexLowDegree.horizontal B 0 1 x) + |
| 101 | (B.ιTotal (.up ℕ) 0 2 2 rfl).hom (BicomplexLow.BicomplexLowDegree.vertical B 0 1 x)) + |
| 102 | ((B.ιTotal (.up ℕ) 2 0 2 rfl).hom (BicomplexLow.BicomplexLowDegree.horizontal B 1 0 y) + |
| 103 | -(B.ιTotal (.up ℕ) 1 1 2 rfl).hom (BicomplexLow.BicomplexLowDegree.vertical B 1 0 y)) = 0 |
| 104 | rw [hx, hy, hxy, map_zero, map_zero] |
| 105 | abel |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Module.TotalOneCoordinates.ModuleTotalOneCoordinates |