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.HeckeCycles.UnitOperations |
| 2 | |
| 3 | /-! # Reduction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Reduction.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Elementary row reduction in SL3 over a local coefficient ring. |
| 10 | The unit pivots and all normalizing matrices are constructed explicitly. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | open _root_.Matrix _root_.Matrix.SpecialLinearGroup |
| 14 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Pivots.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.UnitOperations.CM |
| 15 | |
| 16 | variable {R : Type*} [CommRing R] |
| 17 | (S : Subgroup (SpecialLinearGroup (Fin 3) R)) |
| 18 | (hS : ∀ (i j : Fin 3) (hij : i ≠ j) (a : R), SpecialLinearGroup.transvection hij a ∈ S) |
| 19 | |
| 20 | include hS |
| 21 | |
| 22 | theorem first_unit (g : SpecialLinearGroup (Fin 3) R) (u : Rˣ) (hu : g.val 0 0 = (u : R)) : |
| 23 | ∃ A ∈ S, (A * g).val 0 0 = 1 ∧ (A * g).val 1 0 = 0 ∧ (A * g).val 2 0 = 0 := by |
| 24 | let U := transvection (show (2 : Fin 3) ≠ 0 by decide) (-g.val 2 0 * (u⁻¹ : Rˣ)) * |
| 25 | transvection (show (1 : Fin 3) ≠ 0 by decide) (-g.val 1 0 * (u⁻¹ : Rˣ)) |
| 26 | let D := UnitOperations.CM.scaling (show (0 : Fin 3) ≠ 1 by decide) u⁻¹ |
| 27 | have hU : U ∈ S := S.mul_mem (hS _ _ _ _) (hS _ _ _ _) |
| 28 | refine ⟨D * U, S.mul_mem (UnitOperations.CM.scaling_mem S hS _ _) hU, ?_, ?_, ?_⟩ |
| 29 | · rw [mul_assoc, UnitOperations.CM.scaling_row_first] |
| 30 | simp [U, mul_assoc, Pivots.CM.row_add, hu] |
| 31 | · rw [mul_assoc, UnitOperations.CM.scaling_row_second] |
| 32 | simp [U, mul_assoc, Pivots.CM.row_add, hu] |
| 33 | · rw [mul_assoc, UnitOperations.CM.scaling_row_other (show (0 : Fin 3) ≠ 1 by decide) u⁻¹ |
| 34 | (by decide : (2 : Fin 3) ≠ 0) (by decide : (2 : Fin 3) ≠ 1)] |
| 35 | simp [U, mul_assoc, Pivots.CM.row_add, hu] |
| 36 | |
| 37 | variable [IsLocalRing R] |
| 38 | |
| 39 | theorem first_column (g : SpecialLinearGroup (Fin 3) R) : |
| 40 | ∃ A ∈ S, (A * g).val 0 0 = 1 ∧ (A * g).val 1 0 = 0 ∧ (A * g).val 2 0 = 0 := by |
| 41 | obtain ⟨i, hi⟩ := Pivots.CM.column_has_unit g 0 |
| 42 | fin_cases i |
| 43 | · exact first_unit S hS g hi.unit hi.unit_spec.symm |
| 44 | · let W := UnitOperations.CM.rotation (show (0 : Fin 3) ≠ 1 by decide) (1 : Rˣ) |
| 45 | have hW : (W * g).val 0 0 = (hi.unit : R) := by |
| 46 | rw [UnitOperations.CM.rotation_row_first, Units.val_one, one_mul, hi.unit_spec] |
| 47 | rfl |
| 48 | obtain ⟨A, hA, h⟩ := first_unit S hS (W * g) hi.unit hW |
| 49 | exact ⟨A * W, S.mul_mem hA (UnitOperations.CM.rotation_mem S hS _ _), by simpa only [mul_assoc] using h⟩ |
| 50 | · let W := UnitOperations.CM.rotation (show (0 : Fin 3) ≠ 2 by decide) (1 : Rˣ) |
| 51 | have hW : (W * g).val 0 0 = (hi.unit : R) := by |
| 52 | rw [UnitOperations.CM.rotation_row_first, Units.val_one, one_mul, hi.unit_spec] |
| 53 | rfl |
| 54 | obtain ⟨A, hA, h⟩ := first_unit S hS (W * g) hi.unit hW |
| 55 | exact ⟨A * W, S.mul_mem hA (UnitOperations.CM.rotation_mem S hS _ _), by simpa only [mul_assoc] using h⟩ |
| 56 | |
| 57 | omit S hS in |
| 58 | theorem lower_unit (g : SpecialLinearGroup (Fin 3) R) |
| 59 | (h00 : g.val 0 0 = 1) (h10 : g.val 1 0 = 0) (h20 : g.val 2 0 = 0) : |
| 60 | IsUnit (g.val 1 1) ∨ IsUnit (g.val 2 1) := by |
| 61 | have hd : g.val 1 1 * g.val 2 2 - g.val 1 2 * g.val 2 1 = 1 := by |
| 62 | have hdet := g.property |
| 63 | rw [Matrix.det_fin_three] at hdet |
| 64 | simpa only [h00, h10, h20, one_mul, mul_zero, zero_mul, add_zero, zero_add, sub_zero] using hdet |
| 65 | have hsum : IsUnit (g.val 1 1 * g.val 2 2 + (-g.val 1 2) * g.val 2 1) := by |
| 66 | rw [neg_mul, ← sub_eq_add_neg, hd] |
| 67 | exact isUnit_one |
| 68 | rcases IsLocalRing.isUnit_or_isUnit_of_isUnit_add hsum with h | h |
| 69 | · exact Or.inl (isUnit_of_mul_isUnit_left h) |
| 70 | · exact Or.inr (isUnit_of_mul_isUnit_right h) |
| 71 | |
| 72 | omit [IsLocalRing R] in |
| 73 | theorem second_unit (g : SpecialLinearGroup (Fin 3) R) |
| 74 | (h00 : g.val 0 0 = 1) (h10 : g.val 1 0 = 0) (h20 : g.val 2 0 = 0) |
| 75 | (u : Rˣ) (hu : g.val 1 1 = (u : R)) : |
| 76 | ∃ A ∈ S, (A * g).val 0 0 = 1 ∧ (A * g).val 1 0 = 0 ∧ (A * g).val 2 0 = 0 ∧ |
| 77 | (A * g).val 1 1 = 1 ∧ (A * g).val 2 1 = 0 := by |
| 78 | let U := transvection (show (2 : Fin 3) ≠ 1 by decide) (-g.val 2 1 * (u⁻¹ : Rˣ)) |
| 79 | let D := UnitOperations.CM.scaling (show (1 : Fin 3) ≠ 2 by decide) u⁻¹ |
| 80 | refine ⟨D * U, S.mul_mem (UnitOperations.CM.scaling_mem S hS _ _) (hS _ _ _ _), ?_, ?_, ?_, ?_, ?_⟩ |
| 81 | · rw [mul_assoc, UnitOperations.CM.scaling_row_other (show (1 : Fin 3) ≠ 2 by decide) u⁻¹ |
| 82 | (by decide : (0 : Fin 3) ≠ 1) (by decide : (0 : Fin 3) ≠ 2)] |
| 83 | simp [U, Pivots.CM.row_add, h00] |
| 84 | · rw [mul_assoc, UnitOperations.CM.scaling_row_first] |
| 85 | simp [U, Pivots.CM.row_add, h10] |
| 86 | · rw [mul_assoc, UnitOperations.CM.scaling_row_second] |
| 87 | simp [U, Pivots.CM.row_add, h10, h20] |
| 88 | · rw [mul_assoc, UnitOperations.CM.scaling_row_first] |
| 89 | simp [U, Pivots.CM.row_add, hu] |
| 90 | · rw [mul_assoc, UnitOperations.CM.scaling_row_second] |
| 91 | simp [U, Pivots.CM.row_add, hu, mul_assoc] |
| 92 | |
| 93 | theorem first_two_columns (g : SpecialLinearGroup (Fin 3) R) : |
| 94 | ∃ A ∈ S, (A * g).val 0 0 = 1 ∧ (A * g).val 1 0 = 0 ∧ (A * g).val 2 0 = 0 ∧ |
| 95 | (A * g).val 1 1 = 1 ∧ (A * g).val 2 1 = 0 := by |
| 96 | obtain ⟨A, hA, h00, h10, h20⟩ := first_column S hS g |
| 97 | rcases lower_unit (A * g) h00 h10 h20 with hu | hu |
| 98 | · obtain ⟨D, hD, h⟩ := second_unit S hS (A * g) h00 h10 h20 hu.unit hu.unit_spec.symm |
| 99 | exact ⟨D * A, S.mul_mem hD hA, by simpa only [mul_assoc] using h⟩ |
| 100 | · let W := UnitOperations.CM.rotation (show (1 : Fin 3) ≠ 2 by decide) (1 : Rˣ) |
| 101 | have h00' : (W * (A * g)).val 0 0 = 1 := by |
| 102 | rw [UnitOperations.CM.rotation_row_other _ _ (by decide : (0 : Fin 3) ≠ 1) |
| 103 | (by decide : (0 : Fin 3) ≠ 2), h00] |
| 104 | have h10' : (W * (A * g)).val 1 0 = 0 := by rw [UnitOperations.CM.rotation_row_first, h20, mul_zero] |
| 105 | have h20' : (W * (A * g)).val 2 0 = 0 := by rw [UnitOperations.CM.rotation_row_second, h10, mul_zero] |
| 106 | have hu' : (W * (A * g)).val 1 1 = (hu.unit : R) := by |
| 107 | rw [UnitOperations.CM.rotation_row_first, Units.val_one, one_mul, hu.unit_spec] |
| 108 | obtain ⟨D, hD, h⟩ := second_unit S hS (W * (A * g)) h00' h10' h20' hu.unit hu' |
| 109 | exact ⟨D * W * A, S.mul_mem (S.mul_mem hD (UnitOperations.CM.rotation_mem S hS _ _)) hA, |
| 110 | by simpa only [mul_assoc] using h⟩ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Reduction.CM |