FS004G · theorem body

four_square_complement_gap_symmetry

Alpha v34 checked-use · independently kernel and Lean verified; not Stable

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

historical independently replay-verified empty-context experiment; the experiment itself persisted no certificate and granted no release authority; current checked use follows separately sealed proof bundles; no Stable promotion.

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 p r g. g + S r = p -> r + S g = p

Every purple notation token opens its conservative definition. This reading surface never changes the unchanged intuitionistic kernel or confers checked-use authority.

Definitions used by this theorem

In the theorem statement

none

In local proof propositions

none
Exact expanded first-order statement
forall p r g. g + S r = p -> r + S g = p

Proof neighborhood

Direct theorem prerequisites

add_succ_left · Stable closed add_comm · Stable closed

Direct theorem dependents

Definition-aware tactic body

Only propositions whose conservative expansion has been checked for exact first-order equivalence are compacted. Every changed line retains its immutable exact replay command.

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.

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

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