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.HilbertScheme.Presentations.FiberwiseExactness |
| 2 | |
| 3 | /-! # Lifted Relations Flatness -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LiftedRelationsFlatness |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite presentation over a local ring has free cokernel when every relation in the residue field lifts to a relation over the ring. -/ |
| 10 | |
| 11 | open TensorProduct |
| 12 | |
| 13 | universe u v w z |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 17 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 18 | |
| 19 | theorem range_subtype_lTensor_injective_of_lifted_relations |
| 20 | (f : M →ₗ[R] N) (Q : Type z) [AddCommGroup Q] [Module R Q] |
| 21 | (h : Function.Exact (f.ker.subtype.lTensor Q) (f.lTensor Q)) : |
| 22 | Function.Injective (f.range.subtype.lTensor Q) := by |
| 23 | have hcomp : f.range.subtype.comp f.rangeRestrict = f := by |
| 24 | apply LinearMap.ext |
| 25 | intro x |
| 26 | rfl |
| 27 | have hzero : f.rangeRestrict.comp f.ker.subtype = 0 := by |
| 28 | apply LinearMap.ext |
| 29 | intro x |
| 30 | exact Subtype.ext x.property |
| 31 | intro x y hxy |
| 32 | apply sub_eq_zero.mp |
| 33 | have hz : f.range.subtype.lTensor Q (x - y) = 0 := by rw [map_sub, hxy, sub_self] |
| 34 | obtain ⟨a, ha⟩ := LinearMap.lTensor_surjective Q f.surjective_rangeRestrict (x - y) |
| 35 | have hfa : f.lTensor Q a = 0 := by |
| 36 | rw [← hcomp, LinearMap.lTensor_comp, LinearMap.comp_apply, ha] |
| 37 | exact hz |
| 38 | obtain ⟨b, rfl⟩ := (h a).mp hfa |
| 39 | rw [← ha, ← LinearMap.lTensor_comp_apply, hzero, LinearMap.lTensor_zero, LinearMap.zero_apply] |
| 40 | |
| 41 | theorem cokernel_free_of_lifted_residue_relations [IsLocalRing R] |
| 42 | [Module.Finite R M] [Module.Finite R N] [Module.Free R N] |
| 43 | (f : M →ₗ[R] N) |
| 44 | (h : Function.Exact (f.ker.subtype.lTensor (IsLocalRing.ResidueField R)) |
| 45 | (f.lTensor (IsLocalRing.ResidueField R))) : |
| 46 | Module.Free R (N ⧸ f.range) := by |
| 47 | let : Module.Finite R f.range := Module.Finite.range f |
| 48 | exact Module.free_of_lTensor_residueField_injective f.range.subtype f.range.mkQ |
| 49 | f.range.mkQ_surjective (LinearMap.exact_subtype_mkQ f.range) |
| 50 | (range_subtype_lTensor_injective_of_lifted_relations f (IsLocalRing.ResidueField R) h) |
| 51 | |
| 52 | theorem lTensor_relations_exact_of_flat_cokernel |
| 53 | (f : M →ₗ[R] N) [Module.Flat R (N ⧸ f.range)] |
| 54 | (Q : Type z) [AddCommGroup Q] [Module R Q] : |
| 55 | Function.Exact (f.ker.subtype.lTensor Q) (f.lTensor Q) := by |
| 56 | have hinj := LinearMap.lTensor_injective_of_exact_of_flat f.range.mkQ f.range.mkQ_surjective |
| 57 | f.range.subtype f.range.subtype_injective (LinearMap.exact_subtype_mkQ f.range) Q |
| 58 | have hex := lTensor_exact Q (FiberwiseExactness.exact_kernel_rangeRestrict R f) f.surjective_rangeRestrict |
| 59 | have hcomp : f.range.subtype.comp f.rangeRestrict = f := by |
| 60 | apply LinearMap.ext |
| 61 | intro x |
| 62 | rfl |
| 63 | intro x |
| 64 | have he : f.lTensor Q x = 0 ↔ f.rangeRestrict.lTensor Q x = 0 := by |
| 65 | rw [← hcomp, LinearMap.lTensor_comp, LinearMap.comp_apply] |
| 66 | exact (map_eq_zero_iff (f.range.subtype.lTensor Q) hinj) |
| 67 | exact he.trans (hex x) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LiftedRelationsFlatness |