grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 150

lemma Data.exists_isFrobPacking

What it saysFor data D, a prime p with \chi_K(p) \ne 1 and n : places \to \mathbb{N} with w(\sigma) \le n_\sigma \le w(\sigma) + x^{42} for every infinite place \sigma (w = Data.nominalWeight), there are i, y : places \to \mathbb{N} with \operatorname{IsFrobPacking}(p, n, i, y) such that, with L = \operatorname{forcedPart}(D, p) + \sum_s v_p(\operatorname{depthLossInt}(D, n_s)), either (\chi_K(p) = -1, i \equiv 1 \text{ and } \sum_s (v_p(n_s!) - y_s) \le L) or \sum_s ((1/(p-1) - \rho_p)\cdot n_s + 4\cdot b_2 - y_s) \le L (sums over all infinite places s, real numbers; \rho_p = \operatorname{nonsplitWeight}(P.d, p), b_2 = D.b₂). The disjunction is the body of the let L := … of the statement, which goes on to line 38 (the census cut it at line 36).
The argument in briefIf k < p (then \chi_K(p) = -1): take i \equiv 1 and y_s = \min(n_{(-p)s}, \lfloor(n_s \mathbin{\dot-} c)/p\rfloor), c = \lceil 60b/k\rceil (\mathbin{\dot-} the truncated subtraction of \mathbb{N}); Legendre's formula and the ascending factorial in depthLossInt give the first alternative. If p \le k: for a place s such that some odd e < s (the exponent of the data) with p \ne d has s and (-p)^e\cdot s thick, that e is unique (the three-term condition of the data); take i_s = e and y_s = \lfloor n_s/p^e\rfloor; for every other place, thick places without such a partner included, y_s = 0. Comparing termwise the series of hasSum_live_inv_pow with the local ask, the chosen term and a geometric series gives the second alternative.

