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.BilinearForm.Properties |
| 2 | import Mathlib.LinearAlgebra.Pi |
| 3 | import Lean.Util.CollectAxioms |
| 4 | |
| 5 | /-! # Paired Blocks -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PairedBlocks |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A nondegenerate form whose distinct blocks are orthogonal restricts |
| 12 | to a nondegenerate pairing between each block and its designated opposite. -/ |
| 13 | |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | variable {F V I : Type*} [Field F] [AddCommGroup V] [Module F V] |
| 17 | [Fintype I] [DecidableEq I] |
| 18 | (B : LinearMap.BilinForm F (I → V)) (τ : I → I) |
| 19 | |
| 20 | def oppositeBlockPairing (i : I) : LinearMap.BilinForm F V := |
| 21 | B.compl₁₂ (LinearMap.single F (fun _ : I => V) (τ i)) |
| 22 | (LinearMap.single F (fun _ : I => V) i) |
| 23 | |
| 24 | theorem oppositeBlockPairing_nondegenerate (hτ : Function.Injective τ) |
| 25 | (hB : B.Nondegenerate) |
| 26 | (horth : ∀ (i j : I), i ≠ τ j → ∀ (x y : V), B (Pi.single i x) (Pi.single j y) = 0) |
| 27 | (i : I) : (oppositeBlockPairing B τ i).Nondegenerate := by |
| 28 | constructor |
| 29 | · intro x hx |
| 30 | have hz : Pi.single (τ i) x = (0 : I → V) := by |
| 31 | apply hB.1 |
| 32 | intro z |
| 33 | rw [← LinearMap.sum_single_apply (fun _ : I => V) z, map_sum] |
| 34 | apply Finset.sum_eq_zero |
| 35 | intro j _ |
| 36 | by_cases hj : j = i |
| 37 | · subst j |
| 38 | exact hx (z i) |
| 39 | · exact horth (τ i) j (fun h => hj (hτ h).symm) x (z j) |
| 40 | simpa only [Pi.single_eq_same, Pi.zero_apply] using congrFun hz (τ i) |
| 41 | · intro y hy |
| 42 | have hz : Pi.single i y = (0 : I → V) := by |
| 43 | apply hB.2 |
| 44 | intro z |
| 45 | rw [← LinearMap.sum_single_apply (fun _ : I => V) z, map_sum, LinearMap.sum_apply] |
| 46 | apply Finset.sum_eq_zero |
| 47 | intro j _ |
| 48 | by_cases hj : j = τ i |
| 49 | · subst j |
| 50 | exact hy (z (τ i)) |
| 51 | · exact horth j i hj (z j) y |
| 52 | simpa only [Pi.single_eq_same, Pi.zero_apply] using congrFun hz i |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PairedBlocks |