Exact expanded PA statement
forall c u v r. c * u = c * v + r -> exists w. r = c * wStructural proof guide
Generated structural guide
A common-factor difference is itself a multiple of that factor.
Use the direct prerequisites zero_add, add_eq_zero_right, add_right_cancel, add_assoc, add_comm as previously established PA formulas.
The proof proceeds by structural induction (2), intermediate claims (2), equality transport (7).
Referenced ingredients
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Stable checked-use theorem is independently kernel-checked when replayed.
- 0001
intro c - 0002
induction u - 0003
intro v - 0004
intro r - 0005
intro h - 0006
rewrite PA5 at h - 0007
have hr : r = 0 - 0008
apply add_eq_zero_right - 0009
symm - 0010
exact h - 0011
exists 0 - 0012
rewrite hr - 0013
rewrite PA5 - 0014
refl - 0015
intro v - 0016
induction v - 0017
intro r - 0018
intro h - 0019
exists S u - 0020
rewrite PA5 at h - 0021
specialize zero_add r - 0022
rewrite zero_add at h - 0023
symm - 0024
exact h - 0025
intro r - 0026
intro h - 0027
have hred : c * u = c * v + r - 0028
specialize add_right_cancel (c * u) - 0029
specialize add_right_cancel (c * v + r) - 0030
specialize add_right_cancel c - 0031
apply add_right_cancel - 0032
rewrite PA6 at h - 0033
rewrite PA6 at h - 0034
trans (c * v + c) + r - 0035
exact h - 0036
trans c * v + (c + r) - 0037
apply add_assoc - 0038
trans c * v + (r + c) - 0039
congr - 0040
refl - 0041
apply add_comm - 0042
symm - 0043
apply add_assoc - 0044
specialize IH v - 0045
specialize IH r - 0046
apply IH - 0047
exact hred