34 steps, 32 of them leaves · New/Curve/DepthPairs.lean, lines 34–92 · in the notes: Proposition 10.3, p. 36 of Theta functions of a CM elliptic curve: periods, tight frames, conjugates and divisibility of jets

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. 1statementlines 36–38

    (Lines 36–38 end the statement: the line census takes the := of let L := for the start of the value, so the rest of the statement is owned here.)

  2. p \ge 13 (\chi_K(p) \ne 1), p is prime (as an instance), and x^{42} + 1 \le a/x_1 (size bounds of the data).

    UsesParameters.thirteen_le_of_chiK_ne_one unit 152

  3. 3factline 41

    hl: p = d (\chi_K(p) = 0) or \chi_K(p) = -1; v: a \mid b \Longrightarrow v_p(a) \le v_p(b); k > 0.

    UseschiK_cases unit 106

  4. 4computationlines 42–43

    Unfold IsFrobPacking, forcedPart, localAsk and depthLossInt; sums of sums are merged.

  5. 5setupline 44

    c := \lceil 60b/k\rceil.

  6. 6factline 45

    Legendre recursion: v_p(m!) = \lfloor m/p\rfloor + v_p(\lfloor m/p\rfloor !).

  7. 7case-splitline 46

    Case split: k < p, or p \le k.

  8. 8case8 steps insidelines 47–59

    Case k < p.

    1. 8.1factline 47

      p \ne d (d \le k < p by the size bounds), so \chi_K(p) = -1.

      Usesstep 3

    2. 8.2estimatelines 48–49

      For every s: \lfloor(n_s - c)/p\rfloor \le c, from n_s \le w(s) + x^{42} and p > k.

      Lean states(n s - c) / p ≤ c

    3. 8.3witnesslines 50–51

      Take i \equiv 1 and y_s = \min(n_{(-p)\cdot s}, \lfloor(n_s \mathbin{\dot-} c)/p\rfloor) (\mathbin{\dot-} truncated subtraction); the first alternative is claimed: \chi_K(p) = -1, i \equiv 1 and the termwise bound; the packing remains.

    4. 8.4computationlines 52–53

      Packing: (1) i_s = 1 is odd and \chi_K(p) = -1; (2) is vacuous (j < 1 is even); (3) the outgoing count satisfies p\cdot y_t \le p\cdot \lfloor(n_t \mathbin{\dot-} c)/p\rfloor \le n_t \mathbin{\dot-} c, and the unique \sigma with (-p)\cdot \sigma = t has incoming count y_\sigma = \min(n_t, \lfloor(n_\sigma \mathbin{\dot-} c)/p\rfloor) \le \min(n_t, c) (its defining minimum and step 8.2). If n_t \ge c the sum is \le(n_t - c) + c = n_t; if n_t < c the outgoing count vanishes (n_t \mathbin{\dot-} c = 0) and the sum is y_\sigma \le n_t.

      Usesstep 8.2

    5. 8.5estimatelines 54–56

      Termwise bound, with l = n_s \mathbin{\dot-} c: n_s! divides (l + c)! (n_s \le l + c) and (l + c)! = l!\cdot(l + 1)\cdots(l + c) (factorial_mul_ascFactorial), so v_p(n_s!) \le v_p(l!) + v_p((l + 1)\cdots(l + c)) (equality holds when n_s \ge c, where l + c = n_s; it can also hold when n_s < c, and only the inequality is used); the second is \le v_p(\operatorname{depthLossInt}(n_s)); and v_p(l!) = \lfloor l/p\rfloor + v_p(\lfloor l/p\rfloor !), whose factorial divides the ascending factorial (\lfloor l/p\rfloor \le c); the remaining \lfloor l/p\rfloor - y_s is bounded by the e = 1 term of the local ask at w(s).

      UsesData.summable_localAsk unit 150, step 6, step 8.2

    6. 8.6side-conditionline 57

      Non-negativity side conditions.

    7. 8.7estimateline 58

      The e = 1 term: \lfloor(n_s - c)/p\rfloor - n_{(-p)s} \le((n_s - c)/p - w((-p)s))^+, using the next fact.

    8. n_s - c \le w(s) (real numbers), from n_s \le w(s) + x^{42} and x^{42} \le c.

      Lean states↑(n s - c) ≤ D.nominalWeight s

  9. 9case17 steps insidelines 60–92

    Case p \le k.

    1. 9.1factline 60

      hu: for odd e, the place named by -p^e is the e-th power of the place named by -p.

    2. N(s): for 0 < i < j with j bounded as required by the three-term condition of the data (j \le 324\cdot s, \text{ from } p \le k and the size bounds), the places s, (-p)^i\cdot s, (-p)^j\cdot s are not all thick: Data.three_term would give (-p)^i \equiv 1 in the 2-part of (\mathbb{Z}/N_1)^\times, which two_pow_le_of_pow_eq_one excludes for such i.

      UsesData unit 152

    3. 9.3setupline 66

      Q(s, e): e < s (the exponent of the data), e odd, p \ne d, s thick and (-p)^e\cdot s thick.

    4. 9.4constructionlines 67–69

      For each s choose i_s, y_s: if some e has Q(s, e), it is unique (by N(s)); take i_s = e and y_s = \lfloor n_s/p^e\rfloor; otherwise y_s = 0 (also at a thick place s that has no such partner). So a positive y_s is used only when an admissible exponent exists: p^{i_s}y_s \le n_s, y_s \ne 0 \Longrightarrow Q(s, i_s), and Q(s, e) \Longrightarrow e = i_s \wedge y_s = \lfloor n_s/p^e\rfloor.

      Usesstep 9.2

    5. 9.5witnesslines 70–71

      Claim i, y with the second alternative. Packing (1) follows from Q (odd, p \ne d so \chi_K(p) = -1); (2) is shown next; (3): if no \sigma with y_\sigma \ne 0 has partner t the sum vanishes and p^{i_t}y_t \le n_t; otherwise see below; and the termwise bound of the second alternative remains.

    6. 9.6factline 72

      (2): if pr_j(s') = pr_{i_s}(s) with j < i_s, both odd, and y_s, y_{s'} \ne 0, then s' = (-p)^{i_s - j}\cdot s (hu), and s, s', (-p)^{i_s}\cdot s are thick (Q), against N(s).

      Usesstep 9.1, step 9.2

    7. 9.7computationline 73

      (3) when some s with y_s \ne 0 has partner t: the sum \sum_{\sigma \colon pr \sigma = t} y_\sigma has the single term y_s, and p^{i_t}\cdot y_t + y_s \le n_t follows with the next fact (y_t = 0).

    8. y_t = 0 (t = (-p)^{i_s}\cdot s cannot itself start a pair: N(s) with exponents i_s and i_t + i_s).

      Lean statesy t = 0

      Usesstep 9.2

    9. 9.9estimateline 75

      Then y_s \le n_s/p^{i_s} \le (weights) \le n_t, comparing the nominal weights of s and t (both thick or not).

    10. 9.10estimatelines 76–77

      hθ: for e \le s (the exponent): (b_2 + a/x_1)\cdot 2 \le c/p/2/2^e (size bounds, p \le k).

      Lean states(D.b₂ + D.a / D.x₁) * 2 ≤ c / p / 2 / 2 ^ e

    11. 9.11deductionlines 78–80

      Compare, term by term in e, the series \sum_e [e \ge 1, e odd or p = d]\cdot n_s/p^e (sum (2/(1-\chi))\cdot n_s\cdot(1/(p-1) - \rho_p), hasSum_live_inv_pow) with the sum of the local-ask series at w(s), the single term y_s at e = i_s, and the geometric series \sum_e (c/p)\cdot 2^{-e}.

      UseshasSum_live_inv_pow unit 150, Data.summable_localAsk unit 150

    12. 9.12estimatelines 81–84

      From this comparison, the termwise bound of the second alternative: Legendre's formula for v_p of the ascending factorial in depthLossInt and floors, in the two cases of \chi_K(p).

      Usesstep 6, step 9.10

    13. 9.13case-splitline 85

      The termwise comparison at a given e: trivial when the indicator is 0.

    14. 9.14factline 86

      x/p^e \le x for x \ge 0.

    15. 9.15case-splitline 87

      Case split: e \ge s (the exponent of the data) or e < s.

    16. 9.16estimatelines 88–90

      If e \ge s: n_s/p^e \le(w(s) + x^{42})/p^e is bounded by the geometric term (p \ge 4, size bounds).

    17. 9.17estimatelines 91–92

      If e < s: the term is at most the local-ask term at w(s), plus y_s when e = i_s, plus the geometric term: by the choice of i, y (Q, H), the class of thick places (placeClass_of_thick) and ne_d_of_placeClass_eq.

      UsesData.ne_d_of_placeClass_eq unit 150