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 n q s e c. (((exists bcs_sqrt_lower_gap_complement_bridge_floor. bcs_sqrt_lower_gap_complement_bridge_floor + (s) * (s) = (2 * n)) /\ exists bcs_sqrt_upper_gap_complement_bridge_floor. bcs_sqrt_upper_gap_complement_bridge_floor + S (2 * n) = S (s) * S (s))) -> (((exists bcs_lower_gap_complement_bridge_ceil. bcs_lower_gap_complement_bridge_ceil + (s * s) = 6 * (e)) /\ exists bcs_upper_gap_complement_bridge_ceil. bcs_upper_gap_complement_bridge_ceil + S (6 * (e)) = (s * s) + 6)) -> q + c = n -> (exists k. k + 2 * n = 6 * c) -> ((exists bqb_le_gap_complement_bridge_ec. bqb_le_gap_complement_bridge_ec + (e) = (c)) /\ (exists bqb_le_gap_complement_bridge_sum. bqb_le_gap_complement_bridge_sum + (q + e) = (n)))Structural proof guide
Floor-square and ceiling budgets imply e<=c and q+e<=n.
Direct prerequisites: le_trans, ceil_div_six_le_of_upper, add_le_add_left. The authored body proceeds by case analysis (1), intermediate claims (3), equality transport (1).
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are hypotheses of the historical Alpha-v12 body receipt. The complete historical Alpha-v18 proof bundle independently checks every dependency; current Alpha v25 preserves that checked theorem use without changing Stable membership.
Read the argument
Proof checkpoints
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 (3)
01Fix variables and assumptionsL1–9
02Separate the logical casesL10–10
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L10
cases hfloor
03Establish hsquareL11–17
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply le trans.
04Establish hecL18–24
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply ceil div six le of upper.
05Establish hsumL25–30
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply add le add left.
06Separate the logical casesL31–31
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L31
split
07Use earlier factsL32–32
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L32
exact hec
08Calculate and transport equalitiesL33–33
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L33
rewrite <- hcomp
09Use earlier factsL34–34
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L34
exact hsum
Original exact command ledger · 34 lines
- 0001
intro n - 0002
intro q - 0003
intro s - 0004
intro e - 0005
intro c - 0006
intro hfloor - 0007
intro hceil - 0008
intro hcomp - 0009
intro hbudget - 0010
cases hfloor - 0011
have hsquare : exists k. k + s * s = 6 * c - 0012
specialize le_trans (s * s) - 0013
specialize le_trans (2 * n) - 0014
specialize le_trans (6 * c) - 0015
apply le_trans - 0016
exact hfloor_left - 0017
exact hbudget - 0018
have hec : exists k. k + e = c - 0019
specialize ceil_div_six_le_of_upper (s * s) - 0020
specialize ceil_div_six_le_of_upper e - 0021
specialize ceil_div_six_le_of_upper c - 0022
apply ceil_div_six_le_of_upper - 0023
exact hceil - 0024
exact hsquare - 0025
have hsum : exists k. k + (q + e) = q + c - 0026
specialize add_le_add_left e - 0027
specialize add_le_add_left c - 0028
specialize add_le_add_left q - 0029
apply add_le_add_left - 0030
exact hec - 0031
split - 0032
exact hec - 0033
rewrite <- hcomp - 0034
exact hsum