Structured proof · Unit 149
lemma Space.card_classes_le
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.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.For every class g (with its chosen representative
g.\in G_f) choose Y_g \in \mathrm{GL}_n(E) without g.^{-1}\cdot Y_g integral (l) and |\varphi((Y_g)_{ij})| \le C for every complex embedding \varphi of E and all i, j (out hY).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_differentIdealwith d = N \ne 0 and z = 0).Count by an injective map into integral vectors: the number of classes is the \operatorname{ncard} of the whole set, and
Filling., 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 byencard_integral_le 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.unit 148,encard_integral_le StdClassesunit 102,Set.,ncard_univ ENat.,toNat_le_of_le_natCast Quotient.,out_equiv_out DoubleCoset.rel_iff Claim b: for a matrix B over E such that
g.^{-1}\cdot B is integral, the entries of Y_g\ast\cdot B are integral: sinceout g.^{-1} is unitary, Y_g\ast\cdot B = (out g.^{-1}Y_g)\ast\cdot(out g.^{-1}B) = A_g\ast\cdot1\cdot(out g.^{-1}B), a product of integral matrices.out Usesstep 1, step 2,
U.unit 29,gram_invariant IsIntMatrix.unit 112,isInt_conjTranspose IsIntMatrix.unit 112,mul IsIntMatrix.unit 112one 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.^{-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.out Usesstep 5, step 8,
IsIntMatrix.unit 112,one IsIntMatrix.unit 112,sub algebraMap_mem_Ôunit 123Goal (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.Goal (c): read e entrywise: G_{g'} = G_g (the Bool index false) and G_{g'}X_{g'} = G_gX_g (the index true).
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_eqandgram_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.lies in K_f (out 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). Henceg.= \gamma\cdot g'.\mathrm{out}\cdot\kappa.out Usesstep 2, step 5, step 11,
gram_mul_of_gram_equnit 29,gram_inv_of_gram_equnit 29,mem_Kfunit 122,IsIntMatrix.unit 112,one IsIntMatrix.unit 112,add IsIntMatrix.unit 112,sub Units.,mul_right_inj eq_mul_of_inv_mul_eq