FS004G

four_square_complement_gap_symmetry

Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Complement gaps below a modulus are symmetric after swapping the residue and its p-1 complement.

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 first-order arithmetic statement

forall p r g. g + S r = p -> r + S g = p

Constructive proof overview

Generated structural guide

Complement gaps below a modulus are symmetric after swapping the residue and its p-1 complement.

The unchanged tactic script uses 2 declared prerequisites and contains 7 exact native proof lines.

dependency-curried kernel-checked theorem body; Alpha enrollment and checked-use authority follow separately sealed release evidence; Stable membership remains unchanged

Historical empty-context replay experiment only; that experiment persisted no certificate and granted no release authority. Current checked use follows separately sealed, independently verified proof bundles; there is no Stable promotion.

Proof neighborhood

Direct dependencies

add_succ_left Stable theorem; checked-use authorized add_comm Stable theorem; checked-use authorized

Direct dependents

Formal native tactic body

Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. This exact body belongs to a complete independently kernel-checked constructive proof bundle and has Alpha checked-use authority; it does not imply Stable membership.

Read the argument

Proof checkpoints

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

01Fix variables and assumptionsL1–4

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

  1. L1
    intro p
  2. L2
    intro r
  3. L3
    intro g
  4. L4
    intro hgap
02Calculate and transport equalitiesL5–6

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

  1. L5
    trans g + S r
  2. L6
    simp [add_succ_left, add_comm]
03Use earlier factsL7–7

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

  1. L7
    exact hgap

Library-wide reading audit

Original exact command ledger · 7 lines
  1. 0001intro p
  2. 0002intro r
  3. 0003intro g
  4. 0004intro hgap
  5. 0005trans g + S r
  6. 0006simp [add_succ_left, add_comm]
  7. 0007exact hgap