Exact expanded PA statement
forall p h r. p = 2 * h + 1 -> (exists gsh_lt_gap_reflection_remainder. gsh_lt_gap_reflection_remainder + S r = p) -> (exists gsh_lt_gap_reflection_upper. gsh_lt_gap_reflection_upper + S h = r) -> (exists m. (exists gsh_lt_gap_reflection_positive. gsh_lt_gap_reflection_positive + S 0 = m) /\ ((exists gsh_le_gap_reflection_bounded. gsh_le_gap_reflection_bounded + m = h) /\ r + m = p))Structural proof guide
Generated structural guide
A residue strictly above h and below 2*h+1 has a positive reflected magnitude at most h.
Use the direct prerequisites add_assoc, add_comm, mul_succ_left, mul_zero_left, zero_add, add_right_cancel as previously established PA formulas.
The proof proceeds by case analysis (2), intermediate claims (3), equality transport (1), certified simplification (2).
Referenced ingredients
Proof neighborhood
Direct dependencies
PA0009 add_assoc PA000F add_comm PA000G mul_succ_left PA000D mul_zero_left PA0001 zero_add PA0012 add_right_cancelDirect dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Alpha-v16 checked-use theorem is independently kernel-checked when replayed; it is not a Stable theorem.
- 0001
intro p - 0002
intro h - 0003
intro r - 0004
intro hp - 0005
intro hrp - 0006
intro hhr - 0007
cases hhr - 0008
cases hrp - 0009
have hrm : r + S x1 = p - 0010
trans S (r + x1) - 0011
apply PA4 - 0012
trans S (x1 + r) - 0013
congr - 0014
apply add_comm - 0015
trans x1 + S r - 0016
symm - 0017
apply PA4 - 0018
exact hrp_witness - 0019
have hsum : (x + S x1) + S h = h + S h - 0020
trans (x + S h) + S x1 - 0021
trans x + (S x1 + S h) - 0022
apply add_assoc - 0023
trans x + (S h + S x1) - 0024
congr - 0025
refl - 0026
apply add_comm - 0027
symm - 0028
apply add_assoc - 0029
trans r + S x1 - 0030
congr - 0031
exact hhr_witness - 0032
refl - 0033
trans p - 0034
exact hrm - 0035
rewrite hp - 0036
simp [mul_succ_left, mul_zero_left, zero_add, add_assoc] - 0037
have hmle : exists d. d + S x1 = h - 0038
exists x - 0039
specialize add_right_cancel (x + S x1) - 0040
specialize add_right_cancel h - 0041
specialize add_right_cancel (S h) - 0042
apply add_right_cancel - 0043
exact hsum - 0044
exists (S x1) - 0045
split - 0046
exists x1 - 0047
simp - 0048
split - 0049
exact hmle - 0050
exact hrm