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.IntegralComparison.Finite.FreeDualBaseChange |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.FlatBaseChange |
| 3 | import Mathlib.LinearAlgebra.ExteriorPower.Basis |
| 4 | |
| 5 | /-! # Dual Flat Base Change -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DualFlatBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flat scalar extension of the actual dual exterior Koszul complex, |
| 12 | normalized by its ordered basis wedge. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.HomologicalComplex |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u v |
| 21 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 22 | |
| 23 | def dualIso {ι : Type v} {c : ComplexShape ι} |
| 24 | {K L : HomologicalComplex (ModuleCat.{u} R) c} (e : K ≅ L) : |
| 25 | DualComplexHomology.complex R K ≅ DualComplexHomology.complex R L := |
| 26 | ((DualComplexHomology.dual R).mapHomologicalComplex c.symm).mapIso |
| 27 | ((HomologicalComplex.opFunctor (ModuleCat.{u} R) c).mapIso e.op.symm) |
| 28 | |
| 29 | variable (V : Type u) [AddCommGroup V] [Module R V] |
| 30 | [Module.Free R V] [Module.Finite R V] |
| 31 | (s : Module.Dual R V) [Module.Flat R S] |
| 32 | |
| 33 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulComplex OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.ContractionBaseChange |
| 34 | |
| 35 | abbrev tensorFunctor := FlatBaseChange.tensorFunctor R S |
| 36 | |
| 37 | def iso : ((tensorFunctor R S).mapHomologicalComplex (.up ℕ)).obj |
| 38 | (DualComplexHomology.complex R (Exterior.KoszulComplex.complex R V s)) ≅ |
| 39 | DualComplexHomology.complex S |
| 40 | (Exterior.KoszulComplex.complex S (S ⊗[R] V) (Exterior.ContractionBaseChange.coefficient R S V s)) := by |
| 41 | letI (i : ℕ) : Module.Free R ((Exterior.KoszulComplex.complex R V s).X i) := |
| 42 | inferInstanceAs (Module.Free R (⋀[R]^i V)) |
| 43 | letI (i : ℕ) : Module.Finite R ((Exterior.KoszulComplex.complex R V s).X i) := |
| 44 | inferInstanceAs (Module.Finite R (⋀[R]^i V)) |
| 45 | exact IntegralComparison.Finite.FreeDualBaseChange.complexIso R S (Exterior.KoszulComplex.complex R V s) ≪≫ |
| 46 | dualIso S (FlatBaseChange.iso R S V s) |
| 47 | |
| 48 | def component (n : ℕ) : S ⊗[R] Module.Dual R (⋀[R]^n V) →ₗ[S] |
| 49 | Module.Dual S (⋀[S]^n (S ⊗[R] V)) := |
| 50 | ((iso R S V s).hom.f n).hom |
| 51 | |
| 52 | theorem iso_top_evaluation {n : ℕ} (b : Module.Basis (Fin n) R V) |
| 53 | (a : S) (f : Module.Dual R (⋀[R]^n V)) : |
| 54 | component R S V s n (a ⊗ₜ[R] f) |
| 55 | (TopExteriorCoordinates.generator (b.baseChange S)) = |
| 56 | a * algebraMap R S (f (TopExteriorCoordinates.generator b)) := by |
| 57 | change IntegralComparison.Finite.FreeDualBaseChange.equiv R S (⋀[R]^n V) (a ⊗ₜ[R] f) |
| 58 | ((Exterior.ContractionBaseChange.power R S V n).symm (TopExteriorCoordinates.generator (b.baseChange S))) = _ |
| 59 | have h : (Exterior.ContractionBaseChange.power R S V n).symm |
| 60 | (TopExteriorCoordinates.generator (b.baseChange S)) = |
| 61 | 1 ⊗ₜ[R] TopExteriorCoordinates.generator b := by |
| 62 | apply (Exterior.ContractionBaseChange.power R S V n).injective |
| 63 | rw [LinearEquiv.apply_symm_apply] |
| 64 | exact (FlatBaseChange.iso_top_generator R S V s b).symm |
| 65 | rw [h, IntegralComparison.Finite.FreeDualBaseChange.equiv_tmul_one] |
| 66 | |
| 67 | def homologyIso (n : ℕ) : |
| 68 | (tensorFunctor R S).obj ((DualComplexHomology.complex R (Exterior.KoszulComplex.complex R V s)).homology n) ≅ |
| 69 | (DualComplexHomology.complex S |
| 70 | (Exterior.KoszulComplex.complex S (S ⊗[R] V) (Exterior.ContractionBaseChange.coefficient R S V s))).homology n := |
| 71 | (((DualComplexHomology.complex R (Exterior.KoszulComplex.complex R V s)).sc n).mapHomologyIso |
| 72 | (tensorFunctor R S)).symm ≪≫ homologyMapIso (iso R S V s) n |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DualFlatBaseChange |