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.Exactness |
| 2 | |
| 3 | /-! # Adic Kernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.AdicKernel.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Completion: completion commutes with kernels of maps between finite modules |
| 11 | |
| 12 | The map is the actual completion of the kernel inclusion. Its surjectivity |
| 13 | uses Artin--Rees exactness, factoring the original map through its image. |
| 14 | This is the degree-zero completion calculation for a finite cochain model. |
| 15 | -/ |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] (I : Ideal R) |
| 23 | {M N : Type u} [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 24 | (f : M →ₗ[R] N) |
| 25 | |
| 26 | /-- Completion of the actual kernel inclusion lands in the completed differential's kernel. -/ |
| 27 | def adicKernelMap : AdicCompletion I f.ker →ₗ[AdicCompletion I R] (AdicCompletion.map I f).ker := |
| 28 | (AdicCompletion.map I f.ker.subtype).codRestrict _ fun x => by |
| 29 | change AdicCompletion.map I f (AdicCompletion.map I f.ker.subtype x) = 0 |
| 30 | rw [AdicCompletion.map_comp_apply] |
| 31 | have h : f.comp f.ker.subtype = 0 := by ext y; exact y.property |
| 32 | rw [h, AdicCompletion.map_zero, LinearMap.zero_apply] |
| 33 | |
| 34 | /-- The completed kernel map is bijective for finite modules over a Noetherian ring. -/ |
| 35 | theorem adicKernelMap_bijective [IsNoetherianRing R] [Module.Finite R M] [Module.Finite R N] : |
| 36 | Function.Bijective (adicKernelMap I f) := by |
| 37 | refine ⟨fun x y h => AdicCompletion.map_injective I |
| 38 | (f := f.ker.subtype) Subtype.val_injective (congrArg Subtype.val h), ?_⟩ |
| 39 | intro x |
| 40 | have he : Function.Exact f.ker.subtype f.rangeRestrict := by |
| 41 | intro y |
| 42 | constructor |
| 43 | · intro hy |
| 44 | exact ⟨⟨y, congrArg Subtype.val hy⟩, rfl⟩ |
| 45 | · rintro ⟨y, rfl⟩ |
| 46 | apply Subtype.ext |
| 47 | exact y.property |
| 48 | have hx : AdicCompletion.map I f.rangeRestrict x.val = 0 := by |
| 49 | apply AdicCompletion.map_injective I (f := f.range.subtype) Subtype.val_injective |
| 50 | rw [map_zero, AdicCompletion.map_comp_apply] |
| 51 | exact x.property |
| 52 | have hs : Function.Surjective f.rangeRestrict := by |
| 53 | intro y |
| 54 | obtain ⟨z, hz⟩ := y.property |
| 55 | exact ⟨z, Subtype.ext hz⟩ |
| 56 | obtain ⟨y, hy⟩ := |
| 57 | (AdicCompletion.map_exact Subtype.val_injective he hs x.val).mp hx |
| 58 | exact ⟨y, Subtype.ext hy⟩ |
| 59 | |
| 60 | /-- The actual linear equivalence comparing completion of the kernel and kernel of completion. -/ |
| 61 | def adicKernelEquiv [IsNoetherianRing R] [Module.Finite R M] [Module.Finite R N] : |
| 62 | AdicCompletion I f.ker ≃ₗ[AdicCompletion I R] (AdicCompletion.map I f).ker := |
| 63 | LinearEquiv.ofBijective (adicKernelMap I f) (adicKernelMap_bijective I f) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.AdicKernel.Construction |