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.RepresentationTheory.Weil.UnitarySplitting.SymplecticPlane |
| 2 | import OAI.RepresentationTheory.Weil.UnitarySplitting.TracePairing |
| 3 | import OAI.RepresentationTheory.Weil.UnitarySplitting.Oscillator |
| 4 | |
| 5 | /-! # Symplectic Coordinates -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.SymplecticCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Symplectic coordinates by induction on dimension. No existence of |
| 12 | coordinates, Lagrangians, or lifts is assumed. -/ |
| 13 | |
| 14 | section |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | variable {F : Type*} [Field F] |
| 19 | |
| 20 | abbrev Coordinates (F : Type*) (d : ℕ) := (Fin d → F) × (Fin d → F) |
| 21 | |
| 22 | def coordinatePairing (d : ℕ) (x y : Coordinates F d) : F := |
| 23 | ∑ i, (x.2 i * y.1 i - x.1 i * y.2 i) |
| 24 | |
| 25 | def prependCoordinates (d : ℕ) : |
| 26 | ((F × F) × Coordinates F d) ≃ₗ[F] Coordinates F (d + 1) where |
| 27 | toFun x := (Fin.cons x.1.1 x.2.1, Fin.cons x.1.2 x.2.2) |
| 28 | invFun x := ((x.1 0, x.2 0), (Fin.tail x.1, Fin.tail x.2)) |
| 29 | left_inv x := by simp |
| 30 | right_inv x := by simp |
| 31 | map_add' x y := by |
| 32 | apply Prod.ext <;> funext i <;> refine Fin.cases ?_ (fun j => ?_) i <;> rfl |
| 33 | map_smul' a x := by |
| 34 | apply Prod.ext <;> funext i <;> refine Fin.cases ?_ (fun j => ?_) i <;> rfl |
| 35 | |
| 36 | theorem prependCoordinates_pairing (d : ℕ) |
| 37 | (x y : (F × F) × Coordinates F d) : |
| 38 | coordinatePairing (d + 1) (prependCoordinates d x) (prependCoordinates d y) = |
| 39 | (x.1.2 * y.1.1 - x.1.1 * y.1.2) + coordinatePairing d x.2 y.2 := by |
| 40 | simp [coordinatePairing, prependCoordinates, Fin.sum_univ_succ] |
| 41 | ring |
| 42 | |
| 43 | theorem exists_coordinates {V : Type*} [AddCommGroup V] [Module F V] |
| 44 | [FiniteDimensional F V] (B : LinearMap.BilinForm F V) |
| 45 | (hAlt : B.IsAlt) (hNondeg : B.Nondegenerate) : |
| 46 | ∃ (d : ℕ) (e : V ≃ₗ[F] Coordinates F d), |
| 47 | ∀ x y, B x y = coordinatePairing d (e x) (e y) := by |
| 48 | classical |
| 49 | suffices ∀ N, Module.finrank F V = N → |
| 50 | ∃ (d : ℕ) (e : V ≃ₗ[F] Coordinates F d), |
| 51 | ∀ x y, B x y = coordinatePairing d (e x) (e y) by |
| 52 | exact this _ rfl |
| 53 | intro N hdim |
| 54 | induction N using Nat.strong_induction_on generalizing V with |
| 55 | | h N ih => |
| 56 | by_cases hsub : Subsingleton V |
| 57 | · let : Subsingleton V := hsub |
| 58 | refine ⟨0, LinearEquiv.ofSubsingleton V (Coordinates F 0), ?_⟩ |
| 59 | intro x y |
| 60 | have hx : x = 0 := Subsingleton.elim _ _ |
| 61 | simp [hx, coordinatePairing] |
| 62 | · let : Nontrivial V := not_subsingleton_iff_nontrivial.mp hsub |
| 63 | obtain ⟨u, hu⟩ := exists_ne (0 : V) |
| 64 | obtain ⟨v₀, hv₀⟩ : ∃ v₀, B u v₀ ≠ 0 := by |
| 65 | by_contra! h |
| 66 | exact hu (hNondeg.1 u h) |
| 67 | let v := (B u v₀)⁻¹ • v₀ |
| 68 | have huv : B u v = 1 := by simp [v, hv₀] |
| 69 | let W := SymplecticPlane.planeComplement B u v |
| 70 | let ePlane := SymplecticPlane.decomposePlane B hAlt u v huv |
| 71 | have hdimW : Module.finrank F W < N := by |
| 72 | have heq := ePlane.finrank_eq |
| 73 | simp only [Module.finrank_prod, Module.finrank_self] at heq |
| 74 | change Module.finrank F V = (1 + 1) + Module.finrank F W at heq |
| 75 | omega |
| 76 | have hAltW : (B.restrict W).IsAlt := fun x => hAlt x.val |
| 77 | have hNondegW : (B.restrict W).Nondegenerate := |
| 78 | SymplecticPlane.complement_nondegenerate B hAlt hNondeg u v huv |
| 79 | obtain ⟨d, eW, heW⟩ := ih (Module.finrank F W) hdimW |
| 80 | (B.restrict W) hAltW hNondegW rfl |
| 81 | let e : V ≃ₗ[F] Coordinates F (d + 1) := ePlane.trans |
| 82 | (((LinearEquiv.refl F (F × F)).prodCongr eW).trans (prependCoordinates d)) |
| 83 | refine ⟨d + 1, e, ?_⟩ |
| 84 | intro x y |
| 85 | have hpair := SymplecticPlane.pairing_decomposition B hAlt u v huv (ePlane x) (ePlane y) |
| 86 | change B (ePlane.symm (ePlane x)) (ePlane.symm (ePlane y)) = _ at hpair |
| 87 | rw [ePlane.symm_apply_apply, ePlane.symm_apply_apply] at hpair |
| 88 | change B x y = coordinatePairing (d + 1) |
| 89 | (prependCoordinates d ((ePlane x).1, eW (ePlane x).2)) |
| 90 | (prependCoordinates d ((ePlane y).1, eW (ePlane y).2)) |
| 91 | rw [prependCoordinates_pairing, ← heW] |
| 92 | exact hpair |
| 93 | |
| 94 | end |
| 95 | |
| 96 | namespace Construction |
| 97 | |
| 98 | open OAI.RepresentationTheory.Weil.UnitarySplitting.SymplecticCoordinates |
| 99 | |
| 100 | /-- The coordinate-existence conclusion of UnitarySplitting, proved from its natural |
| 101 | field and form hypotheses. -/ |
| 102 | theorem symplecticFrame_nonempty |
| 103 | {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 104 | [CharZero F] [FiniteDimensional F E] |
| 105 | (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) |
| 106 | (m n : ℕ) (H : Matrix (Fin m) (Fin m) E) (K : Matrix (Fin n) (Fin n) E) |
| 107 | (hHermitian : ∀ i j, H j i = σ (H i j)) |
| 108 | (hSkewHermitian : ∀ i j, K j i = -σ (K i j)) |
| 109 | (hHNondegenerate : H.det ≠ 0) (hKNondegenerate : K.det ≠ 0) : |
| 110 | Nonempty (Oscillator.Construction.SymplecticFrame σ H K) := by |
| 111 | have hB := TracePairing.Construction.traceTensorBilinear_is_symplectic hQuadratic σ H K |
| 112 | hHermitian hSkewHermitian hHNondegenerate hKNondegenerate |
| 113 | obtain ⟨d, e, he⟩ := exists_coordinates (TracePairing.Construction.traceTensorBilinear σ H K) hB.1 hB.2 |
| 114 | have hd : d = m * n := by |
| 115 | have hdim := e.finrank_eq |
| 116 | simp [Coordinates, Module.finrank_pi_fintype, hQuadratic] at hdim |
| 117 | omega |
| 118 | subst d |
| 119 | let eSum := LinearEquiv.sumArrowLequivProdArrow (Fin (m * n)) (Fin (m * n)) F F |
| 120 | refine ⟨⟨e.trans eSum.symm, ?_⟩⟩ |
| 121 | intro x y |
| 122 | change Oscillator.Construction.standardSymplecticPairing (m * n) (eSum.symm (e x)) (eSum.symm (e y)) = |
| 123 | TracePairing.Construction.traceTensorBilinear σ H K x y |
| 124 | rw [he] |
| 125 | rfl |
| 126 | |
| 127 | end Construction |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.RepresentationTheory.Weil.UnitarySplitting.SymplecticCoordinates |