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 this body receipt. The focused endpoint audits separately check the complete empty-context certificates.
- 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