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 n r. (~((p) = 1) /\ forall pfa_factor_left_multiple_residue_domain pfa_factor_right_multiple_residue_domain. (p) = pfa_factor_left_multiple_residue_domain * pfa_factor_right_multiple_residue_domain -> pfa_factor_left_multiple_residue_domain = 1 \/ pfa_factor_right_multiple_residue_domain = 1) -> (exists pff_history_code_multiple_residue_source pff_history_scale_multiple_residue_source. (((((exists ff_h_pft_multiple_residue_sourcehistorystart. ff_h_pft_multiple_residue_sourcehistorystart + S (0) = S ((S (0)) * pff_history_scale_multiple_residue_source)) /\ exists ff_q_pft_multiple_residue_sourcehistorystart. pff_history_code_multiple_residue_source = ff_q_pft_multiple_residue_sourcehistorystart * S ((S (0)) * pff_history_scale_multiple_residue_source) + (0))) /\ (((((exists ff_h_pft_multiple_residue_sourcehistoryterminal. ff_h_pft_multiple_residue_sourcehistoryterminal + S (r) = S ((S (n)) * pff_history_scale_multiple_residue_source)) /\ exists ff_q_pft_multiple_residue_sourcehistoryterminal. pff_history_code_multiple_residue_source = ff_q_pft_multiple_residue_sourcehistoryterminal * S ((S (n)) * pff_history_scale_multiple_residue_source) + (r))) /\ ((forall pff_trace_index_multiple_residue_sourcehistorysteps. (exists pfa_gap_multiple_residue_sourcehistorystepsindex. pfa_gap_multiple_residue_sourcehistorystepsindex + S (pff_trace_index_multiple_residue_sourcehistorysteps) = (n)) -> exists pff_trace_before_multiple_residue_sourcehistorysteps pff_trace_after_multiple_residue_sourcehistorysteps. ((((exists ff_h_pft_multiple_residue_sourcehistorystepsbefore. ff_h_pft_multiple_residue_sourcehistorystepsbefore + S (pff_trace_before_multiple_residue_sourcehistorysteps) = S ((S (pff_trace_index_multiple_residue_sourcehistorysteps)) * pff_history_scale_multiple_residue_source)) /\ exists ff_q_pft_multiple_residue_sourcehistorystepsbefore. pff_history_code_multiple_residue_source = ff_q_pft_multiple_residue_sourcehistorystepsbefore * S ((S (pff_trace_index_multiple_residue_sourcehistorysteps)) * pff_history_scale_multiple_residue_source) + (pff_trace_before_multiple_residue_sourcehistorysteps))) /\ (((((exists ff_h_pft_multiple_residue_sourcehistorystepsafter. ff_h_pft_multiple_residue_sourcehistorystepsafter + S (pff_trace_after_multiple_residue_sourcehistorysteps) = S ((S (S (pff_trace_index_multiple_residue_sourcehistorysteps))) * pff_history_scale_multiple_residue_source)) /\ exists ff_q_pft_multiple_residue_sourcehistorystepsafter. pff_history_code_multiple_residue_source = ff_q_pft_multiple_residue_sourcehistorystepsafter * S ((S (S (pff_trace_index_multiple_residue_sourcehistorysteps))) * pff_history_scale_multiple_residue_source) + (pff_trace_after_multiple_residue_sourcehistorysteps))) /\ ((((exists pfa_gap_multiple_residue_sourcehistorystepsadditionleft. pfa_gap_multiple_residue_sourcehistorystepsadditionleft + S (pff_trace_before_multiple_residue_sourcehistorysteps) = (p)) /\ (((exists pfa_gap_multiple_residue_sourcehistorystepsadditionright. pfa_gap_multiple_residue_sourcehistorystepsadditionright + S (1) = (p)) /\ ((((exists pfa_gap_multiple_residue_sourcehistorystepsadditionresultbound. pfa_gap_multiple_residue_sourcehistorystepsadditionresultbound + S (pff_trace_after_multiple_residue_sourcehistorysteps) = (p)) /\ ((exists pfa_offset_left_multiple_residue_sourcehistorystepsadditionresultcongruence pfa_offset_right_multiple_residue_sourcehistorystepsadditionresultcongruence. ((pff_trace_before_multiple_residue_sourcehistorysteps) + (1)) + (p) * pfa_offset_left_multiple_residue_sourcehistorystepsadditionresultcongruence = (pff_trace_after_multiple_residue_sourcehistorysteps) + (p) * pfa_offset_right_multiple_residue_sourcehistorystepsadditionresultcongruence)))))))))))))))))))) -> (((exists pfa_gap_multiple_residue_resultbound. pfa_gap_multiple_residue_resultbound + S (r) = (p)) /\ ((exists pfa_offset_left_multiple_residue_resultcongruence pfa_offset_right_multiple_residue_resultcongruence. (n) + (p) * pfa_offset_left_multiple_residue_resultcongruence = (r) + (p) * pfa_offset_right_multiple_residue_resultcongruence))))Constructive proof overview
Generated structural guide
An actual repeated sum of n ones has canonical residue n.
The unchanged tactic script uses 1 declared prerequisite and contains 15 exact native proof lines.
Alpha v34 checked-use · first admitted v31 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
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
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–5
02Separate the logical casesL6–7
03Use earlier factsL8–15
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L8
specialize prime_field_unit_trace_residue (p) - L9
specialize prime_field_unit_trace_residue (n) - L10
specialize prime_field_unit_trace_residue (x) - L11
specialize prime_field_unit_trace_residue (x1) - L12
specialize prime_field_unit_trace_residue (r) - L13
apply prime_field_unit_trace_residue - L14
exact hp - L15
exact hm_witness_witness
Original exact command ledger · 15 lines
- 0001
intro p - 0002
intro n - 0003
intro r - 0004
intro hp - 0005
intro hm - 0006
cases hm - 0007
cases hm_witness - 0008
specialize prime_field_unit_trace_residue (p) - 0009
specialize prime_field_unit_trace_residue (n) - 0010
specialize prime_field_unit_trace_residue (x) - 0011
specialize prime_field_unit_trace_residue (x1) - 0012
specialize prime_field_unit_trace_residue (r) - 0013
apply prime_field_unit_trace_residue - 0014
exact hp - 0015
exact hm_witness_witness