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.MonomialChartFractions |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.FrameChartNormalization |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.BalancedDenominatorIdentity |
| 4 | |
| 5 | /-! # Balanced Denominator Unit -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.BalancedDenominatorUnit |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Evaluation at the normalized chart coordinates makes its defining |
| 12 | balanced denominator a unit in the chart ring itself. An explicit |
| 13 | balanced fraction supplies the inverse. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | variable (R : Type u) [CommRing R] {r m : ℕ} |
| 19 | |
| 20 | theorem normalizedBalancedDenominator_isUnit (hr : 0 < r) |
| 21 | (i : Fin m) (σ : Fin r → Fin m) (e : Fin m) (c : Fin m → Fin r) |
| 22 | (a : (Fin r → Fin m) → ℕ) (C : Fin m → (Fin r → Fin m) → ℕ) |
| 23 | (ha : a ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) |
| 24 | (hC : ∀ z, C z + Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z) = a) |
| 25 | (hframe : Frame.ChartDenominators.frameDiscriminantExponent σ e ≤ a) : |
| 26 | IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ |
| 27 | (Balanced.FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC)) a) := by |
| 28 | let b := ((r - 1) * ∑ τ, a τ) • Frame.ChartDenominators.frameDiscriminantExponent σ e + a |
| 29 | let d := (Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i) • Frame.NormalizationBlockDegrees.allFrameCoordinateExponent σ e c |
| 30 | have hsupp (τ) (hτ : b τ ≠ 0) : 0 < a τ := by |
| 31 | by_contra! hn |
| 32 | have ha0 : a τ = 0 := Nat.eq_zero_of_le_zero hn |
| 33 | have hδ0 : Frame.ChartDenominators.frameDiscriminantExponent σ e τ = 0 := Nat.eq_zero_of_le_zero (ha0 ▸ hframe τ) |
| 34 | change ((r - 1) * ∑ τ, a τ) * Frame.ChartDenominators.frameDiscriminantExponent σ e τ + a τ ≠ 0 at hτ |
| 35 | simp only [ha0, hδ0, mul_zero, zero_add, ne_eq, not_true_eq_false] at hτ |
| 36 | have hd : ∀ j, Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight d j = Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight b j := |
| 37 | Frame.NormalizationBlockDegrees.normalizedDenominatorInverse_equal_degrees hr σ e c a ha i |
| 38 | obtain ⟨F, hF⟩ := Balanced.MonomialChartFractions.supportedMonomial_exists_chart_fraction R i a ha b d hsupp hd |
| 39 | let E : Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i a ha →+* BalancedChart.AmbientFrame.balancedChartAmbientRing R a := |
| 40 | Homogeneous.SubalgebraChartEmbedding.homogeneousSubalgebraChartEmbedding (Balanced.DeterminantAlgebra.balancedDeterminantAlgebra R r m) |
| 41 | (Balanced.DeterminantGrading.balancedDeterminantGrading R r m i) (Balanced.FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) |
| 42 | let v := BalancedChart.AmbientFrame.balancedChartAmbientVectors R a |
| 43 | let u := Balanced.FrameChartNormalization.balancedFrameChartVectors R i σ e c a C ha hC |
| 44 | let p := Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ u) a |
| 45 | have hF' : E F * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b = |
| 46 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) d := hF |
| 47 | have hx (z k) : E (u z k) * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) |
| 48 | (Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z)) = |
| 49 | DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun (BalancedChart.AmbientFrame.balancedChartAmbientRing R a) (Fin r)) |
| 50 | (fun j => v (σ j)) (v e) (v z) k := by |
| 51 | exact (BalancedChart.AmbientFrame.balancedFrameChartCoordinate_ambient_crossMultiply R i σ e z (c z) k a (C z) ha (hC z)).trans |
| 52 | (Frame.CoordinateMonomials.frameCoordinateExponent_linearMap σ v e z k) |
| 53 | have hp : E p = Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ (fun z k => E (u z k))) a := by |
| 54 | rw [MonomialExponentExtension.exponentMonomial_map] |
| 55 | congr 1 |
| 56 | funext τ |
| 57 | exact LabeledDeterminantPolynomials.labeledDeterminant_map E τ u |
| 58 | have hid := BalancedDenominatorIdentity.normalizedBalancedDenominator_identity v (fun z k => E (u z k)) σ e c a ha i hx |
| 59 | rw [← hp] at hid |
| 60 | have hbunit : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b) := by |
| 61 | rw [Balanced.MonomialAlgebra.exponentMonomial_add, NonvanishingMonomialCompletion.exponentMonomial_nsmul, Frame.ChartDenominators.frameDiscriminantExponent_monomial] |
| 62 | exact ((BalancedChart.AmbientFrame.balancedChartAmbientVectors_frame_isUnit R σ e a hframe).pow _).mul |
| 63 | (BalancedChart.AmbientFrame.balancedChartAmbientVectors_denominator_isUnit R a) |
| 64 | have hmul : p * F = 1 := by |
| 65 | apply Homogeneous.SubalgebraChartEmbedding.homogeneousSubalgebraChartEmbedding_injective (Balanced.DeterminantAlgebra.balancedDeterminantAlgebra R r m) |
| 66 | (Balanced.DeterminantGrading.balancedDeterminantGrading R r m i) (Balanced.FrameCoordinatePolynomials.balancedDeterminantMonomialElement R a ha) |
| 67 | change E (p * F) = E 1 |
| 68 | rw [map_mul, map_one] |
| 69 | apply hbunit.mul_right_cancel |
| 70 | calc |
| 71 | (E p * E F) * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b = |
| 72 | E p * (E F * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b) := mul_assoc _ _ _ |
| 73 | _ = E p * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) d := by rw [hF'] |
| 74 | _ = Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b := hid |
| 75 | _ = 1 * Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) b := (one_mul _).symm |
| 76 | exact ⟨⟨p, F, hmul, (mul_comm F p).trans hmul⟩, rfl⟩ |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.BalancedDenominatorUnit |