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.AsTensorProduct |
| 2 | |
| 3 | /-! # Module Adic Completeness -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.ModuleAdicCompleteness.FiniteModuleAdicCompleteness |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # Finite modules over a complete noetherian ring are complete via the actual completion map -/ |
| 10 | |
| 11 | open scoped TensorProduct |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (R : Type u) [CommRing R] |
| 16 | |
| 17 | theorem finite_small (M : Type v) [AddCommGroup M] [Module R M] [Module.Finite R M] : Small.{u} M := by |
| 18 | obtain ⟨n, f, hf⟩ := Module.Finite.exists_fin' R M |
| 19 | exact small_of_surjective hf |
| 20 | |
| 21 | variable [IsNoetherianRing R] (I : Ideal R) [IsAdicComplete I R] |
| 22 | |
| 23 | section SameUniverse |
| 24 | |
| 25 | variable (M : Type u) [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 26 | |
| 27 | def smallEquiv : M ≃ₗ[R] AdicCompletion I M := |
| 28 | (TensorProduct.lid R M).symm.trans |
| 29 | ((TensorProduct.congr (AdicCompletion.ofLinearEquiv I R) (LinearEquiv.refl R M)).trans |
| 30 | ((AdicCompletion.ofTensorProductEquivOfFiniteNoetherian I M).restrictScalars R)) |
| 31 | |
| 32 | theorem smallEquiv_apply (x : M) : smallEquiv R I M x = AdicCompletion.of I M x := by |
| 33 | change AdicCompletion.ofTensorProduct I M ((AdicCompletion.of I R 1) ⊗ₜ[R] x) = _ |
| 34 | rw [AdicCompletion.ofTensorProduct_tmul] |
| 35 | change (1 : AdicCompletion I R) • AdicCompletion.of I M x = _ |
| 36 | exact one_smul _ _ |
| 37 | |
| 38 | end SameUniverse |
| 39 | |
| 40 | variable (M : Type v) [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 41 | |
| 42 | def equiv : M ≃ₗ[R] AdicCompletion I M := by |
| 43 | let : Small.{u} M := finite_small R M |
| 44 | let e : Shrink.{u} M ≃ₗ[R] M := Shrink.linearEquiv R M |
| 45 | let eAll : M ≃ AdicCompletion I M := |
| 46 | e.symm.toEquiv.trans ((smallEquiv R I (Shrink.{u} M)).toEquiv.trans |
| 47 | (AdicCompletion.congr I e).toEquiv) |
| 48 | have he (x : M) : eAll x = AdicCompletion.of I M x := by |
| 49 | change AdicCompletion.map I e.toLinearMap |
| 50 | (smallEquiv R I (Shrink.{u} M) (e.symm x)) = _ |
| 51 | rw [smallEquiv_apply, AdicCompletion.map_of] |
| 52 | exact congrArg (AdicCompletion.of I M) (e.apply_symm_apply x) |
| 53 | apply LinearEquiv.ofBijective (AdicCompletion.of I M) |
| 54 | rw [← show (eAll : M → AdicCompletion I M) = AdicCompletion.of I M from funext he] |
| 55 | exact eAll.bijective |
| 56 | |
| 57 | theorem equiv_apply (x : M) : equiv R I M x = AdicCompletion.of I M x := rfl |
| 58 | |
| 59 | theorem complete : IsAdicComplete I M := by |
| 60 | apply AdicCompletion.of_bijective_iff.mp |
| 61 | have h : (equiv R I M : M → AdicCompletion I M) = AdicCompletion.of I M := |
| 62 | funext (equiv_apply R I M) |
| 63 | rw [← h] |
| 64 | exact (equiv R I M).bijective |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.ModuleAdicCompleteness.FiniteModuleAdicCompleteness |