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 | /-! # Fiberwise Complex -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.FiberwiseComplex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A bounded complex of flat modules with finite homology is exact where all its residue-field fibers are exact; its kernels and images are flat. -/ |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | variable (R : Type u) [CommRing R] |
| 14 | |
| 15 | theorem bounded_fiberwise_exact_flat (n : ℕ) : |
| 16 | ∀ (V : ℕ → Type v) [∀ q, AddCommGroup (V q)] [∀ q, Module R (V q)] |
| 17 | (d : ∀ q, V q →ₗ[R] V (q + 1)) (hsquare : ∀ q x, d (q + 1) (d q x) = 0), |
| 18 | d n = 0 → |
| 19 | (∀ q, q ≤ n → Module.Flat R (V q)) → |
| 20 | (∀ q, q < n → Module.Finite R ((d (q + 1)).ker ⧸ |
| 21 | (FiberwiseExactness.linearMapToKernel R (d q) (d (q + 1)) (hsquare q)).range)) → |
| 22 | (∀ q, q < n → ∀ p : PrimeSpectrum R, |
| 23 | Function.Exact ((d q).lTensor p.asIdeal.ResidueField) ((d (q + 1)).lTensor p.asIdeal.ResidueField)) → |
| 24 | Module.Flat R (d 0).ker ∧ Module.Flat R (d 0).range ∧ |
| 25 | ∀ q, q < n → Function.Exact (d q) (d (q + 1)) := by |
| 26 | induction n with |
| 27 | | zero => |
| 28 | intro V _ _ d _ hd hflat _ _ |
| 29 | let : Module.Flat R (V 0) := hflat 0 le_rfl |
| 30 | refine ⟨?_, ?_, fun q hq => (Nat.not_lt_zero q hq).elim⟩ |
| 31 | · rw [hd, LinearMap.ker_zero] |
| 32 | exact Module.Flat.of_linearEquiv Submodule.topEquiv |
| 33 | · rw [hd, LinearMap.range_zero] |
| 34 | infer_instance |
| 35 | | succ n ih => |
| 36 | intro V _ _ d hsquare hd hflat hfinite hfiber |
| 37 | obtain ⟨hker, hrange, hex⟩ := ih (fun q => V (q + 1)) (fun q => d (q + 1)) |
| 38 | (fun q => hsquare (q + 1)) hd |
| 39 | (fun q hq => hflat (q + 1) (by omega)) |
| 40 | (fun q hq => hfinite (q + 1) (by omega)) |
| 41 | (fun q hq => hfiber (q + 1) (by omega)) |
| 42 | let : Module.Flat R (d 1).ker := hker |
| 43 | let : Module.Flat R (d 1).range := hrange |
| 44 | let : Module.Finite R ((d 1).ker ⧸ (FiberwiseExactness.linearMapToKernel R (d 0) (d 1) (hsquare 0)).range) := |
| 45 | hfinite 0 (Nat.zero_lt_succ n) |
| 46 | have hhead := FiberwiseExactness.exact_of_residueFields_of_flat_range R (d 0) (d 1) (hsquare 0) |
| 47 | (hfiber 0 (Nat.zero_lt_succ n)) |
| 48 | have heq : (d 0).range = (d 1).ker := hhead.linearMap_ker_eq.symm |
| 49 | let : Module.Flat R (d 0).range := Module.Flat.of_linearEquiv (LinearEquiv.ofEq _ _ heq) |
| 50 | let : Module.Flat R (V 0) := hflat 0 (Nat.zero_le _) |
| 51 | refine ⟨FiberwiseExactness.kernel_flat_of_flat_range R (d 0), inferInstance, ?_⟩ |
| 52 | intro q hq |
| 53 | cases q with |
| 54 | | zero => exact hhead |
| 55 | | succ q => exact hex q (by omega) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.FiberwiseComplex |