PA005Q · theorem

square_residue_witness

Stable checked-use theorem · independently closed

Existential wrapper for the generic square-residue lift.

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.

Statement with defined notation

forall a z q r c s. z = a * q + r -> r * r = a * c + s -> exists w. z * z = a * w + s

Every purple notation token opens its conservative definition. This is a reading surface; the compiler expands the statement before the unchanged kernel checks it.

Definitions used by this theorem

In the theorem statement

none

0 occurrences

In local proof propositions

none

0 occurrences

Exact expanded native-PA statement
forall a z q r c s. z = a * q + r -> r * r = a * c + s -> exists w. z * z = a * w + s

Proof neighborhood

Direct theorem prerequisites

Direct theorem dependents

Definition-aware tactic body

Only local propositions introduced by have or suffices are compacted. The untrusted compiler re-expands each one before the original tactic script is replayed; defined notation is never accepted by the kernel. Open the exact replay line beneath every changed command.

Read the argument

Proof checkpoints

12 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.

Definition notation is shown below. Open the paired exact edition for the original native formulas. Source pairing is not a new equivalence certificate.

Named ingredients (1)
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
02Construct an explicit witnessL9–9

Supply the displayed value, then prove that it has the required property.

  1. L9
    exists (q * z + r * q) + c
03Use earlier factsL10–12

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

  1. L10
    apply square_residue_lift
  2. L11
    exact hz
  3. L12
    exact hrc

Library-wide reading audit

Original defined command ledger · 12 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. 0009exists (q * z + r * q) + c
  10. 0010apply square_residue_lift
  11. 0011exact hz
  12. 0012exact hrc