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.HilbertConstruction.Constant.StructureSectionEquivalence |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.CharacterAverageSectionValues |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.CharacterAverageValues |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.ConjugateRanges |
| 5 | |
| 6 | /-! # Character Section Projectors -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.CharacterSectionProjectors |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual constant-torsor sheaf projector on every open is conjugate to the rank-one regular character projector over the actual coefficient ring of that open. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | variable {K : Type u} [Field K] {S : Scheme.{u}} (c : K →+* Γ(S, ⊤)) |
| 16 | (G : Type u) [CommGroup G] [Fintype G] [HasEnoughRootsOfUnity K (Monoid.exponent G)] |
| 17 | |
| 18 | def openRegularCharacterProjector (U : S.Opens) (χ : G →* Kˣ) : |
| 19 | Module.End Γ(S, U) (G → Γ(S, U)) := by |
| 20 | letI : Algebra K Γ(S, U) := (Sheaf.CharacterAverageSectionValues.schemeOpenCoefficientMap c U).toAlgebra |
| 21 | exact Regular.CharacterProjectors.regularCharacterProjector K G Γ(S, U) χ |
| 22 | |
| 23 | def openRegularCharacterProjectorRangeEquiv (U : S.Opens) (χ : G →* Kˣ) : |
| 24 | (openRegularCharacterProjector c G U χ).range ≃ₗ[Γ(S, U)] Γ(S, U) := by |
| 25 | letI : Algebra K Γ(S, U) := (Sheaf.CharacterAverageSectionValues.schemeOpenCoefficientMap c U).toAlgebra |
| 26 | exact CharacterProjectionRange.regularCharacterProjectorRangeEquiv K G Γ(S, U) χ |
| 27 | |
| 28 | theorem constantCharacterSectionProjector_eq (U : S.Opens) (χ : G →* Kˣ) |
| 29 | (hG : (Fintype.card G : K) ≠ 0) : |
| 30 | IdempotentSheafSectionRanges.moduleSheafSectionLinearMap |
| 31 | (Sheaf.CharacterAverages.sheafCharacterAverage c (StructureRepresentation.constantStructurePushforward S G) (StructureRepresentation.constantStructureRepresentation S G) χ) U = |
| 32 | (StructureSectionEquivalence.constantStructureSectionEquiv S G U).symm.conjRingEquiv (openRegularCharacterProjector c G U χ) := by |
| 33 | let : Algebra K Γ(S, U) := (Sheaf.CharacterAverageSectionValues.schemeOpenCoefficientMap c U).toAlgebra |
| 34 | let e := StructureSectionEquivalence.constantStructureSectionEquiv S G U |
| 35 | apply LinearMap.ext |
| 36 | intro s |
| 37 | apply e.injective |
| 38 | change e ((Sheaf.CharacterAverages.sheafCharacterAverage c (StructureRepresentation.constantStructurePushforward S G) |
| 39 | (StructureRepresentation.constantStructureRepresentation S G) χ).app U s) = |
| 40 | e (e.symm (Regular.CharacterProjectors.regularCharacterProjector K G Γ(S, U) χ (e s))) |
| 41 | rw [LinearEquiv.apply_symm_apply] |
| 42 | funext b |
| 43 | have h := congrArg (fun z => e z b) |
| 44 | (Sheaf.CharacterAverageSectionValues.sheafCharacterAverage_app c (StructureRepresentation.constantStructurePushforward S G) |
| 45 | (StructureRepresentation.constantStructureRepresentation S G) χ U s) |
| 46 | have hv : e ((Sheaf.CharacterAverages.sheafCharacterAverage c (StructureRepresentation.constantStructurePushforward S G) |
| 47 | (StructureRepresentation.constantStructureRepresentation S G) χ).app U s) b = |
| 48 | Sheaf.CharacterAverageSectionValues.schemeOpenCoefficientMap c U ((Fintype.card G : K)⁻¹) * |
| 49 | ∑ a : G, Sheaf.CharacterAverageSectionValues.schemeOpenCoefficientMap c U ((χ a : K)⁻¹) * e s (b * a) := by |
| 50 | simpa only [e, map_smul, map_sum, Pi.smul_apply, Finset.sum_apply, smul_eq_mul, |
| 51 | StructureSectionEquivalence.constantStructureSectionEquiv_translate] using h |
| 52 | exact hv.trans ((Regular.CharacterAverageValues.regularCharacterAverage_apply K G Γ(S, U) χ (e s) b).symm.trans |
| 53 | (congrArg (fun p : Module.End Γ(S, U) (G → Γ(S, U)) => p (e s) b) |
| 54 | (Regular.CharacterAverages.regularCharacterAverage_eq_projector K G Γ(S, U) χ hG))) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.CharacterSectionProjectors |