Skip to content

Commit 8eda17d

Browse files
committed
doc(NumberTheory): avoid lazy continuation lines (leanprover-community#37571)
We resolve the ambiguity inherent in lazy (un-indented) list item continuation lines by either indenting them or separating them by inserting a newline in the cases where the item continuation was a mistake.
1 parent ae0c614 commit 8eda17d

9 files changed

Lines changed: 21 additions & 8 deletions

File tree

Mathlib/NumberTheory/EllipticDivisibilitySequence.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ Strong recursion principle for a normalised EDS: if we have
356356
* `P 0`, `P 1`, `P 2`, `P 3`, and `P 4`,
357357
* for all `m : ℕ` we can prove `P (2 * (m + 3))` from `P k` for all `k < 2 * (m + 3)`, and
358358
* for all `m : ℕ` we can prove `P (2 * (m + 2) + 1)` from `P k` for all `k < 2 * (m + 2) + 1`,
359-
then we have `P n` for all `n : ℕ`.
359+
360+
then we have `P n` for all `n : ℕ`.
360361
-/
361362
@[elab_as_elim]
362363
noncomputable def normEDSRec' {P : ℕ → Sort u}
@@ -372,6 +373,7 @@ noncomputable def normEDSRec' {P : ℕ → Sort u}
372373
`P (m + 4)`, and `P (m + 5)`, and
373374
* for all `m : ℕ` we can prove `P (2 * (m + 2) + 1)` from `P (m + 1)`, `P (m + 2)`, `P (m + 3)`,
374375
and `P (m + 4)`,
376+
375377
then we have `P n` for all `n : ℕ`. -/
376378
@[elab_as_elim]
377379
noncomputable def normEDSRec {P : ℕ → Sort u}
@@ -479,6 +481,7 @@ lemma complEDS_odd (m : ℤ) : complEDS b c d k (2 * m + 1) =
479481
* `P 0`, `P 1`,
480482
* for all `m : ℕ` we can prove `P (2 * (m + 3))` from `P k` for all `k < 2 * (m + 3)`, and
481483
* for all `m : ℕ` we can prove `P (2 * (m + 2) + 1)` from `P k` for all `k < 2 * (m + 2) + 1`,
484+
482485
then we have `P n` for all `n : ℕ`. -/
483486
@[elab_as_elim]
484487
noncomputable def complEDSRec' {P : ℕ → Sort u} (zero : P 0) (one : P 1)
@@ -493,6 +496,7 @@ noncomputable def complEDSRec' {P : ℕ → Sort u} (zero : P 0) (one : P 1)
493496
`P (m + 4)`, and `P (m + 5)`, and
494497
* for all `m : ℕ` we can prove `P (2 * (m + 2) + 1)` from `P (m + 1)`, `P (m + 2)`, `P (m + 3)`,
495498
and `P (m + 4)`,
499+
496500
then we have `P n` for all `n : ℕ`. -/
497501
@[elab_as_elim]
498502
noncomputable def complEDSRec {P : ℕ → Sort u} (zero : P 0) (one : P 1)

Mathlib/NumberTheory/Height/MvPolynomial.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ If
391391
* `q : ι × ι' → MvPolynomial ι K` is a family of homogeneous polynomials of the same degree `M`,
392392
* `x : ι → K` is such that for all `k : ι`,
393393
`∑ j, (q (k, j)).eval x * (p j).eval x = (x k) ^ (M + N)`,
394+
394395
then the multiplicative height of `fun j ↦ (p j).eval x` is bounded below by an (explicit) positive
395396
constant depending only on `q` times the `N`th power of the multiplicative height of `x`.
396397
A similar statement holds for the logarithmic height.
@@ -428,6 +429,7 @@ open AdmissibleAbsValues
428429
* `q : ι × ι' → MvPolynomial ι K` is a family of homogeneous polynomials of the same degree `M`,
429430
* `x : ι → K` is such that for all `k : ι`,
430431
`∑ j, (q (k, j)).eval x * (p j).eval x = (x k) ^ (M + N)`,
432+
431433
then the multiplicative height of `fun j ↦ (p j).eval x` is bounded below by an (explicit) positive
432434
constant depending only on `q` times the `N`th power of the multiplicative height of `x`. -/
433435
theorem mulHeight_eval_ge {M N : ℕ} {q : ι × ι' → MvPolynomial ι K}
@@ -458,6 +460,7 @@ theorem mulHeight_eval_ge {M N : ℕ} {q : ι × ι' → MvPolynomial ι K}
458460
* `q : ι × ι' → MvPolynomial ι K` is a family of homogeneous polynomials of the same degree `M`,
459461
* `x : ι → K` is such that for all `k : ι`,
460462
`∑ j, (q (k, j)).eval x * (p j).eval x = (x k) ^ (M + N)`,
463+
461464
then the multiplicative height of `fun j ↦ (p j).eval x` is bounded below by a positive
462465
constant depending only on `q` times the `N`th power of the multiplicative height of `x`.
463466
@@ -479,6 +482,7 @@ open Real in
479482
* `q : ι × ι' → MvPolynomial ι K` is a family of homogeneous polynomials of the same degree `M`,
480483
* `x : ι → K` is such that for all `k : ι`,
481484
`∑ j, (q (k, j)).eval x * (p j).eval x = (x k) ^ (M + N)`,
485+
482486
then the logarithmic height of `fun j ↦ (p j).eval x` is bounded below by an (explicit)
483487
constant depending only on `q` plus `N` times the logarithmic height of `x`. -/
484488
theorem logHeight_eval_ge {M N : ℕ} {q : ι × ι' → MvPolynomial ι K}
@@ -500,6 +504,7 @@ theorem logHeight_eval_ge {M N : ℕ} {q : ι × ι' → MvPolynomial ι K}
500504
* `q : ι × ι' → MvPolynomial ι K` is a family of homogeneous polynomials of the same degree `M`,
501505
* `x : ι → K` is such that for all `k : ι`,
502506
`∑ j, (q (k, j)).eval x * (p j).eval x = (x k) ^ (M + N)`,
507+
503508
then the logarithmic height of `fun j ↦ (p j).eval x` is bounded below by a
504509
constant plus `N` times the logarithmic height of `x`.
505510

Mathlib/NumberTheory/KummerDedekind.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ the ring of integers. This states the following: assume we are given
1717
- A prime ideal `I` of Dedekind domain `R`
1818
- An `R`-algebra `S` that is a Dedekind Domain
1919
- An `α : S` that is integral over `R` with minimal polynomial `f`
20+
2021
If the conductor `𝓒` of `x` is such that `𝓒 ∩ R` is coprime to `I` then the prime
2122
factorisations of `I * S` and `f mod I` have the same shape, i.e. they have the same number of
2223
prime factors, and each prime factors of `I * S` can be paired with a prime factor of `f mod I` in

Mathlib/NumberTheory/ModularForms/Discriminant.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function, and proves its key properties including invariance under the generator
2121
## Main definitions
2222
2323
* `ModularForm.discriminant`: The modular discriminant function `Δ(z) = η(z) ^ 24`, which can also
24-
be expressed as `q * ∏' (1 - q ^ (n + 1)) ^ 24` where `q = e ^ (2πiz)`.
24+
be expressed as `q * ∏' (1 - q ^ (n + 1)) ^ 24` where `q = e ^ (2πiz)`.
2525
2626
## Main results
2727

Mathlib/NumberTheory/ModularForms/EisensteinSeries/E2/Transform.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ the action of `S = [[0, -1], [1, 0]]`.
4343
The proof of `G2_S_transform` is the heart of this file. The strategy is:
4444
4545
1. **Write as absolutely convergent series**: Express `G2` as an absolutely convergent double sum
46-
by adding and subtracting telescoping terms:
46+
by adding and subtracting telescoping terms:
4747
`G₂(z) = 2ζ(2) + ∑' m n, 1/((mz+n)²(mz+n+1)) + δ(m,n)`
4848
where `δ` is a correction for boundary terms.
4949

Mathlib/NumberTheory/NumberField/FractionalIdeal.lean

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Prove some results on the fractional ideals of number fields.
1717
1818
## Main definitions and results
1919
20-
* `NumberField.basisOfFractionalIdeal`: A `ℚ`-basis of `K` that spans `I` over `ℤ` where `I` is
21-
a fractional ideal of a number field `K`.
22-
* `NumberField.det_basisOfFractionalIdeal_eq_absNorm`: for `I` a fractional ideal of a number
23-
field `K`, the absolute value of the determinant of the base change from `integralBasis` to
24-
`basisOfFractionalIdeal I` is equal to the norm of `I`.
20+
* `NumberField.basisOfFractionalIdeal`: A `ℚ`-basis of `K` that spans `I` over `ℤ` where `I` is
21+
a fractional ideal of a number field `K`.
22+
* `NumberField.det_basisOfFractionalIdeal_eq_absNorm`: for `I` a fractional ideal of a number
23+
field `K`, the absolute value of the determinant of the base change from `integralBasis` to
24+
`basisOfFractionalIdeal I` is equal to the norm of `I`.
2525
-/
2626

2727
@[expose] public section

Mathlib/NumberTheory/RamificationInertia/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Often the above theory is set up in the case where:
3333
* `S` is the integral closure of `R` in `L`,
3434
* `p` and `P` are maximal ideals,
3535
* `P` is an ideal lying over `p`
36+
3637
We will try to relax the above hypotheses as much as possible.
3738
3839
## Notation

Mathlib/NumberTheory/RamificationInertia/Inertia.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Often the above theory is set up in the case where:
2424
* `S` is the integral closure of `R` in `L`,
2525
* `p` and `P` are maximal ideals,
2626
* `P` is an ideal lying over `p`
27+
2728
We will try to relax the above hypotheses as much as possible.
2829
2930
## Notation

Mathlib/NumberTheory/RamificationInertia/Ramification.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Often the above theory is set up in the case where:
2424
* `S` is the integral closure of `R` in `L`,
2525
* `p` and `P` are maximal ideals,
2626
* `P` is an ideal lying over `p`.
27+
2728
We will try to relax the above hypotheses as much as possible.
2829
2930
## Notation

0 commit comments

Comments
 (0)