PA005P

square_residue_lift

Stable checked-use theorem · independently closed

Lift one quotient-and-remainder equation through squaring.

Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.

Exact expanded PA statement

forall a z q r c s. z = a * q + r -> r * r = a * c + s -> z * z = a * ((q * z + r * q) + c) + s

Structural proof guide

Generated structural guide

Lift one quotient-and-remainder equation through squaring.

Use the direct prerequisites square_decomp, add_residue as previously established PA formulas.

The proof proceeds by direct introduction and elimination.

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.

Read the argument

Proof checkpoints

13 script commands · 3 reading checkpoints · 0 local claims

This is a reading aid, not a new proof or a proof-tree certificate. Checkpoint groups are consecutive commands, not inferred branch boundaries. Every step links to the preserved script.

Named ingredients (2)
01Fix variables and assumptionsL1–8

Work with arbitrary variables or the premises of the current implication.

  1. L1
    intro a
  2. L2
    intro z
  3. L3
    intro q
  4. L4
    intro r
  5. L5
    intro c
  6. L6
    intro s
  7. L7
    intro hz
  8. L8
    intro hrc
02Calculate and transport equalitiesL9–9

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L9
    trans a * (q * z + r * q) + r * r
03Use earlier factsL10–13

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L10
    apply square_decomp
  2. L11
    exact hz
  3. L12
    apply add_residue
  4. L13
    exact hrc

Library-wide reading audit

Original exact command ledger · 13 lines
  1. 0001intro a
  2. 0002intro z
  3. 0003intro q
  4. 0004intro r
  5. 0005intro c
  6. 0006intro s
  7. 0007intro hz
  8. 0008intro hrc
  9. 0009trans a * (q * z + r * q) + r * r
  10. 0010apply square_decomp
  11. 0011exact hz
  12. 0012apply add_residue
  13. 0013exact hrc