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.Topology.Euclidean.BoxBasis |
| 2 | import OAI.Topology.Euclidean.OpenCoordinateTransport |
| 3 | import Mathlib.Order.Interval.Set.IsoIoo |
| 4 | import Mathlib.Topology.Algebra.Field |
| 5 | import Mathlib.Topology.Order.MonotoneContinuity |
| 6 | |
| 7 | /-! # Box Homeomorph -/ |
| 8 | |
| 9 | namespace OAI.Topology.Euclidean |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Actual Euclidean homeomorphisms for rational open boxes |
| 15 | |
| 16 | Each coordinate interval is homeomorphic to the real line. Taking products and |
| 17 | identifying a product of interval subtypes with the actual open-box subtype gives |
| 18 | the box homeomorphism. The final construction transports it through the explicit |
| 19 | real coordinates on a complex vector space. These are topological statements. |
| 20 | -/ |
| 21 | |
| 22 | open Set _root_.TopologicalSpace |
| 23 | |
| 24 | /-- Every nonempty bounded open real interval is homeomorphic to the real line. -/ |
| 25 | def BoxHomeomorph.Globalization.realOpenIntervalHomeomorph (a b : ℝ) (hab : a < b) : Ioo a b ≃ₜ ℝ := by |
| 26 | have hs : 0 < (b - a) / 2 := by linarith |
| 27 | let e : ℝ ≃ₜ ℝ := affineHomeomorph ((b - a) / 2) ((a + b) / 2) hs.ne' |
| 28 | have himage : e '' Ioo (-1 : ℝ) 1 = Ioo a b := by |
| 29 | dsimp [e] |
| 30 | rw [affineHomeomorph_image_Ioo _ _ _ _ hs] |
| 31 | congr 1 <;> ring |
| 32 | exact ((e.image (Ioo (-1 : ℝ) 1)).trans (Homeomorph.setCongr himage)).symm.trans |
| 33 | (orderIsoIooNegOneOne ℝ).toHomeomorph.symm |
| 34 | |
| 35 | section |
| 36 | |
| 37 | variable {ι : Type*} |
| 38 | |
| 39 | /-- The open-box subtype is the product of its coordinate interval subtypes. -/ |
| 40 | def BoxBasis.Globalization.RationalBox.productHomeomorph (B : BoxBasis.Globalization.RationalBox ι) : |
| 41 | B.carrier ≃ₜ (∀ i, Ioo (B.lower i : ℝ) (B.upper i : ℝ)) where |
| 42 | toFun x i := ⟨x.val i, (B.mem_carrier x.val).mp x.property i⟩ |
| 43 | invFun y := ⟨fun i => (y i).val, (B.mem_carrier _).mpr fun i => (y i).property⟩ |
| 44 | left_inv x := Subtype.ext rfl |
| 45 | right_inv y := by |
| 46 | funext i |
| 47 | rfl |
| 48 | continuous_toFun := continuous_pi fun i => |
| 49 | ((continuous_apply i).comp continuous_subtype_val).subtype_mk _ |
| 50 | continuous_invFun := |
| 51 | (continuous_pi fun i => continuous_subtype_val.comp (continuous_apply i)).subtype_mk _ |
| 52 | |
| 53 | @[simp] |
| 54 | theorem BoxBasis.Globalization.RationalBox.productHomeomorph_apply (B : BoxBasis.Globalization.RationalBox ι) (x : B.carrier) (i : ι) : |
| 55 | (B.productHomeomorph x i : ℝ) = x.val i := rfl |
| 56 | |
| 57 | @[simp] |
| 58 | theorem BoxBasis.Globalization.RationalBox.productHomeomorph_symm_apply (B : BoxBasis.Globalization.RationalBox ι) |
| 59 | (y : ∀ i, Ioo (B.lower i : ℝ) (B.upper i : ℝ)) (i : ι) : |
| 60 | (B.productHomeomorph.symm y).val i = (y i).val := rfl |
| 61 | |
| 62 | /-- A rational open box is homeomorphic to the full real coordinate space. |
| 63 | The construction also works for an arbitrary, possibly infinite, index type. -/ |
| 64 | def BoxBasis.Globalization.RationalBox.homeomorphEuclidean (B : BoxBasis.Globalization.RationalBox ι) : B.carrier ≃ₜ (ι → ℝ) := |
| 65 | B.productHomeomorph.trans (Homeomorph.piCongrRight fun i => |
| 66 | BoxHomeomorph.Globalization.realOpenIntervalHomeomorph (B.lower i : ℝ) (B.upper i : ℝ) |
| 67 | (Rat.cast_lt.mpr (B.lower_lt_upper i))) |
| 68 | |
| 69 | /-- Pulling a box back through a genuine ambient homeomorphism preserves its |
| 70 | Euclidean homeomorphism type. -/ |
| 71 | def BoxBasis.Globalization.RationalBox.preimageHomeomorph {X : Type*} [TopologicalSpace X] (B : BoxBasis.Globalization.RationalBox ι) |
| 72 | (e : X ≃ₜ (ι → ℝ)) : (e ⁻¹' B.carrier) ≃ₜ (ι → ℝ) := |
| 73 | (e.subtype fun _ => Iff.rfl).trans B.homeomorphEuclidean |
| 74 | |
| 75 | /-- The actual open carrier of a finite-dimensional rational box. -/ |
| 76 | def BoxBasis.Globalization.RationalBox.openCarrier [Finite ι] (B : BoxBasis.Globalization.RationalBox ι) : Opens (ι → ℝ) := |
| 77 | ⟨B.carrier, B.isOpen_carrier⟩ |
| 78 | |
| 79 | @[simp] |
| 80 | theorem BoxBasis.Globalization.RationalBox.coe_openCarrier [Finite ι] (B : BoxBasis.Globalization.RationalBox ι) : |
| 81 | (B.openCarrier : Set (ι → ℝ)) = B.carrier := rfl |
| 82 | |
| 83 | end |
| 84 | |
| 85 | /-- The open subset of complex coordinate space corresponding to a real box. -/ |
| 86 | def BoxHomeomorph.Globalization.complexBoxOpen (d : ℕ) (B : BoxBasis.Globalization.RationalBox (Fin (2 * d))) : Opens (Fin d → ℂ) := |
| 87 | OpenCoordinateTransport.Globalization.realOpenInComplexCoordinates d B.openCarrier |
| 88 | |
| 89 | @[simp] |
| 90 | theorem BoxHomeomorph.Globalization.mem_complexBoxOpen (d : ℕ) (B : BoxBasis.Globalization.RationalBox (Fin (2 * d))) (z : Fin d → ℂ) : |
| 91 | z ∈ BoxHomeomorph.Globalization.complexBoxOpen d B ↔ ComplexModelRealCoordinates.Globalization.complexModelRealContinuousLinearEquiv d z ∈ B.carrier := |
| 92 | Iff.rfl |
| 93 | |
| 94 | /-- A real box of dimension `2 * d` has the underlying topological type of |
| 95 | complex coordinate space of dimension `d`. -/ |
| 96 | def BoxHomeomorph.Globalization.realBoxComplexHomeomorph (d : ℕ) (B : BoxBasis.Globalization.RationalBox (Fin (2 * d))) : |
| 97 | B.carrier ≃ₜ (Fin d → ℂ) := |
| 98 | B.homeomorphEuclidean.trans (ComplexModelRealCoordinates.Globalization.complexModelRealContinuousLinearEquiv d).symm.toHomeomorph |
| 99 | |
| 100 | /-- The actual complex-coordinate preimage of a real box is homeomorphic to the |
| 101 | full complex coordinate space. No holomorphic or orientation assertion is made. -/ |
| 102 | def BoxHomeomorph.Globalization.complexBoxHomeomorph (d : ℕ) (B : BoxBasis.Globalization.RationalBox (Fin (2 * d))) : |
| 103 | BoxHomeomorph.Globalization.complexBoxOpen d B ≃ₜ (Fin d → ℂ) := |
| 104 | (B.preimageHomeomorph (ComplexModelRealCoordinates.Globalization.complexModelRealContinuousLinearEquiv d).toHomeomorph).trans |
| 105 | (ComplexModelRealCoordinates.Globalization.complexModelRealContinuousLinearEquiv d).symm.toHomeomorph |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.Topology.Euclidean |