grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 149

lemma Space.card_classes_le

What it saysLet E be a CM field with a CM type (CMType E: a CM number field with a chosen complex embedding \Phi_w inducing each infinite place w), N a nonzero natural number (NeZero N) whose image in the ring of integers lies in the different ideal of E (h), and n a finite index type. Then the number of classes of the standard definite hermitian space of rank |n| at the level K_f, i.e. Nat.card of StdClasses (Kf E n) = \Gamma_f\backslash G_f/K_f (G_f the finite adelic unitary group of the identity form on E^{n}, \Gamma_f its rational points, K_f = G_f \cap \mathrm{GL}_n(\hat{O}) the stabiliser of the standard lattice \hat{O}^{n}), is at most (1 + 2\cdot C^{3})^{4\cdot f\cdot|n|^{2}}, where C = shortBasisConst E n N = 6\cdot N\cdot(f\cdot|n|)^{2} and f = numInfPlaces E is the number of infinite places of E.
The argument in briefFor each class g pick a short basis Y_g with g.out^{-1}Y_g integral, the Gram matrix G_g = Y_g\ast Y_g, and an approximation X_g \in \operatorname{Mat}_n(E) of (g.out^{-1}Y_g)^{-1} modulo \hat{O} with small archimedean entries. The entries of G_g and G_gX_g are algebraic integers bounded by C^{3} at every infinite place, and they determine the class: equal entries give a rational unitary \gamma = Y_gY_{g'}^{-1} and an integral \kappa relating the representatives. The count of such integral vectors (Filling.encard_integral_le) gives the bound.

12 steps, 12 of them leaves · New/Core/ClassCountBound.lean, lines 14–37 · in the notes: Theorem 1, p. 2 of A crude bound for a class number, and divisibility of indices of submodules

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 1setupline 17

    For every class g (with its chosen representative g.out \in G_f) choose Y_g \in \mathrm{GL}_n(E) with g.out^{-1}\cdot Y_g integral (l) and |\varphi((Y_g)_{ij})| \le C for every complex embedding \varphi of E and all i, j (hY).

    UsesSpace.exists_short_basis_stdSpace unit 99

  2. 2setupline 18

    Let A_g = g.out^{-1}\cdot Y_g (an integral matrix over the finite adeles) and G_g = Y_g\ast\cdot1\cdot Y_g \in \mathrm{GL}_n(E), the Gram matrix of the columns of Y_g for the standard form.

    Usesstep 1

  3. 3setupline 19

    For every finite adele y choose r(y) \in E with y - r(y) \in \hat{O} (o) and |\Phi_w(r(y))| \le (2f)^{2}\cdot N at every infinite place w (hr) (exists_rat_near_of_mem_differentIdeal with d = N \ne 0 and z = 0).

    Usesexists_rat_near_of_mem_differentIdeal unit 99

  4. 4setupline 20

    Let X_g \in \operatorname{Mat}_n(E) be r applied entrywise to A_g^{-1} (an approximation of A_g^{-1} modulo \hat{O}).

    Usesstep 2, step 3

  5. 5factline 21

    For all classes g, g': A_{g'}A_g^{-1} - A_{g'}X_g = A_{g'}(A_g^{-1} - X_g) is integral (new o g g'), as A_{g'} is integral (l) and A_g^{-1} - X_g is integral entrywise (o).

    Usesstep 1, step 2, step 3, step 4, IsIntMatrix.mul unit 112

  6. 6reductionlines 22–25

    Count by an injective map into integral vectors: the number of classes is the \operatorname{ncard} of the whole set, and Filling.encard_integral_le, applied to g \mapsto (entries of G_g\cdot X_g and of G_g\cdot1, indexed by Bool \times n \times n) with r = C^{3}, bounds it by (1 + 2C^{3})^{2|n|^{2}\cdot f\cdot2} = (1 + 2C^{3})^{4f|n|^{2}} (the exponent identity by simp; ring). Three goals remain: (a) these entries are algebraic integers; (b) their absolute values at every infinite place are at most C^{3}; (c) two classes g', g whose vectors agree (e) are equal, which follows from the double coset relation between their representatives.

    Usesstep 2, step 4, Filling.encard_integral_le unit 148, StdClasses unit 102, Set.ncard_univ, ENat.toNat_le_of_le_natCast, Quotient.out_equiv_out, DoubleCoset.rel_iff

  7. 7computationline 26

    In goal (a), unfold G_g and reassociate the products.

    Usesstep 2

  8. 8factline 27

    Claim b: for a matrix B over E such that g.out^{-1}\cdot B is integral, the entries of Y_g\ast\cdot B are integral: since g.out^{-1} is unitary, Y_g\ast\cdot B = (g.out^{-1}Y_g)\ast\cdot(g.out^{-1}B) = A_g\ast\cdot1\cdot(g.out^{-1}B), a product of integral matrices.

    Usesstep 1, step 2, U.gram_invariant unit 29, IsIntMatrix.isInt_conjTranspose unit 112, IsIntMatrix.mul unit 112, IsIntMatrix.one unit 112

  9. 9deductionlines 28–29

    Goal (a), in both cases of the Bool index: for G_g\cdot1 apply b to B = Y_g (A_g integral, l); for G_g\cdot X_g apply b to B = Y_g\cdot X_g, as g.out^{-1}Y_gX_g = A_gX_g = 1 - (A_gA_g^{-1} - A_gX_g) is integral (step 5 with g' = g); an element of E that is integral at every finite place is an algebraic integer.

    Usesstep 5, step 8, IsIntMatrix.one unit 112, IsIntMatrix.sub unit 112, algebraMap_mem_Ô unit 123

  10. 10computationlines 30–33

    Goal (b), in both cases of the Bool index (n is nonempty, as it has the index i): expand the entries as sums and use the triangle inequality, |\Phi_v((Y_g)_{ab})| \le C (hY) and |\Phi_v(r(\cdot))| \le (2f)^{2}N (hr): |\Phi_v((G_g)_{ij})| \le |n|\cdot C^{2} and |\Phi_v((G_gX_g)_{ij})| \le |n|^{2}\cdot C^{2}\cdot(2f)^{2}N, both at most C^{3} = (6N f^{2}|n|^{2})^{3} since N, f, |n| \ge 1.

    Usesstep 1, step 3, step 4, norm_sum_le

  11. 11computationline 34

    Goal (c): read e entrywise: G_{g'} = G_g (the Bool index false) and G_{g'}X_{g'} = G_gX_g (the index true).

  12. 12witnesslines 35–37

    The double coset relation: \gamma = Y_g\cdot Y_{g'}^{-1} is unitary for the standard form (from G_{g'} = G_g by gram_inv_of_gram_eq and gram_mul_of_gram_eq), hence a rational point in \Gamma_f; and \kappa = A_{g'}\cdot A_g^{-1} = g'.out^{-1}\cdot\gamma^{-1}\cdotg.out lies in K_f (mem_Kf): G_g is invertible, so G_gX_g = G_{g'}X_{g'} = G_gX_{g'} gives X_g = X_{g'}, and then A_{g'}A_g^{-1} = 1 + (A_{g'}A_g^{-1} - A_{g'}X_g) - (A_{g'}A_{g'}^{-1} - A_{g'}X_{g'}) is integral (step 5 twice). Hence g.out = \gamma\cdot g'.\mathrm{out}\cdot\kappa.

    Usesstep 2, step 5, step 11, gram_mul_of_gram_eq unit 29, gram_inv_of_gram_eq unit 29, mem_Kf unit 122, IsIntMatrix.one unit 112, IsIntMatrix.add unit 112, IsIntMatrix.sub unit 112, Units.mul_right_inj, eq_mul_of_inv_mul_eq