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.NumberTheory.ArithmeticGroups.Lattices.OrthonormalizationContinuity |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.GramSchmidtPositiveDiagonal |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.ContinuousEndMatrixEquiv |
| 4 | |
| 5 | /-! # Operator QR Basis -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRBasis.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A continuous orthonormal frame and positive diagonal are attached |
| 12 | to every invertible operator by Gram--Schmidt. -/ |
| 13 | |
| 14 | open InnerProductSpace |
| 15 | open scoped Classical |
| 16 | |
| 17 | variable {L : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [FiniteDimensional ℝ L] |
| 18 | |
| 19 | local instance qrBasisEnd_normed : NormedAddCommGroup (L →L[ℝ] L) := inferInstance |
| 20 | local instance qrBasisEnd_space : NormedSpace ℝ (L →L[ℝ] L) := inferInstance |
| 21 | local instance qrBasisEnd_finite : FiniteDimensional ℝ (L →L[ℝ] L) := inferInstance |
| 22 | |
| 23 | omit [FiniteDimensional ℝ L] in |
| 24 | theorem operatorFrame_linearIndependent {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 25 | (g : (L →L[ℝ] L)ˣ) : LinearIndependent ℝ (fun i => g.val (b i)) := |
| 26 | b.toBasis.linearIndependent.map' (ContinuousLinearEquiv.ofUnit g).toLinearMap |
| 27 | (LinearMap.ker_eq_bot.mpr (ContinuousLinearEquiv.ofUnit g).injective) |
| 28 | |
| 29 | def operatorQRBasis {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) : |
| 30 | OrthonormalBasis (Fin m) ℝ L := |
| 31 | gramSchmidtOrthonormalBasis (Module.finrank_eq_card_basis b.toBasis) (fun i => g.val (b i)) |
| 32 | |
| 33 | def operatorQRDiagonal {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (g : (L →L[ℝ] L)ˣ) (i : Fin m) : ℝ := |
| 34 | ‖gramSchmidt ℝ (fun j => g.val (b j)) i‖ |
| 35 | |
| 36 | omit [FiniteDimensional ℝ L] in |
| 37 | theorem operatorQRDiagonal_pos {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 38 | (g : (L →L[ℝ] L)ˣ) (i : Fin m) : 0 < operatorQRDiagonal b g i := |
| 39 | norm_pos_iff.mpr (gramSchmidt_ne_zero i (operatorFrame_linearIndependent b g)) |
| 40 | |
| 41 | theorem operatorQRBasis_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (i : Fin m) : |
| 42 | Continuous (fun g : (L →L[ℝ] L)ˣ => operatorQRBasis b g i) := |
| 43 | OrthonormalizationContinuity.Construction.gramSchmidtOrthonormalBasis_continuous_family (Module.finrank_eq_card_basis b.toBasis) |
| 44 | (fun (g : (L →L[ℝ] L)ˣ) j => g.val (b j)) (fun _ => Units.continuous_val.clm_apply continuous_const) |
| 45 | (operatorFrame_linearIndependent b) i |
| 46 | |
| 47 | omit [FiniteDimensional ℝ L] in |
| 48 | theorem operatorQRDiagonal_continuous {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) (i : Fin m) : |
| 49 | Continuous (fun g : (L →L[ℝ] L)ˣ => operatorQRDiagonal b g i) := |
| 50 | (GramSchmidtContinuity.Construction.gramSchmidt_continuous_family (fun (g : (L →L[ℝ] L)ˣ) j => g.val (b j)) |
| 51 | (fun _ => Units.continuous_val.clm_apply continuous_const) (operatorFrame_linearIndependent b) i).norm |
| 52 | |
| 53 | theorem operatorQRBasis_diagonal {m : ℕ} (b : OrthonormalBasis (Fin m) ℝ L) |
| 54 | (g : (L →L[ℝ] L)ˣ) (i : Fin m) : |
| 55 | inner ℝ (operatorQRBasis b g i) (g.val (b i)) = operatorQRDiagonal b g i := by |
| 56 | have hi : gramSchmidtNormed ℝ (fun j => g.val (b j)) i ≠ 0 := by |
| 57 | apply norm_ne_zero_iff.mp |
| 58 | rw [gramSchmidtNormed_unit_length i (operatorFrame_linearIndependent b g)] |
| 59 | exact one_ne_zero |
| 60 | rw [operatorQRBasis, gramSchmidtOrthonormalBasis_apply _ hi] |
| 61 | exact GramSchmidtPositiveDiagonal.Construction.gramSchmidtNormed_inner_original _ (operatorFrame_linearIndependent b g) i |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.ArithmeticGroups.Lattices.OperatorQRBasis.Construction |