Choose a statement on the pages, or with the arrows above, to see its structured proof and its Lean text here.
PrimePadicIso is the type of pairs (\ell, \iota) of a prime number \ell (an element of Nat.Primes) and a ring isomorphism \iota : \mathbb{C} \to \overline{\mathbb{Q}}_{\ell} from the complex numbers onto Mathlib's algebraic closure PadicAlgCl \ell of the field \mathbb{Q}_{\ell} of \ell-adic numbers (a dependent pair, \sum \ell, \mathbb{C} \simeq_{+*} PadicAlgCl \ell). Families of complex numbers indexed by it are the objects whose heights are bounded in this unit. (Such isomorphisms exist only by choice: both fields are algebraically closed of characteristic 0 and of the cardinality of the continuum; the source never constructs one.)
New/Heights/Heights.lean · line 17abbrev PrimePadicIso := Σ l : Nat.Primes, ℂ ≃+* PadicAlgCl l
For a real number c and a family y : PrimePadicIso \to \mathbb{C} (one complex number y(\ell, \iota) for every prime \ell and every ring isomorphism \iota : \mathbb{C} \to \overline{\mathbb{Q}}_{\ell}), HeightLe c y ('y has height at most c') holds when there exist a complex number H, a real number \alpha and a function e : \mathbb{N} \to \mathbb{R} such that (i) H \ne 0; (ii) |\sigma(H)| \le \exp(\alpha) for every ring automorphism \sigma of \mathbb{C}; (iii) \lVert \iota(H\cdot y(\ell, \iota))\rVert_{\ell} \le \exp(e(\ell)) for every (\ell, \iota) \in PrimePadicIso, where \lVert \cdot \rVert_{\ell} is the norm of \overline{\mathbb{Q}}_{\ell} extending the \ell-adic norm of \mathbb{Q}_{\ell} (\lVert \ell \rVert_{\ell} = 1/\ell); (iv) \alpha + \sum_{\ell < M, \ell \text{prime}} e(\ell) \le c for all sufficiently large natural numbers M (eventually along M \to \infty). Nothing requires e \ge 0, so c may be negative a priori; HeightLe.nonneg excludes that for the constant family 1.
New/Heights/Heights.lean · the statement, line 21def HeightLe c (y : _ → ℂ) := ∃ᵉ (H) (α) (e : ℕ → ℝ), H ≠ 0 ∧ (∀ σ : ℂ ≃+* ℂ, ‖σ H‖ ≤ α.exp) ∧
Product formula for \mathbb{Q}, in logarithms. For every natural number M and every rational number q with \max(|numerator of q|, denominator of q) < M: \log q + \sum_{p < M, p \text{prime}} \log |q|_{p} = 0, where \log is Lean's real logarithm of the real number q (\log x = \log |x| for x \ne 0, \log 0 = 0) and |q|_{p} = padicNorm p q is the p-adic absolute value (p^{(}-v_p(q)) for q \ne 0, and 0 for q = 0). For q \ne 0 this is the product formula |q|\cdot \Pi_{p} |q|_{p} = 1, the primes below M including every prime that divides the numerator or the denominator; for q = 0 both terms are 0 by the conventions.
New/Heights/Heights.lean · the statement, lines 28–29lemma log_product_formula {M} {q : ℚ} (h : q.num.natAbs ⊔ q.den < M) : log q + ∑ p ∈ range M with p.Prime, log (padicNorm p q) = 0 := have := (congr(log $(Nat.prod_pow_prime_padicValNat · · M ·)))
Monotonicity. For real numbers c, c' and families y, y' : PrimePadicIso \to \mathbb{C}: if HeightLe c y, c \le c', and \lVert \iota(y'(\ell, \iota))\rVert_{\ell} \le \lVert \iota(y(\ell, \iota))\rVert_{\ell} for every (\ell, \iota) \in PrimePadicIso, then HeightLe c' y' (the same witnesses H, \alpha, e serve).
New/Heights/Heights.lean · lines 36–37lemma HeightLe.mono (h : HeightLe c y) (hc : c ≤ c') (hy : ∀ ι : PrimePadicIso, ‖ι.2 (y' ι)‖ ≤ ‖ι.2 (y ι)‖) : HeightLe c' y' := h.imp fun _ ↦ by gcongr; aesop
For a real number c, a family y : PrimePadicIso \to \mathbb{C} and a function e : \mathbb{N} \to \mathbb{R}: if \sum_{\ell \in T} e(\ell) \le c for every finite set T of natural numbers all of whose elements are prime (he), and \lVert \iota(y(\ell, \iota))\rVert_{\ell} \le \exp(e(\ell)) for every (\ell, \iota) \in PrimePadicIso (h), then HeightLe c y (witnesses H = 1, \alpha = 0 and the given e).
New/Heights/Heights.lean · lines 42–43lemma HeightLe.of_le {e : ℕ → ℝ} (he : ∀ T, (∀ l ∈ T, l.Prime) → ∑ l ∈ T, e l ≤ c) (h : ∀ ι : PrimePadicIso, ‖ι.2 (y ι)‖ ≤ exp (e ι.1)) : HeightLe c y := ⟨1, 0, e, by aesop⟩
Heights add in products. For real numbers c, c' and families y, y' : PrimePadicIso \to \mathbb{C}: if HeightLe c y and HeightLe c' y', then HeightLe (c + c') (y\cdot y'), where (y\cdot y')(\ell, \iota) = y(\ell, \iota)\cdot y'(\ell, \iota) is the pointwise product.
New/Heights/Heights.lean · the statement, line 47lemma HeightLe.mul : HeightLe c y → HeightLe c' y' → HeightLe (c + c') (y * y') :=
Heights add in finite products. For an index type \iota, a finite set s of indices, real numbers c_i and families y_i : PrimePadicIso \to \mathbb{C} (i \in \iota): if HeightLe (c i) (y i) for every i \in s, then HeightLe (\sum_{i\in s} c_i) (\Pi_{i\in s} y_i), the product taken pointwise (for s = \varnothing: the constant family 1 has height at most 0).
New/Heights/Heights.lean · lines 54–55lemma HeightLe.prod {ι s} {c y : ι → _} (h : ∀ i ∈ s, HeightLe (c i) (y i)) : HeightLe (∑ i ∈ s, c i) (∏ i ∈ s, y i) := by induction s using cons_induction <;> simp_all [mul, @of_le _ _ 0]
For a real number c, a family y : PrimePadicIso \to \mathbb{C} with HeightLe c y, and a natural number n: HeightLe (n\cdot c) (y^{n}), where y^{n}(\ell, \iota) = y(\ell, \iota)^{n} (HeightLe.prod over \{0, \ldots, n-1\}).
New/Heights/Heights.lean · the statement, line 59lemma HeightLe.pow (h : HeightLe c y) (n : ℕ) : HeightLe (n * c) (y ^ n) := by
Product formula. For a real number c: if the constant family 1 (equal to 1 at every (\ell, \iota)) has height at most c, that is HeightLe c 1, then 0 \le c.
New/Heights/Heights.lean · the statement, line 65lemma HeightLe.nonneg (h : HeightLe c 1) : 0 ≤ c := by
For a finite group G, a complex inner product space H, families u, v : G \to H and a function f : G \to \mathbb{C} such that \langle u(a), v(b)\rangle = f(a^{-1}b) for all a, b \in G (h): \langle \sum_{a\in G} u(a), \sum_{a\in G} v(a)\rangle = |G|\cdot \sum_{g\in G} f(g). (The text reading of the signature also lists the section variables m, [Fintype m] and b : OrthonormalBasis m \mathbb{C} H; the statement's letter b is bound by \forall a b, so Lean is expected not to take them.)
New/Heights/OneDeterminant.lean · lines 22–23lemma inner_sum_sum_eq_card_mul f (h : ∀ a b, ⟪u a, v b⟫_ℂ = f (a⁻¹ * b)) : ⟪∑ a, u a, ∑ a, v a⟫_ℂ = card G * univ.sum f := by simp [↓sum_inner, inner_sum, h, (Group.mulLeft_bijective _).sum_comp]
Singular minors are rare (positive-type estimate). Let k be a finite field with q = |k| elements, n and m finite index types, G a finite group, \pi : G \to \mathrm{GL}_n(k) a group homomorphism, A : Bool \to Mat_{n\times m}(k) a pair of n\times m matrices A(true), A(false), \Theta : G \to \mathbb{R} with \Theta(s) \ge 0 for all s (h_{0}) and of positive type through a family u : G \to H in a complex inner product space H, \langle u(a), u(b)\rangle = \Theta(a^{-1}b) for all a, b (hu), and Y \ge 0 real (hY). Assume (h): for b \in \{true, false\} and every nonzero v \in k^{m}, \sum \Theta(s) over the s \in G with g_b(\pi(s))\cdot(A(b)v) = A(b)v is at most Y, where g_{\mathrm{true}}(\gamma) =(\gamma^{\mathsf{T}})^{-1} (invTransposeGL, the contragredient) and g_{\mathrm{false}}(\gamma) = \gamma, and \mathrm{GL}_n(k) acts on k^{n} by matrix–vector multiplication. Then q\cdot \sum_{s \in G : \det(A(\text{true})^{\mathsf{T}}\cdot \pi(s)\cdot A(\text{false})) = 0} \Theta(s) \le 2\cdot \sum_{s\in G} \Theta(s) + q^{|m|}\cdot \sqrt{q^{|n|}}\cdot Y. (The text reading of the signature also lists the section variables b (an orthonormal basis) and v : G \to H; the statement's b and v are bound variables of h and \mathit{hu}, so Lean is expected not to take them.)
New/Heights/OneDeterminant.lean · the statement, lines 28–31lemma card_mul_sum_det_le [Fintype k] (π : G →* GL n k) (A : _ → Matrix n m k) {Θ} (h0 : ∀ s, 0 ≤ Θ s) (hu : ∀ a b, ⟪u a, u b⟫_ℂ = Θ (a⁻¹ * b)) Y (hY : 0 ≤ Y) (h : ∀ b, ∀ v ≠ 0, ∑ s with A b *ᵥ v = cond b invTransposeGL 1 (π s) • A b *ᵥ v, Θ s ≤ Y) : card k * ∑ s with ((A true)ᵀ * (π s).1 * A false).det = 0, Θ s ≤ 2 * univ.sum Θ + card k ^ card m * √(card k ^ card n) * Y := by
For a complex inner product space H with an orthonormal basis b =(b_j)_{j\in m} (m finite) and a finite family v =(v_x)_{x\in n} in H: dyadSum b v = \sum_{x\in n} \overline{v}_{x} \otimes v_x \in \mathbb{C}^{m} \otimes_{\mathbb{C}} H, where \overline{v}_{x} \in \mathbb{C}^{m} (EuclideanSpace \mathbb{C} m) has coordinates (\langle v_x, b_j\rangle)_{j\in m}, the complex conjugates of the coordinates \langle b_j, v_x\rangle of v_x in the basis b.
New/Heights/OneDeterminant.lean · line 58noncomputable def dyadSum (v : n → H) := ∑ x, toLp 2 (⟪v x, b ·⟫_ℂ) ⊗ₜ[ℂ] v x
For H and b as in dyadSum and finite families v =(v_x)_{x\in n}, w =(w_y)_{y\in l} in H: \langledyadSum b v, dyadSum b w\rangle = \sum_{x\in n} \sum_{y\in l} |\langle w_y, v_x\rangle |^{2} (the inner product of \mathbb{C}^{m} \otimes H); in particular it is a nonnegative real number. A simp lemma.
New/Heights/OneDeterminant.lean · the statement, lines 60–61@[simp] lemma inner_dyadSum {l} [Fintype l] (v : n → H) (w : l → H) : ⟪dyadSum b v, dyadSum b w⟫_ℂ = ∑ x, ∑ y, ‖⟪w y, v x⟫_ℂ‖ ^ 2 := by simp [dyadSum, ← mul_conj', inner, b.sum_inner_mul_inner,
Hilbert–Schmidt inequality. Let H be a finite-dimensional complex inner product space with an orthonormal basis b indexed by a finite type m, n a finite type, \mathbb{C}^{n} = EuclideanSpace \mathbb{C} n with standard basis (e_x), P : \mathbb{C}^{n} \to H and R : H \to H linear, U \subseteq \mathbb{C}^{n} and A \subseteq H subspaces, and \varepsilon a real number. If \sum_{x\in n} \lVert(P^{*}P - 1)e_x\rVert \le \varepsilon (k) and P v - R(P v) \in A for every v \in U (h), then \dim U - \varepsilon - \sum_{x\in n} \lVert R(P e_x)\rVert^{2} \le \operatorname{Re} \langledyadSum b (x \mapsto P e_x), dyadSum b (a_j)_{j}\rangle, where (a_j) is Mathlib's standard orthonormal basis of A (stdOrthonormalBasis \mathbb{C} A). By inner_dyadSum the right side is \sum_{x} \sum_{j} |\langle a_j, P e_x\rangle |^{2} = \sum_{x} \lVert p_A(P e_x)\rVert^{2}, the squared Hilbert–Schmidt norm of p_A\circ P, p_A the orthogonal projection onto A. (The text reading of the signature also lists G, [Group G], [Fintype G] and the section variable v : G \to H; the statement's v is bound by \forall v \in U, so Lean is expected not to take them.)
New/Heights/OneDeterminant.lean · the statement, lines 67–70lemma finrank_sub_le_re_inner_dyadSum [FiniteDimensional ℂ H] (P : EuclideanSpace ℂ n →ₗ[ℂ] H) (R : End ℂ H) (U A : Submodule ℂ _) {ε} (k : ∑ x, ‖(P.adjoint ∘ₗ P - 1) (.single x 1)‖ ≤ ε) (h : ∀ v ∈ U, P v - R (P v) ∈ A) : finrank ℂ U - ε - ∑ x, ‖R (P (.single x 1))‖ ^ 2 ≤ re ⟪dyadSum b (P <| .single · 1), dyadSum b (stdOrthonormalBasis ℂ A ·)⟫_ℂ := by
For a complex vector space V (an additive commutative group with a \mathbb{C}-module structure), a complex vector space W (an additive commutative monoid with a \mathbb{C}-module structure), an index type S, a family B =(B_s)_{s\in S} of \mathbb{C}-linear maps V \to W and a real number \eta: IsSpread B \eta holds when for every subspace F \subseteq W there is s \in S with \dim B_s^{-1}(F) \le((1 + \varphi)/2 + \eta)\cdot \dim V, where \varphi = \dim F / \dim W (dimensions are Mathlib's finrank, 0 for an infinite-dimensional space; \varphi is computed in \mathbb{R}, with x/0 = 0).
New/Heights/OneDeterminant.lean · the statement, line 90def IsSpread {W} [AddCommMonoid W] [Module ℂ W] (B : S → V →ₗ[ℂ] W) η :=
Few translates. Let \Theta be an index type, V a nonzero finite-dimensional complex vector space, W a finite-dimensional complex inner product space, B =(B_s)_{s\in \Theta} a family of linear maps V \to W and \eta > 0 real (h\eta) with IsSpread B \eta (h). Then there is a finite set t \subseteq \Theta with |t|\cdot \dim V \le 5\cdot \dim W\cdot \log(1 + 1/\eta) and (1 - 4\eta)\cdot \dim W \le \dim(\sum_{s\in t} B_s(V)), the dimension of the span of the images of the B_s with s \in t (both inequalities in \mathbb{R}).
New/Heights/OneDeterminant.lean · the statement, lines 97–99lemma exists_few_translates {B : Θ → V →ₗ[ℂ] W} {η} (hη : 0 < η) (h : IsSpread B η) [Nontrivial V] : ∃ t, #t * finrank ℂ V ≤ 5 * finrank ℂ W * Real.log (1 + η⁻¹) ∧ (1 - 4 * η) * finrank ℂ W ≤ finrank ℂ ↥(⨆ s ∈ t, (B s).range) := by
Basis extension. For a finite-dimensional complex vector space V, a natural number n, a set S \subseteq V whose span is V (h) and a linearly independent family y =(y_1, \ldots, y_n) in V (i): there are a natural number k and a family z =(z_1, \ldots, z_k) of members of S such that the concatenated family (y_1, \ldots, y_n, z_1, \ldots, z_k) (y \oplus_{v} z, indexed by Fin n \oplus Fin k) is linearly independent and \dim V = n + k; so y extends to a basis of V by k members of S. (The text reading of the signature also lists the section variables k and [Field k]; the statement's k is bound by \exists k z, so Lean is expected not to take them.)
New/Heights/OneDeterminant.lean · the statement, lines 115–117lemma exists_extend_basis_of_span_eq_top {n S} {y : Fin n → V} (i : LinearIndependent ℂ y) (h : span ℂ S = ⊤) : ∃ k z, (∀ a : Fin k, z a ∈ S) ∧ LinearIndependent ℂ (y ⊕ᵥ z) ∧ finrank ℂ V = n + k := by
One determinant. Let W be a finite-dimensional complex inner product space, \Theta a type (of twists), \theta : PrimePadicIso \to \Theta, and for each \vartheta \in \Theta a complex inner product space H(\vartheta) and a linear map u_{\vartheta} : W \to H(\vartheta); let o \in \Theta with u_o injective (hu). Let S be finite and x : S \to W linearly independent (i) with \dim W = |S| (hk), so x is a basis of W. Let \alpha, \delta, g be real numbers with |\sigma(\det \operatorname{Gram}(u_o\circ x))| \le \exp(\alpha) for every ring automorphism \sigma of \mathbb{C} (h\alpha), \operatorname{Gram}(v) =(\langle v_s, v_t\rangle)_{s,t\in S}. Let \gamma : PrimePadicIso \to \mathbb{C} with \gamma(\iota) \ne 0 for all \iota (\gamma 0) and HeightLe g (\iota \mapsto |\gamma(\iota)|^{-2}) (h\gamma); let e : \mathbb{N} \to \mathbb{R} with \sum_{l\in U} e(l) \le \delta for every finite set U of natural numbers (he); let \Lambda assign to every (\ell, \iota) \in PrimePadicIso and every ring homomorphism j : \mathbb{C} \to \mathbb{C}_{\ell} a subset \Lambda(\iota, j) \subseteq H(\theta(\iota)); and let k \in \mathbb{N}. Assume (w): for all \iota, j, all x' \in \Lambda(\iota, j\circ \operatorname{conj}) and y' \in \Lambda(\iota, j), \lVert j(\langle x', y'\rangle)\rVert_{\ell} \le 1; and (l): for all \iota =(\ell, \iota) and j there is a complex S\times S matrix m with \exp(-e(\ell))\cdot \lVert j(\gamma(\iota))\rVert^{k} \le \lVert j(\det m)\rVert and \sum_{l\in S} m_{\mathit{il}}\cdot u_{\theta(\iota)}(x_l) \in \Lambda(\iota, j) for every i \in S. Then HeightLe (\alpha + 2\delta + k\cdot g) (\iota \mapsto normDet(u_{\theta(\iota)})^{2} / normDet(u_o)^{2}), where normDet(u) = \sqrt{\det}(u^{*}u) \ge 0 is the volume factor of a linear map (Mathlib's LinearMap.normDet), the quotient taken in \mathbb{C}. (The text reading of the signature also lists the section variables m and [Fintype m]; the statement's m is bound by \exists m in l, so Lean is expected not to take them.)
New/Heights/OneDeterminant.lean · the statement, lines 129–136lemma one_determinant {θ : _ → Θ} {H : Θ → Type} [∀ ϑ, NormedAddCommGroup (H ϑ)] [∀ ϑ, InnerProductSpace ℂ (H ϑ)] (u : ∀ ϑ, W →ₗ[ℂ] H ϑ) {o} (hu : (⇑(u o)).Injective) [Fintype S] {x : S → W} (i : LinearIndependent ℂ x) (hk : finrank ℂ W = card S) {α δ g} (hα : ∀ σ : ℂ ≃+* ℂ, ‖σ (gram ℂ (u o ∘ x)).det‖ ≤ Real.exp α) {γ : _ → ℂ} (γ0 : ∀ ι, γ ι ≠ 0) (hγ : HeightLe g fun ι ↦ (‖γ ι‖ ^ 2 :)⁻¹) {e : ℕ → ℝ} (he : ∀ U, ∑ l ∈ U, e l ≤ δ) (Λ : ∀ ι : PrimePadicIso, (ℂ →+* ℂ_[ι.1]) → Set (H (θ ι))) (k : ℕ) (w : ∀ ι j, ∀ x ∈ Λ ι (j.comp (starRingEnd ℂ)), ∀ y ∈ Λ ι j, ‖j ⟪x, y⟫_ℂ‖ ≤ 1) (l : ∀ ι j, ∃ m, Real.exp (-e ι.1) * ‖j (γ ι)‖ ^ k ≤ ‖j (det m)‖ ∧ ∀ i, ∑ l, m i l • u _ (x l) ∈ Λ ι j) : HeightLe (α + 2 * δ + k * g) fun ι ↦ (u (θ ι)).normDet ^ 2 / (u o).normDet ^ 2 := by
If a complex number x satisfies ‖complexToCp ι x‖ ≤ c, with one real bound c, for every ring isomorphism ι : ℂ → ℚ̄_2 (complexToCp ι: ι followed by the inclusion ℚ̄_2 ⊆ ℂ_2), then x is algebraic over ℚ.
Lib/CM/Genus/QuadraticZeta.lean · the statement, line 17lemma isAlgebraic_of_padic {x c} (h : ∀ ι, ‖complexToCp (p := 2) ι x‖ ≤ c) : IsAlgebraic ℚ x := by
Let L be an algebraically closed field with #ℂ = #L (e), K a countable commutative ring, f : K → ℂ and g : K → L injective ring homomorphisms (the injectivity hypotheses hf, hg default to a proof by RingHom.injective, which applies when K is a field). Then there is a ring isomorphism σ : ℂ → L with σ(f(a)) = g(a) for all a ∈ K.
Lib/General/LinearAlgebra/CommonEigenvectors.lean · the statement, lines 38–40lemma exists_ringEquiv_extend {L K} [Field L] [IsAlgClosed L] [CommRing K] [Countable K] (e : #ℂ = #L) (f : K →+* ℂ) (g : K →+* L) (hf : (⇑f).Injective := by apply RingHom.injective) (hg : (⇑g).Injective := by apply RingHom.injective) : ∃ σ : ℂ ≃+* L, ∀ a, σ (f a) = g a := by
For every prime p: the cardinality of ℂ equals that of the algebraic closure ℚ̄_p (PadicAlgCl p) of ℚ_p.
Lib/PadicHodge/PeriodRings/Ainf.lean · the statement, line 16lemma mk_complex_eq_mk_padicAlgCl {p} [Fact p.Prime] : #ℂ = #(PadicAlgCl p) := mk_complex ▸
For a prime p and a ring isomorphism ι : ℂ → ℚ̄_p (PadicAlgCl p): the ring homomorphism ℂ → ℂ_p obtained by composing ι with the inclusion of ℚ̄_p into its completion ℂ_p.
Lib/ClassField/Places/UnramifiedCharacters.lean · line 44noncomputable abbrev complexToCp (ι : ℂ ≃+* PadicAlgCl p) := (algebraMap _ ℂ_[p]).comp ι.toRingHom
For a subring R of a commutative ring A and a matrix M over A: IsIntMatrix R M means every entry M i j lies in R.
Lib/General/LinearAlgebra/AdelicRingDefs.lean · line 53def IsIntMatrix (R : Subring A) {m n} (M : Matrix m n A) := ∀ i j, M i j ∈ R
For a subring R of a commutative ring A and a square matrix M over A (finite index type) all of whose entries lie in R: det M ∈ R.
Lib/General/Algebra/GeneralisedIndex.lean · the statement, line 10lemma IsIntMatrix.det_mem (h : IsIntMatrix R M) : M.det ∈ R :=
For a finite commutative ring R, a finite index type a, a primitive additive character ψ : R → ℂ (hψ) and z ∈ R^a: Σ_{x∈R^a} ψ(z·x) = |R^a| if z = 0 and 0 otherwise.
Lib/Weil/GaussSum/LocalHomUnit.lean · the statement, lines 42–43lemma sum_addChar_dotProduct (z : a → R) : ∑ x, ψ (z ⬝ᵥ x) = ite (z = 0) (Fintype.card (a → R)) 0 := by
For a finite index type n and a commutative ring R: the group automorphism g ↦ (gᵀ)⁻¹ of GL_n(R).
Lib/General/LinearAlgebra/ColumnLattices.lean · the statement, line 109noncomputable def invTransposeGL :=
For g ∈ GL_n(R) (R a commutative ring, n finite): the transpose gᵀ as an element of GL_n(R), with inverse (g⁻¹)ᵀ.
Lib/General/Groups/ValuationPair.lean · line 136@[simps] def transposeGL (g : GL n R) : GL n R := by use gᵀ, g⁻¹.1ᵀ <;> simp [← transpose_mul]