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.AbelianModuli.HilbertConstruction.Balanced.FrameChartNormalization |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Homogeneous.AwayEvaluation |
| 3 | |
| 4 | /-! # Configuration Chart Evaluation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.ConfigurationChartEvaluation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A vector configuration on which the chart denominator is invertible |
| 11 | defines a ring point of the balanced chart. Its coordinates satisfy the |
| 12 | determinant normalization equations over any commutative ring. -/ |
| 13 | open scoped Classical |
| 14 | universe u v |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] {r m : ℕ} |
| 18 | |
| 19 | def balancedConfigurationPolynomialEvaluation (w : Fin m → Fin r → A) : |
| 20 | DeterminantAlgebra.balancedDeterminantAlgebra R r m →ₐ[R] A := |
| 21 | (MvPolynomial.aeval (fun jk : Fin m × Fin r => w jk.1 jk.2)).comp |
| 22 | (DeterminantAlgebra.balancedDeterminantAlgebra R r m).val |
| 23 | |
| 24 | theorem balancedConfigurationPolynomialEvaluation_denominator |
| 25 | (w : Fin m → Fin r → A) (a : (Fin r → Fin m) → ℕ) |
| 26 | (ha : a ∈ ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) : |
| 27 | balancedConfigurationPolynomialEvaluation (R := R) w (FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) = |
| 28 | MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a := by |
| 29 | change MvPolynomial.aeval (fun jk : Fin m × Fin r => w jk.1 jk.2) |
| 30 | (MonomialAlgebra.exponentMonomial (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) a) = _ |
| 31 | simp only [MonomialAlgebra.exponentMonomial, map_prod, map_pow, LabeledDeterminantPolynomials.labeledDeterminantPolynomial_eval] |
| 32 | |
| 33 | def balancedConfigurationChartEvaluation (i : Fin m) (w : Fin m → Fin r → A) |
| 34 | (a : (Fin r → Fin m) → ℕ) (ha : a ∈ ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) |
| 35 | (hw : IsUnit (MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a)) : |
| 36 | FrameChartCoordinates.balancedDeterminantChartRing R i a ha →+* A := |
| 37 | Homogeneous.AwayEvaluation.homogeneousAwayEvaluation (DeterminantGrading.balancedDeterminantGrading R r m i) |
| 38 | (FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) |
| 39 | (balancedConfigurationPolynomialEvaluation (R := R) w).toRingHom |
| 40 | ((balancedConfigurationPolynomialEvaluation_denominator (R := R) w a ha).symm ▸ hw) |
| 41 | |
| 42 | theorem balancedConfigurationChartEvaluation_frame_cross |
| 43 | (i : Fin m) (σ : Fin r → Fin m) (e : Fin m) (c : Fin m → Fin r) |
| 44 | (a : (Fin r → Fin m) → ℕ) (C : Fin m → (Fin r → Fin m) → ℕ) |
| 45 | (ha : a ∈ ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) |
| 46 | (hC : ∀ z, C z + Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z) = a) |
| 47 | (w : Fin m → Fin r → A) (hw : IsUnit (MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a)) |
| 48 | (z : Fin m) (k : Fin r) : |
| 49 | balancedConfigurationChartEvaluation (R := R) i w a ha hw |
| 50 | (FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC z k) * |
| 51 | DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun A (Fin r)) (fun j => w (σ j)) (w e) (w z) (c z) = |
| 52 | DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun A (Fin r)) (fun j => w (σ j)) (w e) (w z) k := by |
| 53 | let χ := balancedConfigurationChartEvaluation (R := R) i w a ha hw |
| 54 | let ev : MvPolynomial (Fin m × Fin r) R →ₐ[R] A := MvPolynomial.aeval (fun jk : Fin m × Fin r => w jk.1 jk.2) |
| 55 | let Q := FrameCoordinatePolynomials.balancedFrameCoordinateNumerator R σ e z (c z) k a (C z) ha (hC z) |
| 56 | let P := MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a |
| 57 | have he : χ (FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC z k) * P = ev Q.val := by |
| 58 | have h := Homogeneous.AwayEvaluation.homogeneousAwayEvaluation_mk_cross (DeterminantGrading.balancedDeterminantGrading R r m i) |
| 59 | (FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) |
| 60 | (balancedConfigurationPolynomialEvaluation (R := R) w).toRingHom |
| 61 | ((balancedConfigurationPolynomialEvaluation_denominator (R := R) w a ha).symm ▸ hw) |
| 62 | (FrameCoordinatePolynomials.balancedDeterminantMonomialElement_mem_grading R a ha i) 1 Q |
| 63 | (by simpa only [one_nsmul] using |
| 64 | FrameCoordinatePolynomials.balancedFrameCoordinateNumerator_mem_grading R σ e z (c z) k a (C z) ha (hC z) i) |
| 65 | simp only [pow_one] at h |
| 66 | change χ (FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC z k) * |
| 67 | balancedConfigurationPolynomialEvaluation (R := R) w (FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) = |
| 68 | ev Q.val at h |
| 69 | rw [balancedConfigurationPolynomialEvaluation_denominator] at h |
| 70 | exact h |
| 71 | have hq := congrArg ev |
| 72 | (FrameCoordinatePolynomials.balancedFrameCoordinateNumerator_crossMultiply R σ e z (c z) k a (C z) ha (hC z)) |
| 73 | have hev (b : (Fin r → Fin m) → ℕ) : ev (MonomialAlgebra.exponentMonomial (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) b) = |
| 74 | MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) b := by |
| 75 | simp only [MonomialAlgebra.exponentMonomial, map_prod, map_pow, ev, LabeledDeterminantPolynomials.labeledDeterminantPolynomial_eval] |
| 76 | change ev (Q.val * MonomialAlgebra.exponentMonomial (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) |
| 77 | (Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z))) = |
| 78 | ev (MonomialAlgebra.exponentMonomial (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) a * |
| 79 | MonomialAlgebra.exponentMonomial (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) (Frame.CoordinateExponents.frameCoordinateExponent σ e z k)) at hq |
| 80 | rw [map_mul, map_mul, hev (Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z)), hev a, |
| 81 | hev (Frame.CoordinateExponents.frameCoordinateExponent σ e z k), Frame.CoordinateMonomials.frameCoordinateExponent_linearMap, |
| 82 | Frame.CoordinateMonomials.frameCoordinateExponent_linearMap] at hq |
| 83 | apply hw.mul_right_cancel |
| 84 | calc |
| 85 | _ = (χ (FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC z k) * P) * |
| 86 | DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun A (Fin r)) (fun j => w (σ j)) (w e) (w z) (c z) := by ring |
| 87 | _ = ev Q.val * DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun A (Fin r)) |
| 88 | (fun j => w (σ j)) (w e) (w z) (c z) := by rw [he] |
| 89 | _ = P * DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun A (Fin r)) |
| 90 | (fun j => w (σ j)) (w e) (w z) k := hq |
| 91 | _ = _ := mul_comm _ _ |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.ConfigurationChartEvaluation |