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 expanded first-order arithmetic statement
forall p i. (~((p) = 1) /\ forall pfa_factor_left_addgrid_domain pfa_factor_right_addgrid_domain. (p) = pfa_factor_left_addgrid_domain * pfa_factor_right_addgrid_domain -> pfa_factor_left_addgrid_domain = 1 \/ pfa_factor_right_addgrid_domain = 1) -> (exists pfa_gap_addgrid_bound. pfa_gap_addgrid_bound + S (i) = (p*p)) -> exists v. (exists pft_row_addgrid_result pft_column_addgrid_result. (((i) = pft_row_addgrid_result * (p) + pft_column_addgrid_result) /\ ((((exists pfa_gap_addgrid_resultoperationleft. pfa_gap_addgrid_resultoperationleft + S (pft_row_addgrid_result) = (p)) /\ (((exists pfa_gap_addgrid_resultoperationright. pfa_gap_addgrid_resultoperationright + S (pft_column_addgrid_result) = (p)) /\ ((((exists pfa_gap_addgrid_resultoperationresultbound. pfa_gap_addgrid_resultoperationresultbound + S (v) = (p)) /\ ((exists pfa_offset_left_addgrid_resultoperationresultcongruence pfa_offset_right_addgrid_resultoperationresultcongruence. ((pft_row_addgrid_result) + (pft_column_addgrid_result)) + (p) * pfa_offset_left_addgrid_resultoperationresultcongruence = (v) + (p) * pfa_offset_right_addgrid_resultoperationresultcongruence))))))))))))Constructive proof overview
Generated structural guide
Construct the actual bounded add value at every one of the p*p row-major indices.
The unchanged tactic script uses 5 declared prerequisites and contains 42 exact native proof lines.
Alpha v34 checked-use · first admitted v31 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
division_remainder_exists Stable theorem; checked-use authorized prime_nonzero Stable theorem; checked-use authorized matrix_recursive_quotient_row_bound Alpha theorem; checked-use authorized FP0008 prime_field_add_exists mul_comm Stable theorem; checked-use authorizedDirect 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
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 (1)
01Fix variables and assumptionsL1–4
02Establish hdL5–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply division remainder exists.
- L5
have hd : exists a b. i = p * a + b /\ (exists pfa_gap_addgrid_division. pfa_gap_addgrid_division + S (b) = (p)) - L6
specialize division_remainder_exists (p) - L7
specialize division_remainder_exists (i) - L8
apply division_remainder_exists - L9
intro hz - L10
specialize prime_nonzero (p) - L11
apply prime_nonzero - L12
exact hp - L13
exact hz
03Separate the logical casesL14–16
04Establish hxL17–24
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply matrix recursive quotient row bound.
- L17
have hx : exists pfa_gap_addgrid_row. pfa_gap_addgrid_row + S (x) = (p) - L18
specialize matrix_recursive_quotient_row_bound (p) - L19
specialize matrix_recursive_quotient_row_bound (i) - L20
specialize matrix_recursive_quotient_row_bound (x) - L21
specialize matrix_recursive_quotient_row_bound (x1) - L22
apply matrix_recursive_quotient_row_bound - L23
exact hd_witness_witness_left - L24
exact hi
05Establish hvL25–32
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime field add exists.
- L25
have hv : exists v. (((exists pfa_gap_addgrid_operationleft. pfa_gap_addgrid_operationleft + S (x) = (p)) /\ (((exists pfa_gap_addgrid_operationright. pfa_gap_addgrid_operationright + S (x1) = (p)) /\ ((((exists pfa_gap_addgrid_operationresultbound. pfa_gap_addgrid_operationresultbound + S (v) = (p)) /\ ((exists pfa_offset_left_addgrid_operationresultcongruence pfa_offset_right_addgrid_operationresultcongruence. ((x) + (x1)) + (p) * pfa_offset_left_addgrid_operationresultcongruence = (v) + (p) * pfa_offset_right_addgrid_operationresultcongruence))))))))) - L26
specialize prime_field_add_exists (p) - L27
specialize prime_field_add_exists (x) - L28
specialize prime_field_add_exists (x1) - L29
apply prime_field_add_exists - L30
exact hp - L31
exact hx - L32
exact hd_witness_witness_right
06Separate the logical casesL33–33
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L33
cases hv
07Construct an explicit witnessL34–36
08Separate the logical casesL37–37
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L37
split
09Use earlier factsL38–39
10Calculate and transport equalitiesL40–40
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L40
rewrite mul_comm at hd_witness_witness_left
Original exact command ledger · 42 lines
- 0001
intro p - 0002
intro i - 0003
intro hp - 0004
intro hi - 0005
have hd : exists a b. i = p * a + b /\ (exists pfa_gap_addgrid_division. pfa_gap_addgrid_division + S (b) = (p)) - 0006
specialize division_remainder_exists (p) - 0007
specialize division_remainder_exists (i) - 0008
apply division_remainder_exists - 0009
intro hz - 0010
specialize prime_nonzero (p) - 0011
apply prime_nonzero - 0012
exact hp - 0013
exact hz - 0014
cases hd - 0015
cases hd_witness - 0016
cases hd_witness_witness - 0017
have hx : exists pfa_gap_addgrid_row. pfa_gap_addgrid_row + S (x) = (p) - 0018
specialize matrix_recursive_quotient_row_bound (p) - 0019
specialize matrix_recursive_quotient_row_bound (i) - 0020
specialize matrix_recursive_quotient_row_bound (x) - 0021
specialize matrix_recursive_quotient_row_bound (x1) - 0022
apply matrix_recursive_quotient_row_bound - 0023
exact hd_witness_witness_left - 0024
exact hi - 0025
have hv : exists v. (((exists pfa_gap_addgrid_operationleft. pfa_gap_addgrid_operationleft + S (x) = (p)) /\ (((exists pfa_gap_addgrid_operationright. pfa_gap_addgrid_operationright + S (x1) = (p)) /\ ((((exists pfa_gap_addgrid_operationresultbound. pfa_gap_addgrid_operationresultbound + S (v) = (p)) /\ ((exists pfa_offset_left_addgrid_operationresultcongruence pfa_offset_right_addgrid_operationresultcongruence. ((x) + (x1)) + (p) * pfa_offset_left_addgrid_operationresultcongruence = (v) + (p) * pfa_offset_right_addgrid_operationresultcongruence))))))))) - 0026
specialize prime_field_add_exists (p) - 0027
specialize prime_field_add_exists (x) - 0028
specialize prime_field_add_exists (x1) - 0029
apply prime_field_add_exists - 0030
exact hp - 0031
exact hx - 0032
exact hd_witness_witness_right - 0033
cases hv - 0034
exists x2 - 0035
exists x - 0036
exists x1 - 0037
split - 0038
specialize mul_comm p - 0039
specialize mul_comm x - 0040
rewrite mul_comm at hd_witness_witness_left - 0041
exact hd_witness_witness_left - 0042
exact hv_witness