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.LinearAlgebra.Isomorphisms |
| 2 | import Mathlib.Algebra.Exact.Basic |
| 3 | |
| 4 | /-! # Presented Target Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.PresentedTargetCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Changing coordinates in a genuine linear presentation preserves its presented target. -/ |
| 11 | |
| 12 | universe u v w t v' w' |
| 13 | variable {R : Type u} [Ring R] |
| 14 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 15 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 16 | variable {P : Type t} [AddCommGroup P] [Module R P] |
| 17 | variable {M' : Type v'} [AddCommGroup M'] [Module R M'] |
| 18 | variable {N' : Type w'} [AddCommGroup N'] [Module R N'] |
| 19 | |
| 20 | abbrev LinearCokernel (f : M →ₗ[R] N) := N ⧸ f.range |
| 21 | |
| 22 | def presentationCoordinateMap (f : M →ₗ[R] N) (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[R] N') : |
| 23 | M' →ₗ[R] N' := eN.toLinearMap.comp (f.comp eM.symm.toLinearMap) |
| 24 | |
| 25 | theorem presentationCoordinateMap_exact (f : M →ₗ[R] N) (g : N →ₗ[R] P) |
| 26 | (hex : Function.Exact f g) (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[R] N') : |
| 27 | Function.Exact (presentationCoordinateMap f eM eN) (g.comp eN.symm.toLinearMap) := by |
| 28 | intro n |
| 29 | constructor |
| 30 | · intro hn |
| 31 | obtain ⟨m, hm⟩ := (hex (eN.symm n)).mp hn |
| 32 | refine ⟨eM m, ?_⟩ |
| 33 | change eN (f (eM.symm (eM m))) = n |
| 34 | rw [eM.symm_apply_apply, hm, eN.apply_symm_apply] |
| 35 | · rintro ⟨m, hm⟩ |
| 36 | change g (eN.symm n) = 0 |
| 37 | apply (hex (eN.symm n)).mpr |
| 38 | refine ⟨eM.symm m, ?_⟩ |
| 39 | apply eN.injective |
| 40 | exact hm.trans (eN.apply_symm_apply n).symm |
| 41 | |
| 42 | def presentedTargetCoordinatesEquiv (f : M →ₗ[R] N) (g : N →ₗ[R] P) |
| 43 | (hex : Function.Exact f g) (hs : Function.Surjective g) |
| 44 | (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[R] N') : |
| 45 | (N' ⧸ (presentationCoordinateMap f eM eN).range) ≃ₗ[R] P := by |
| 46 | let g' := g.comp eN.symm.toLinearMap |
| 47 | have heq : (presentationCoordinateMap f eM eN).range = g'.ker := |
| 48 | (LinearMap.exact_iff.mp (presentationCoordinateMap_exact f g hex eM eN)).symm |
| 49 | exact (Submodule.quotEquivOfEq _ _ heq).trans |
| 50 | (g'.quotKerEquivOfSurjective (hs.comp eN.symm.surjective)) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.PresentedTargetCoordinates |