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.Divisors.LineBundles.Periodic.PeriodicComplex |
| 2 | |
| 3 | /-! # Exact -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.Exact.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: the explicit kernel modulo image of a periodic complex |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 18 | |
| 19 | /-- The image of the incoming map as a submodule of the outgoing kernel. -/ |
| 20 | def periodicBoundaryMap (φ ψ : M →ₗ[R] M) (hψφ : φ.comp ψ = 0) : |
| 21 | M →ₗ[R] φ.ker := |
| 22 | ψ.codRestrict φ.ker (fun x => LinearMap.congr_fun hψφ x) |
| 23 | |
| 24 | abbrev periodicHomology (φ ψ : M →ₗ[R] M) (hψφ : φ.comp ψ = 0) := |
| 25 | φ.ker ⧸ (periodicBoundaryMap φ ψ hψφ).range |
| 26 | |
| 27 | def endomorphismPeriodicComplex_homology_false_iso |
| 28 | (φ ψ : M →ₗ[R] M) (hφψ : ψ.comp φ = 0) (hψφ : φ.comp ψ = 0) : |
| 29 | (PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homology false ≅ |
| 30 | ModuleCat.of R (periodicHomology φ ψ hψφ) := |
| 31 | (PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homologyIsoSc' true false true |
| 32 | (PeriodicComplex.BundleCycles.periodicComplexShape.prev_eq' PeriodicComplex.BundleCycles.periodicComplexShape_true_false) |
| 33 | (PeriodicComplex.BundleCycles.periodicComplexShape.next_eq' PeriodicComplex.BundleCycles.periodicComplexShape_false_true) ≪≫ |
| 34 | (ShortComplex.moduleCatMk ψ φ hψφ).moduleCatHomologyIso |
| 35 | |
| 36 | def endomorphismPeriodicComplex_homology_true_iso |
| 37 | (φ ψ : M →ₗ[R] M) (hφψ : ψ.comp φ = 0) (hψφ : φ.comp ψ = 0) : |
| 38 | (PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homology true ≅ |
| 39 | ModuleCat.of R (periodicHomology ψ φ hφψ) := |
| 40 | (PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homologyIsoSc' false true false |
| 41 | (PeriodicComplex.BundleCycles.periodicComplexShape.prev_eq' PeriodicComplex.BundleCycles.periodicComplexShape_false_true) |
| 42 | (PeriodicComplex.BundleCycles.periodicComplexShape.next_eq' PeriodicComplex.BundleCycles.periodicComplexShape_true_false) ≪≫ |
| 43 | (ShortComplex.moduleCatMk φ ψ hφψ).moduleCatHomologyIso |
| 44 | |
| 45 | theorem periodicHomology_length_ne_top |
| 46 | (φ ψ : M →ₗ[R] M) (hψφ : φ.comp ψ = 0) |
| 47 | (hM : Module.length R M ≠ ⊤) : |
| 48 | Module.length R (periodicHomology φ ψ hψφ) ≠ ⊤ := |
| 49 | ne_top_of_le_ne_top |
| 50 | (ne_top_of_le_ne_top hM (Module.length_le_of_injective φ.ker.subtype |
| 51 | φ.ker.subtype_injective)) |
| 52 | (Module.length_le_of_surjective (periodicBoundaryMap φ ψ hψφ).range.mkQ |
| 53 | (Submodule.mkQ_surjective _)) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | /-! |
| 58 | # LineBundleCycles: exact periodic complexes have zero homology length |
| 59 | -/ |
| 60 | |
| 61 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 62 | |
| 63 | theorem periodicBoundaryMap_surjective_of_exact |
| 64 | (φ ψ : M →ₗ[R] M) (hψφ : φ.comp ψ = 0) (hex : Function.Exact ψ φ) : |
| 65 | Function.Surjective (periodicBoundaryMap φ ψ hψφ) := by |
| 66 | intro x |
| 67 | obtain ⟨y, hy⟩ := (hex x.1).mp x.2 |
| 68 | exact ⟨y, Subtype.ext hy⟩ |
| 69 | |
| 70 | theorem periodicHomology_length_zero_of_exact |
| 71 | (φ ψ : M →ₗ[R] M) (hψφ : φ.comp ψ = 0) (hex : Function.Exact ψ φ) : |
| 72 | Module.length R (periodicHomology φ ψ hψφ) = 0 := by |
| 73 | change Module.length R (φ.ker ⧸ (periodicBoundaryMap φ ψ hψφ).range) = 0 |
| 74 | rw [LinearMap.range_eq_top.mpr (periodicBoundaryMap_surjective_of_exact φ ψ hψφ hex)] |
| 75 | exact Module.length_eq_zero |
| 76 | |
| 77 | theorem endomorphismPeriodicComplex_homology_length_zero_of_exact |
| 78 | (φ ψ : M →ₗ[R] M) (hφψ : ψ.comp φ = 0) (hψφ : φ.comp ψ = 0) |
| 79 | (hexφψ : Function.Exact φ ψ) (hexψφ : Function.Exact ψ φ) (i : Bool) : |
| 80 | Module.length R ((PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homology i) = 0 := by |
| 81 | cases i |
| 82 | · rw [(endomorphismPeriodicComplex_homology_false_iso φ ψ hφψ hψφ).toLinearEquiv.length_eq] |
| 83 | exact periodicHomology_length_zero_of_exact φ ψ hψφ hexψφ |
| 84 | · rw [(endomorphismPeriodicComplex_homology_true_iso φ ψ hφψ hψφ).toLinearEquiv.length_eq] |
| 85 | exact periodicHomology_length_zero_of_exact ψ φ hφψ hexφψ |
| 86 | |
| 87 | theorem endomorphismPeriodicEulerLength_zero_of_exact |
| 88 | (φ ψ : M →ₗ[R] M) (hφψ : ψ.comp φ = 0) (hψφ : φ.comp ψ = 0) |
| 89 | (hexφψ : Function.Exact φ ψ) (hexψφ : Function.Exact ψ φ) |
| 90 | (h₀ : Module.length R ((PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homology false) ≠ ⊤) |
| 91 | (h₁ : Module.length R ((PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ).homology true) ≠ ⊤) : |
| 92 | PeriodicComplex.BundleCycles.periodicEulerLength (PeriodicComplex.BundleCycles.endomorphismPeriodicComplex φ ψ hφψ hψφ) h₀ h₁ = 0 := by |
| 93 | unfold PeriodicComplex.BundleCycles.periodicEulerLength |
| 94 | rw [endomorphismPeriodicComplex_homology_length_zero_of_exact φ ψ hφψ hψφ hexφψ hexψφ false, |
| 95 | endomorphismPeriodicComplex_homology_length_zero_of_exact φ ψ hφψ hψφ hexφψ hexψφ true] |
| 96 | rfl |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.Exact.BundleCycles |