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.Quaternion.Arithmetic.MatrixApproximation |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.ExceptionalApproximation |
| 3 | import OAI.NumberTheory.Quaternion.Arithmetic.AdelicPolynomialCurves |
| 4 | import OAI.NumberTheory.Quaternion.Arithmetic.GeometricStructure |
| 5 | |
| 6 | /-! # Strong Approximation Reduction -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.StrongApproximationReduction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! In the quaternion case, finite-place weak approximation and |
| 13 | local additive generation are proved. The remaining input to this |
| 14 | strong-approximation reduction is arithmetic quotient volume. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField |
| 17 | open IsDedekindDomain Filter Set |
| 18 | |
| 19 | variable {F : Type} [Field F] [NumberField F] (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) |
| 20 | (S : Finset (LocalAdeles.Place F)) (harch : ∀ w : NumberField.InfinitePlace F, Sum.inl w ∈ S) |
| 21 | |
| 22 | include ha hb harch |
| 23 | |
| 24 | theorem quaternion_selected_weakApproximation (B : Finset (ApproximationTopology.AwayPlace S)) : |
| 25 | DenseRange (fun g : (MatrixGroup.quaternionNormOneMatrixGroup a b).RationalPoints => |
| 26 | fun w : (B : Set (ApproximationTopology.AwayPlace S)) => LocalAdeles.diagonalLocal (MatrixGroup.quaternionNormOneMatrixGroup a b) w.val.val g) := by |
| 27 | let G := MatrixGroup.quaternionNormOneMatrixGroup a b |
| 28 | let e := SelectedArithmeticProduct.selectedFiniteProductEquiv G S B harch |
| 29 | have hd := MatrixApproximation.denseRange_quaternionMatrix_finite_projection (SelectedArithmeticProduct.selectedFinitePlaces S B harch) a b |
| 30 | (SelectedArithmeticProduct.selectedFinitePlaces_injective S B harch) ha hb |
| 31 | have hcomp := e.symm.surjective.denseRange.comp hd e.symm.continuous |
| 32 | have he : e.symm ∘ Product.diagonalFiniteProduct G (SelectedArithmeticProduct.selectedFinitePlaces S B harch) = |
| 33 | (fun g : G.RationalPoints => fun w : (B : Set (ApproximationTopology.AwayPlace S)) => LocalAdeles.diagonalLocal G w.val.val g) := by |
| 34 | funext g |
| 35 | apply e.injective |
| 36 | rw [Function.comp_apply, ContinuousMulEquiv.apply_symm_apply] |
| 37 | funext w |
| 38 | exact (SelectedArithmeticProduct.localPointsPlaceEquiv_diagonal G (SelectedArithmeticProduct.inr_awayFinitePlace S harch w.val).symm g).symm |
| 39 | rw [he] at hcomp |
| 40 | exact hcomp |
| 41 | |
| 42 | theorem quaternion_exists_exceptional_places : |
| 43 | ∃ B : Finset (ApproximationTopology.AwayPlace S), ∀ w : ApproximationTopology.AwayPlace S, w ∉ B → |
| 44 | ExceptionalApproximation.localAdditiveGeneration (MatrixGroup.quaternionNormOneMatrixGroup a b) w.val := by |
| 45 | have he := (AdelicPolynomialCurves.awayFinitePlace_injective S harch).tendsto_cofinite |
| 46 | (MatrixApproximation.eventually_quaternionMatrix_local_additive_generation a b ha hb) |
| 47 | have hg : ∀ᶠ w : ApproximationTopology.AwayPlace S in cofinite, |
| 48 | ExceptionalApproximation.localAdditiveGeneration (MatrixGroup.quaternionNormOneMatrixGroup a b) w.val := by |
| 49 | filter_upwards [he] with w hw |
| 50 | change ExceptionalApproximation.localAdditiveGeneration (MatrixGroup.quaternionNormOneMatrixGroup a b) |
| 51 | (.inr (SelectedArithmeticProduct.awayFinitePlace S harch w)) at hw |
| 52 | simpa only [SelectedArithmeticProduct.inr_awayFinitePlace S harch w] using hw |
| 53 | have hfinite := Filter.eventually_cofinite.mp hg |
| 54 | refine ⟨hfinite.toFinset, ?_⟩ |
| 55 | intro w hw |
| 56 | simpa only [Set.Finite.mem_toFinset, Set.mem_ofPred_eq, not_not] using hw |
| 57 | |
| 58 | theorem strongApproximation_quaternion_of_volume |
| 59 | (hnoncompact : ∃ w : LocalAdeles.Place F, w ∈ S ∧ ¬ CompactSpace (LocalAdeles.LocalPoints (MatrixGroup.quaternionNormOneMatrixGroup a b) w)) |
| 60 | (hvolume : ∀ T : Finset (ApproximationTopology.AwayPlace S), CompactQuotientProjection.QuotientHasInvariantProbability |
| 61 | (Ambient.arithmeticAmbientSubgroup (MatrixGroup.quaternionNormOneMatrixGroup a b) S T)) : |
| 62 | DenseRange (LocalAdeles.diagonalAway (MatrixGroup.quaternionNormOneMatrixGroup a b) S) := by |
| 63 | obtain ⟨B, hB⟩ := quaternion_exists_exceptional_places a b ha hb S harch |
| 64 | exact ExceptionalApproximation.strongApproximation_of_volume_and_local_generation (MatrixGroup.quaternionNormOneMatrixGroup a b) |
| 65 | (GeometricConnected.quaternionNormOneMatrixGroup_connected a b ha hb) |
| 66 | (GeometricStructure.quaternionNormOneMatrixGroup_absolutelyAlmostSimple a b ha hb) |
| 67 | (GeometricStructure.quaternionNormOneMatrixGroup_semisimple a b ha hb) S harch hnoncompact hvolume B |
| 68 | (quaternion_selected_weakApproximation a b ha hb S harch B) hB |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.NumberTheory.Quaternion.Arithmetic.StrongApproximationReduction |