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.Quotients.FiniteDescent.GaussianContraction |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.Preadditive |
| 4 | |
| 5 | /-! # Gaussian Short Complex -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GaussianShortComplex.Construction.LocalSectionLifting |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Gaussian cancellation for the outgoing differential of a short complex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | {E A B C D : Type v} |
| 19 | [AddCommGroup E] [Module R E] [AddCommGroup A] [Module R A] |
| 20 | [AddCommGroup B] [Module R B] [AddCommGroup C] [Module R C] |
| 21 | [AddCommGroup D] [Module R D] |
| 22 | (a : A →ₗ[R] C) (b : B →ₗ[R] C) (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) |
| 23 | (e : E →ₗ[R] (A × B)) (he : (ComplexGaussian.Construction.LocalSectionLifting.blockDifferential a b c d).comp e = 0) |
| 24 | |
| 25 | abbrev blockOutgoingComplex : ShortComplex (ModuleCat.{v} R) := |
| 26 | ShortComplex.moduleCatMk e (ComplexGaussian.Construction.LocalSectionLifting.blockDifferential a b c d) he |
| 27 | |
| 28 | include he in |
| 29 | theorem schurOutgoing_zero : |
| 30 | (ComplexGaussian.Construction.LocalSectionLifting.schurDifferential a b c d).comp ((LinearMap.fst R A B).comp e) = 0 := by |
| 31 | apply LinearMap.ext |
| 32 | intro x |
| 33 | change ComplexGaussian.Construction.LocalSectionLifting.schurDifferential a b c d (e x).1 = 0 |
| 34 | rw [← GaussianContraction.Construction.LocalSectionLifting.block_projection_differential a b c d] |
| 35 | have hx : ComplexGaussian.Construction.LocalSectionLifting.blockDifferential a b c d (e x) = 0 := LinearMap.congr_fun he x |
| 36 | rw [hx, map_zero] |
| 37 | |
| 38 | abbrev schurOutgoingComplex : ShortComplex (ModuleCat.{v} R) := |
| 39 | ShortComplex.moduleCatMk ((LinearMap.fst R A B).comp e) (ComplexGaussian.Construction.LocalSectionLifting.schurDifferential a b c d) |
| 40 | (schurOutgoing_zero a b c d e he) |
| 41 | |
| 42 | def blockOutgoingProjection : blockOutgoingComplex a b c d e he ⟶ |
| 43 | schurOutgoingComplex a b c d e he where |
| 44 | τ₁ := 𝟙 _ |
| 45 | τ₂ := ModuleCat.ofHom (LinearMap.fst R A B) |
| 46 | τ₃ := ModuleCat.ofHom (GaussianCokernel.Construction.LocalSectionLifting.blockCokernelProjection b d) |
| 47 | comm₁₂ := rfl |
| 48 | comm₂₃ := by |
| 49 | ext x |
| 50 | exact (GaussianContraction.Construction.LocalSectionLifting.block_projection_differential a b c d x).symm |
| 51 | |
| 52 | def blockOutgoingInclusion : schurOutgoingComplex a b c d e he ⟶ |
| 53 | blockOutgoingComplex a b c d e he where |
| 54 | τ₁ := 𝟙 _ |
| 55 | τ₂ := ModuleCat.ofHom (GaussianContraction.Construction.LocalSectionLifting.blockSourceInclusion c d) |
| 56 | τ₃ := ModuleCat.ofHom (LinearMap.inl R C D) |
| 57 | comm₁₂ := by |
| 58 | ext x |
| 59 | exact (GaussianContraction.Construction.LocalSectionLifting.block_source_retraction_on_kernel a b c d (e x) (LinearMap.congr_fun he x)).symm |
| 60 | comm₂₃ := by |
| 61 | ext x |
| 62 | exact GaussianContraction.Construction.LocalSectionLifting.block_differential_inclusion a b c d x |
| 63 | |
| 64 | theorem blockOutgoing_inclusion_projection : |
| 65 | blockOutgoingInclusion a b c d e he ≫ blockOutgoingProjection a b c d e he = |
| 66 | 𝟙 (schurOutgoingComplex a b c d e he) := by |
| 67 | apply ShortComplex.Hom.ext |
| 68 | · rfl |
| 69 | · ext x |
| 70 | exact GaussianContraction.Construction.LocalSectionLifting.block_source_retraction c d x |
| 71 | · ext x |
| 72 | exact GaussianContraction.Construction.LocalSectionLifting.block_target_retraction b d x |
| 73 | |
| 74 | def blockOutgoing_contraction : ShortComplex.Homotopy |
| 75 | (blockOutgoingProjection a b c d e he ≫ blockOutgoingInclusion a b c d e he) |
| 76 | (𝟙 (blockOutgoingComplex a b c d e he)) where |
| 77 | h₀ := 0 |
| 78 | h₁ := 0 |
| 79 | h₂ := ModuleCat.ofHom (-GaussianContraction.Construction.LocalSectionLifting.blockContractingMap d) |
| 80 | h₃ := 0 |
| 81 | h₀_f := by |
| 82 | ext x |
| 83 | exact map_zero e |
| 84 | g_h₃ := by ext x; rfl |
| 85 | comm₁ := by |
| 86 | ext x |
| 87 | change E at x |
| 88 | change x = (0 : E) + 0 + x |
| 89 | simp |
| 90 | comm₂ := by |
| 91 | ext x |
| 92 | change A × B at x |
| 93 | change GaussianContraction.Construction.LocalSectionLifting.blockSourceInclusion c d x.1 = |
| 94 | -GaussianContraction.Construction.LocalSectionLifting.blockContractingMap d (ComplexGaussian.Construction.LocalSectionLifting.blockDifferential a b c d x) + e 0 + x |
| 95 | rw [GaussianContraction.Construction.LocalSectionLifting.block_source_contraction a b c d x, map_zero] |
| 96 | abel |
| 97 | comm₃ := by |
| 98 | ext x |
| 99 | change C × D at x |
| 100 | change (GaussianCokernel.Construction.LocalSectionLifting.blockCokernelProjection b d x, (0 : D)) = |
| 101 | 0 + ComplexGaussian.Construction.LocalSectionLifting.blockDifferential a b c d (-GaussianContraction.Construction.LocalSectionLifting.blockContractingMap d x) + x |
| 102 | rw [GaussianContraction.Construction.LocalSectionLifting.block_target_contraction a b c d x, map_neg] |
| 103 | abel |
| 104 | |
| 105 | def blockOutgoingHomotopyEquiv : ShortComplex.HomotopyEquiv |
| 106 | (blockOutgoingComplex a b c d e he) (schurOutgoingComplex a b c d e he) where |
| 107 | hom := blockOutgoingProjection a b c d e he |
| 108 | inv := blockOutgoingInclusion a b c d e he |
| 109 | homotopyHomInvId := blockOutgoing_contraction a b c d e he |
| 110 | homotopyInvHomId := ShortComplex.Homotopy.ofEq |
| 111 | (blockOutgoing_inclusion_projection a b c d e he) |
| 112 | |
| 113 | def blockOutgoingHomologyIso : (blockOutgoingComplex a b c d e he).homology ≅ |
| 114 | (schurOutgoingComplex a b c d e he).homology where |
| 115 | hom := ShortComplex.homologyMap (blockOutgoingProjection a b c d e he) |
| 116 | inv := ShortComplex.homologyMap (blockOutgoingInclusion a b c d e he) |
| 117 | hom_inv_id := by |
| 118 | rw [← ShortComplex.homologyMap_comp, |
| 119 | (blockOutgoing_contraction a b c d e he).homologyMap_congr, |
| 120 | ShortComplex.homologyMap_id] |
| 121 | inv_hom_id := by |
| 122 | rw [← ShortComplex.homologyMap_comp, blockOutgoing_inclusion_projection, |
| 123 | ShortComplex.homologyMap_id] |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GaussianShortComplex.Construction.LocalSectionLifting |