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 Mathlib.RingTheory.AdicCompletion.Functoriality |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 3 | |
| 4 | /-! # Adic Completion Linear -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.AdicCompletionLinear |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Adic completion as an additive functor on modules over the original ring -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u |
| 15 | variable {R : Type u} [CommRing R] (I : Ideal R) |
| 16 | {M N P : Type u} [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] |
| 17 | [Module R M] [Module R N] [Module R P] |
| 18 | |
| 19 | def map (f : M →ₗ[R] N) : AdicCompletion I M →ₗ[R] AdicCompletion I N := |
| 20 | (AdicCompletion.map I f).restrictScalars R |
| 21 | |
| 22 | theorem map_zero : AdicCompletionLinear.map I (0 : M →ₗ[R] N) = 0 := by |
| 23 | apply LinearMap.ext |
| 24 | intro x |
| 25 | exact LinearMap.congr_fun (AdicCompletion.map_zero I) x |
| 26 | |
| 27 | theorem map_add (f g : M →ₗ[R] N) : AdicCompletionLinear.map I (f + g) = AdicCompletionLinear.map I f + AdicCompletionLinear.map I g := by |
| 28 | apply LinearMap.ext |
| 29 | intro x |
| 30 | apply AdicCompletion.ext |
| 31 | intro n |
| 32 | change (f + g).reduceModIdeal (I ^ n) (x.val n) = |
| 33 | f.reduceModIdeal (I ^ n) (x.val n) + g.reduceModIdeal (I ^ n) (x.val n) |
| 34 | generalize x.val n = q |
| 35 | induction q using Submodule.Quotient.induction_on with |
| 36 | | H z => rfl |
| 37 | |
| 38 | theorem map_smul (a : R) (f : M →ₗ[R] N) : AdicCompletionLinear.map I (a • f) = a • AdicCompletionLinear.map I f := by |
| 39 | apply LinearMap.ext |
| 40 | intro x |
| 41 | apply AdicCompletion.ext |
| 42 | intro n |
| 43 | change (a • f).reduceModIdeal (I ^ n) (x.val n) = a • f.reduceModIdeal (I ^ n) (x.val n) |
| 44 | generalize x.val n = q |
| 45 | induction q using Submodule.Quotient.induction_on with |
| 46 | | H z => rfl |
| 47 | |
| 48 | theorem map_id : AdicCompletionLinear.map I (LinearMap.id : Module.End R M) = LinearMap.id := by |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | exact LinearMap.congr_fun (AdicCompletion.map_id I M) x |
| 52 | |
| 53 | theorem map_comp (f : M →ₗ[R] N) (g : N →ₗ[R] P) : (AdicCompletionLinear.map I g).comp (AdicCompletionLinear.map I f) = AdicCompletionLinear.map I (g.comp f) := by |
| 54 | apply LinearMap.ext |
| 55 | intro x |
| 56 | exact AdicCompletion.map_comp_apply I f g x |
| 57 | |
| 58 | def functor : ModuleCat.{u} R ⥤ ModuleCat.{u} R where |
| 59 | obj M := ModuleCat.of R (AdicCompletion I M) |
| 60 | map f := ModuleCat.ofHom (AdicCompletionLinear.map I f.hom) |
| 61 | map_id M := ModuleCat.hom_ext (AdicCompletionLinear.map_id I (M := M)) |
| 62 | map_comp f g := ModuleCat.hom_ext (AdicCompletionLinear.map_comp I f.hom g.hom).symm |
| 63 | |
| 64 | instance : (functor I).Additive where |
| 65 | map_add {_M _N} f g := ModuleCat.hom_ext (AdicCompletionLinear.map_add I f.hom g.hom) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.AdicCompletionLinear |