Exact expanded PA statement
forall a m. (forall d. (exists x. a = d * x) -> (exists y. m = d * y) -> d = 1) -> exists xp xn u v. a * xp + m * u = (1 + a * xn) + m * vStructural proof guide
Generated structural guide
Balanced Bezout coefficients give a subtraction-free modular inverse.
Use the direct prerequisites coprime_balanced_bezout, add_assoc as previously established PA formulas.
The proof proceeds by case analysis (4), intermediate claims (1).
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 a - 0002
intro m - 0003
intro hcop - 0004
have hbez : exists xp yp xn yn. a * xp + m * yp = 1 + (a * xn + m * yn) - 0005
specialize coprime_balanced_bezout a - 0006
specialize coprime_balanced_bezout m - 0007
apply coprime_balanced_bezout - 0008
exact hcop - 0009
cases hbez - 0010
cases hbez_witness - 0011
cases hbez_witness_witness - 0012
cases hbez_witness_witness_witness - 0013
exists x - 0014
exists x2 - 0015
exists x1 - 0016
exists x3 - 0017
trans 1 + (a * x2 + m * x3) - 0018
exact hbez_witness_witness_witness_witness - 0019
symm - 0020
apply add_assoc