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.HodgeConjecture.ThetaCycle.BallPlaneGroups |
| 2 | |
| 3 | /-! # Unitary Basis Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.UnitaryBasisCoordinates.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Actual field-coordinate equivalences of special-unitary groups, |
| 12 | including surjectivity and the determinant-one condition. -/ |
| 13 | |
| 14 | open _root_.Matrix OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary |
| 15 | |
| 16 | variable {R S : Type*} [CommRing R] [StarRing R] [CommRing S] [StarRing S] |
| 17 | {n : Type*} [Fintype n] [DecidableEq n] |
| 18 | |
| 19 | def specialUnitaryFieldMap (f : R →+* S) (hf : ∀ x, f (star x) = star (f x)) |
| 20 | (H : Matrix n n R) : RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H →* RepresentationTheory.Theta.Adelic.SpecialUnitary.SU (H.map f) where |
| 21 | toFun g := ⟨(RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H g)).val, |
| 22 | (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H g)).property, by |
| 23 | apply Units.ext |
| 24 | change (g.val.val.map f).det = 1 |
| 25 | have hd : g.val.val.det = 1 := congrArg Units.val g.property.2 |
| 26 | have hm : f g.val.val.det = (g.val.val.map f).det := f.map_det g.val.val |
| 27 | rw [← hm, hd, map_one]⟩ |
| 28 | map_one' := by |
| 29 | apply Subtype.ext |
| 30 | change (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H 1)).val = 1 |
| 31 | rw [map_one, map_one] |
| 32 | rfl |
| 33 | map_mul' g h := by |
| 34 | apply Subtype.ext |
| 35 | change (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H (g * h))).val = |
| 36 | (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H g)).val * |
| 37 | (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.unitaryBaseChange f hf H (RepresentationTheory.Theta.Adelic.SpecialUnitary.includeUnitary H h)).val |
| 38 | rw [map_mul, map_mul] |
| 39 | rfl |
| 40 | |
| 41 | theorem special_unitary_field_map_injective (f : R →+* S) (hf : ∀ x, f (star x) = star (f x)) |
| 42 | (hi : Function.Injective f) (H : Matrix n n R) : |
| 43 | Function.Injective (specialUnitaryFieldMap f hf H) := by |
| 44 | intro g h he |
| 45 | apply Subtype.ext |
| 46 | apply Units.ext |
| 47 | apply Matrix.ext |
| 48 | intro i j |
| 49 | apply hi |
| 50 | exact congrArg (fun u : RepresentationTheory.Theta.Adelic.SpecialUnitary.SU (H.map f) => u.val.val i j) he |
| 51 | |
| 52 | theorem special_unitary_field_map_surjective (e : R ≃+* S) |
| 53 | (he : ∀ x, e (star x) = star (e x)) (H : Matrix n n R) : |
| 54 | Function.Surjective (specialUnitaryFieldMap e.toRingHom he H) := by |
| 55 | intro g |
| 56 | let u : (Matrix n n R)ˣ := Units.map e.symm.toRingHom.mapMatrix.toMonoidHom g.val |
| 57 | have hu : u.val.map e.toRingHom = g.val.val := by |
| 58 | apply Matrix.ext |
| 59 | intro i j |
| 60 | exact e.apply_symm_apply _ |
| 61 | have hf : u.val.conjTranspose * H * u.val = H := by |
| 62 | apply e.mapMatrix.injective |
| 63 | change (u.val.conjTranspose * H * u.val).map e.toRingHom = H.map e.toRingHom |
| 64 | rw [Matrix.map_mul, Matrix.map_mul, RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.map_conjTranspose e.toRingHom he, hu] |
| 65 | exact g.property.1 |
| 66 | have hd : Matrix.GeneralLinearGroup.det u = 1 := by |
| 67 | apply Units.ext |
| 68 | apply e.injective |
| 69 | change e u.val.det = e 1 |
| 70 | have hm : e u.val.det = (u.val.map e.toRingHom).det := e.map_det u.val |
| 71 | rw [hm, hu, map_one] |
| 72 | exact congrArg Units.val g.property.2 |
| 73 | refine ⟨⟨u, hf, hd⟩, ?_⟩ |
| 74 | apply Subtype.ext |
| 75 | apply Units.ext |
| 76 | exact hu |
| 77 | |
| 78 | def specialUnitaryFieldEquiv (e : R ≃+* S) |
| 79 | (he : ∀ x, e (star x) = star (e x)) (H : Matrix n n R) : |
| 80 | RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H ≃* RepresentationTheory.Theta.Adelic.SpecialUnitary.SU (H.map e.toRingHom) := |
| 81 | MulEquiv.ofBijective (specialUnitaryFieldMap e.toRingHom he H) |
| 82 | ⟨special_unitary_field_map_injective e.toRingHom he e.injective H, |
| 83 | special_unitary_field_map_surjective e he H⟩ |
| 84 | |
| 85 | end |
| 86 | |
| 87 | /-! Special-unitary groups in the actual original and normalized |
| 88 | Hermitian bases are isomorphic by matrix conjugation. -/ |
| 89 | |
| 90 | open _root_.Matrix OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary |
| 91 | |
| 92 | variable {n : Type*} [Fintype n] [DecidableEq n] |
| 93 | |
| 94 | theorem unitary_basis_inverse (H H₀ : Matrix n n ℂ) (B : (Matrix n n ℂ)ˣ) |
| 95 | (hB : B.val.conjTranspose * H * B.val = H₀) : |
| 96 | B.inv.conjTranspose * H₀ * B.inv = H := by |
| 97 | rw [← hB] |
| 98 | calc |
| 99 | _ = (B.inv.conjTranspose * B.val.conjTranspose) * H * (B.val * B.inv) := by noncomm_ring |
| 100 | _ = H := by |
| 101 | rw [← Matrix.conjTranspose_mul, B.val_inv, Matrix.conjTranspose_one, one_mul, mul_one] |
| 102 | |
| 103 | theorem unitary_basis_preserves (H H₀ G : Matrix n n ℂ) (B : (Matrix n n ℂ)ˣ) |
| 104 | (hB : B.val.conjTranspose * H * B.val = H₀) (hG : G.conjTranspose * H * G = H) : |
| 105 | (B.inv * G * B.val).conjTranspose * H₀ * (B.inv * G * B.val) = H₀ := by |
| 106 | calc |
| 107 | _ = B.val.conjTranspose * (G.conjTranspose * (B.inv.conjTranspose * H₀ * B.inv) * G) * |
| 108 | B.val := by |
| 109 | simp only [Matrix.conjTranspose_mul] |
| 110 | noncomm_ring |
| 111 | _ = H₀ := by rw [unitary_basis_inverse H H₀ B hB, hG, hB] |
| 112 | |
| 113 | def specialUnitaryBasisHom (H H₀ : Matrix n n ℂ) (B : (Matrix n n ℂ)ˣ) |
| 114 | (hB : B.val.conjTranspose * H * B.val = H₀) : RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H →* RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H₀ where |
| 115 | toFun g := ⟨B⁻¹ * g.val * B, by |
| 116 | constructor |
| 117 | · exact unitary_basis_preserves H H₀ g.val.val B hB g.property.1 |
| 118 | · change Matrix.GeneralLinearGroup.det (B⁻¹ * g.val * B) = 1 |
| 119 | rw [map_mul, map_mul, map_inv, g.property.2, mul_one, inv_mul_cancel]⟩ |
| 120 | map_one' := Subtype.ext (by simp) |
| 121 | map_mul' g h := Subtype.ext (by simp [mul_assoc]) |
| 122 | |
| 123 | theorem special_unitary_basis_hom_bijective (H H₀ : Matrix n n ℂ) (B : (Matrix n n ℂ)ˣ) |
| 124 | (hB : B.val.conjTranspose * H * B.val = H₀) : |
| 125 | Function.Bijective (specialUnitaryBasisHom H H₀ B hB) := by |
| 126 | constructor |
| 127 | · intro g h he |
| 128 | apply Subtype.ext |
| 129 | have hu : B⁻¹ * g.val * B = B⁻¹ * h.val * B := congrArg Subtype.val he |
| 130 | exact mul_left_cancel (mul_right_cancel hu) |
| 131 | · intro g |
| 132 | let h := specialUnitaryBasisHom H₀ H B⁻¹ (unitary_basis_inverse H H₀ B hB) g |
| 133 | refine ⟨h, ?_⟩ |
| 134 | apply Subtype.ext |
| 135 | change B⁻¹ * ((B⁻¹)⁻¹ * g.val * B⁻¹) * B = g.val |
| 136 | group |
| 137 | |
| 138 | def specialUnitaryBasisEquiv (H H₀ : Matrix n n ℂ) (B : (Matrix n n ℂ)ˣ) |
| 139 | (hB : B.val.conjTranspose * H * B.val = H₀) : RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H ≃* RepresentationTheory.Theta.Adelic.SpecialUnitary.SU H₀ := |
| 140 | MulEquiv.ofBijective (specialUnitaryBasisHom H H₀ B hB) |
| 141 | (special_unitary_basis_hom_bijective H H₀ B hB) |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.UnitaryBasisCoordinates.CM |