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 b c t l n r. (~((p) = 1) /\ forall pfa_factor_left_residue_prime pfa_factor_right_residue_prime. (p) = pfa_factor_left_residue_prime * pfa_factor_right_residue_prime -> pfa_factor_left_residue_prime = 1 \/ pfa_factor_right_residue_prime = 1) -> (exists ff_u_ph_pfh_residue_natural ff_v_ph_pfh_residue_natural. ((((exists fs_h_ph_pfh_residue_natural_body_start. fs_h_ph_pfh_residue_natural_body_start + S (0) = S ((S (0)) * ff_v_ph_pfh_residue_natural)) /\ exists fs_q_ph_pfh_residue_natural_body_start. ff_u_ph_pfh_residue_natural = fs_q_ph_pfh_residue_natural_body_start * S ((S (0)) * ff_v_ph_pfh_residue_natural) + (0))) /\ ((((exists fs_h_ph_pfh_residue_natural_body_terminal. fs_h_ph_pfh_residue_natural_body_terminal + S (n) = S ((S (l)) * ff_v_ph_pfh_residue_natural)) /\ exists fs_q_ph_pfh_residue_natural_body_terminal. ff_u_ph_pfh_residue_natural = fs_q_ph_pfh_residue_natural_body_terminal * S ((S (l)) * ff_v_ph_pfh_residue_natural) + (n))) /\ forall ff_i_ph_pfh_residue_natural_body_steps. (exists ph_bound_pfh_residue_natural_body_steps. ph_bound_pfh_residue_natural_body_steps + S ff_i_ph_pfh_residue_natural_body_steps = l) -> exists ff_coefficient_ph_pfh_residue_natural_body_steps ff_previous_ph_pfh_residue_natural_body_steps ff_current_ph_pfh_residue_natural_body_steps. ((((exists fs_h_ph_pfh_residue_natural_body_steps_coefficient. fs_h_ph_pfh_residue_natural_body_steps_coefficient + S (ff_coefficient_ph_pfh_residue_natural_body_steps) = S ((S (ff_i_ph_pfh_residue_natural_body_steps)) * c)) /\ exists fs_q_ph_pfh_residue_natural_body_steps_coefficient. b = fs_q_ph_pfh_residue_natural_body_steps_coefficient * S ((S (ff_i_ph_pfh_residue_natural_body_steps)) * c) + (ff_coefficient_ph_pfh_residue_natural_body_steps))) /\ ((((exists fs_h_ph_pfh_residue_natural_body_steps_before. fs_h_ph_pfh_residue_natural_body_steps_before + S (ff_previous_ph_pfh_residue_natural_body_steps) = S ((S (ff_i_ph_pfh_residue_natural_body_steps)) * ff_v_ph_pfh_residue_natural)) /\ exists fs_q_ph_pfh_residue_natural_body_steps_before. ff_u_ph_pfh_residue_natural = fs_q_ph_pfh_residue_natural_body_steps_before * S ((S (ff_i_ph_pfh_residue_natural_body_steps)) * ff_v_ph_pfh_residue_natural) + (ff_previous_ph_pfh_residue_natural_body_steps))) /\ ((((exists fs_h_ph_pfh_residue_natural_body_steps_after. fs_h_ph_pfh_residue_natural_body_steps_after + S (ff_current_ph_pfh_residue_natural_body_steps) = S ((S (S ff_i_ph_pfh_residue_natural_body_steps)) * ff_v_ph_pfh_residue_natural)) /\ exists fs_q_ph_pfh_residue_natural_body_steps_after. ff_u_ph_pfh_residue_natural = fs_q_ph_pfh_residue_natural_body_steps_after * S ((S (S ff_i_ph_pfh_residue_natural_body_steps)) * ff_v_ph_pfh_residue_natural) + (ff_current_ph_pfh_residue_natural_body_steps))) /\ ff_current_ph_pfh_residue_natural_body_steps = ff_previous_ph_pfh_residue_natural_body_steps * t + ff_coefficient_ph_pfh_residue_natural_body_steps)))))) -> (exists pfh_trace_code_residue_execution pfh_trace_scale_residue_execution. (((exists pfa_gap_residue_executiontracebase. pfa_gap_residue_executiontracebase + S (t) = (p)) /\ (((((exists ff_h_pfp_residue_executiontraceinitial. ff_h_pfp_residue_executiontraceinitial + S (0) = S ((S (0)) * pfh_trace_scale_residue_execution)) /\ exists ff_q_pfp_residue_executiontraceinitial. pfh_trace_code_residue_execution = ff_q_pfp_residue_executiontraceinitial * S ((S (0)) * pfh_trace_scale_residue_execution) + (0))) /\ (((((exists ff_h_pfp_residue_executiontraceterminal. ff_h_pfp_residue_executiontraceterminal + S (r) = S ((S (l)) * pfh_trace_scale_residue_execution)) /\ exists ff_q_pfp_residue_executiontraceterminal. pfh_trace_code_residue_execution = ff_q_pfp_residue_executiontraceterminal * S ((S (l)) * pfh_trace_scale_residue_execution) + (r))) /\ ((forall pfh_index_residue_executiontracesteps. (exists pfa_gap_residue_executiontracestepsindex. pfa_gap_residue_executiontracestepsindex + S (pfh_index_residue_executiontracesteps) = (l)) -> (exists pfh_coefficient_residue_executiontracestepsstep pfh_before_residue_executiontracestepsstep pfh_after_residue_executiontracestepsstep pfh_product_residue_executiontracestepsstep. ((((exists ff_h_pfp_residue_executiontracestepsstepcoefficient. ff_h_pfp_residue_executiontracestepsstepcoefficient + S (pfh_coefficient_residue_executiontracestepsstep) = S ((S (pfh_index_residue_executiontracesteps)) * c)) /\ exists ff_q_pfp_residue_executiontracestepsstepcoefficient. b = ff_q_pfp_residue_executiontracestepsstepcoefficient * S ((S (pfh_index_residue_executiontracesteps)) * c) + (pfh_coefficient_residue_executiontracestepsstep))) /\ (((((exists ff_h_pfp_residue_executiontracestepsstepbefore. ff_h_pfp_residue_executiontracestepsstepbefore + S (pfh_before_residue_executiontracestepsstep) = S ((S (pfh_index_residue_executiontracesteps)) * pfh_trace_scale_residue_execution)) /\ exists ff_q_pfp_residue_executiontracestepsstepbefore. pfh_trace_code_residue_execution = ff_q_pfp_residue_executiontracestepsstepbefore * S ((S (pfh_index_residue_executiontracesteps)) * pfh_trace_scale_residue_execution) + (pfh_before_residue_executiontracestepsstep))) /\ (((((exists ff_h_pfp_residue_executiontracestepsstepafter. ff_h_pfp_residue_executiontracestepsstepafter + S (pfh_after_residue_executiontracestepsstep) = S ((S (S (pfh_index_residue_executiontracesteps))) * pfh_trace_scale_residue_execution)) /\ exists ff_q_pfp_residue_executiontracestepsstepafter. pfh_trace_code_residue_execution = ff_q_pfp_residue_executiontracestepsstepafter * S ((S (S (pfh_index_residue_executiontracesteps))) * pfh_trace_scale_residue_execution) + (pfh_after_residue_executiontracestepsstep))) /\ (((((exists pfa_gap_residue_executiontracestepsstepmultiplyleft. pfa_gap_residue_executiontracestepsstepmultiplyleft + S (pfh_before_residue_executiontracestepsstep) = (p)) /\ (((exists pfa_gap_residue_executiontracestepsstepmultiplyright. pfa_gap_residue_executiontracestepsstepmultiplyright + S (t) = (p)) /\ ((((exists pfa_gap_residue_executiontracestepsstepmultiplyresultbound. pfa_gap_residue_executiontracestepsstepmultiplyresultbound + S (pfh_product_residue_executiontracestepsstep) = (p)) /\ ((exists pfa_offset_left_residue_executiontracestepsstepmultiplyresultcongruence pfa_offset_right_residue_executiontracestepsstepmultiplyresultcongruence. ((pfh_before_residue_executiontracestepsstep) * (t)) + (p) * pfa_offset_left_residue_executiontracestepsstepmultiplyresultcongruence = (pfh_product_residue_executiontracestepsstep) + (p) * pfa_offset_right_residue_executiontracestepsstepmultiplyresultcongruence))))))))) /\ ((((exists pfa_gap_residue_executiontracestepsstepaddleft. pfa_gap_residue_executiontracestepsstepaddleft + S (pfh_product_residue_executiontracestepsstep) = (p)) /\ (((exists pfa_gap_residue_executiontracestepsstepaddright. pfa_gap_residue_executiontracestepsstepaddright + S (pfh_coefficient_residue_executiontracestepsstep) = (p)) /\ ((((exists pfa_gap_residue_executiontracestepsstepaddresultbound. pfa_gap_residue_executiontracestepsstepaddresultbound + S (pfh_after_residue_executiontracestepsstep) = (p)) /\ ((exists pfa_offset_left_residue_executiontracestepsstepaddresultcongruence pfa_offset_right_residue_executiontracestepsstepaddresultcongruence. ((pfh_product_residue_executiontracestepsstep) + (pfh_coefficient_residue_executiontracestepsstep)) + (p) * pfa_offset_left_residue_executiontracestepsstepaddresultcongruence = (pfh_after_residue_executiontracestepsstep) + (p) * pfa_offset_right_residue_executiontracestepsstepaddresultcongruence))))))))))))))))))))))))))) -> (((exists pfa_gap_residue_resultbound. pfa_gap_residue_resultbound + S (r) = (p)) /\ ((exists pfa_offset_left_residue_resultcongruence pfa_offset_right_residue_resultcongruence. (n) + (p) * pfa_offset_left_residue_resultcongruence = (r) + (p) * pfa_offset_right_residue_resultcongruence))))Constructive proof overview
Generated structural guide
Actual modular evaluation has exactly the canonical residue of the existing natural T12 Horner value.
The unchanged tactic script uses 3 declared prerequisites and contains 39 exact native proof lines.
Alpha v34 checked-use · first admitted v31 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
PP0027 prime_field_polynomial_horner_normalization_residue PP0006 prime_field_polynomial_normalization_reflexive PP0023 prime_field_polynomial_horner_input_boundsDirect 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 (3)
01Fix variables and assumptionsL1–10
02Establish hboundsL11–19
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime field polynomial horner input bounds.
- L11
have hbounds : Lt(t,p) ∧ BetaPrefixInto(b,c,l,p)Definitions: BetaPrefixIntoLt - L12
specialize prime_field_polynomial_horner_input_bounds (p) - L13
specialize prime_field_polynomial_horner_input_bounds (b) - L14
specialize prime_field_polynomial_horner_input_bounds (c) - L15
specialize prime_field_polynomial_horner_input_bounds (t) - L16
specialize prime_field_polynomial_horner_input_bounds (l) - L17
specialize prime_field_polynomial_horner_input_bounds (r) - L18
apply prime_field_polynomial_horner_input_bounds - L19
exact hr
03Separate the logical casesL20–20
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L20
cases hbounds
04Use earlier factsL21–30
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L21
specialize prime_field_polynomial_horner_normalization_residue (p) - L22
specialize prime_field_polynomial_horner_normalization_residue (b) - L23
specialize prime_field_polynomial_horner_normalization_residue (c) - L24
specialize prime_field_polynomial_horner_normalization_residue (b) - L25
specialize prime_field_polynomial_horner_normalization_residue (c) - L26
specialize prime_field_polynomial_horner_normalization_residue (t) - L27
specialize prime_field_polynomial_horner_normalization_residue (l) - L28
specialize prime_field_polynomial_horner_normalization_residue (n) - L29
specialize prime_field_polynomial_horner_normalization_residue (r) - L30
apply prime_field_polynomial_horner_normalization_residue
05Use earlier factsL31–39
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L31
exact hp - L32
specialize prime_field_polynomial_normalization_reflexive (p) - L33
specialize prime_field_polynomial_normalization_reflexive (b) - L34
specialize prime_field_polynomial_normalization_reflexive (c) - L35
specialize prime_field_polynomial_normalization_reflexive (l) - L36
apply prime_field_polynomial_normalization_reflexive - L37
exact hbounds_right - L38
exact hn - L39
exact hr
Original exact command ledger · 39 lines
- 0001
intro p - 0002
intro b - 0003
intro c - 0004
intro t - 0005
intro l - 0006
intro n - 0007
intro r - 0008
intro hp - 0009
intro hn - 0010
intro hr - 0011
have hbounds : ((exists pfa_gap_residue_base_bound. pfa_gap_residue_base_bound + S (t) = (p)) /\ ((forall fom_index_pfp_residue_coefficients. (exists fom_gap_pfp_residue_coefficients_index_bound. fom_gap_pfp_residue_coefficients_index_bound + S (fom_index_pfp_residue_coefficients) = l) -> exists fom_value_pfp_residue_coefficients. ((((exists fom_beta_height_pfp_residue_coefficients_entry. fom_beta_height_pfp_residue_coefficients_entry + S (fom_value_pfp_residue_coefficients) = S ((S (fom_index_pfp_residue_coefficients)) * c)) /\ exists fom_beta_quotient_pfp_residue_coefficients_entry. b = fom_beta_quotient_pfp_residue_coefficients_entry * S ((S (fom_index_pfp_residue_coefficients)) * c) + (fom_value_pfp_residue_coefficients))) /\ (exists fom_gap_pfp_residue_coefficients_value_bound. fom_gap_pfp_residue_coefficients_value_bound + S (fom_value_pfp_residue_coefficients) = p))))) - 0012
specialize prime_field_polynomial_horner_input_bounds (p) - 0013
specialize prime_field_polynomial_horner_input_bounds (b) - 0014
specialize prime_field_polynomial_horner_input_bounds (c) - 0015
specialize prime_field_polynomial_horner_input_bounds (t) - 0016
specialize prime_field_polynomial_horner_input_bounds (l) - 0017
specialize prime_field_polynomial_horner_input_bounds (r) - 0018
apply prime_field_polynomial_horner_input_bounds - 0019
exact hr - 0020
cases hbounds - 0021
specialize prime_field_polynomial_horner_normalization_residue (p) - 0022
specialize prime_field_polynomial_horner_normalization_residue (b) - 0023
specialize prime_field_polynomial_horner_normalization_residue (c) - 0024
specialize prime_field_polynomial_horner_normalization_residue (b) - 0025
specialize prime_field_polynomial_horner_normalization_residue (c) - 0026
specialize prime_field_polynomial_horner_normalization_residue (t) - 0027
specialize prime_field_polynomial_horner_normalization_residue (l) - 0028
specialize prime_field_polynomial_horner_normalization_residue (n) - 0029
specialize prime_field_polynomial_horner_normalization_residue (r) - 0030
apply prime_field_polynomial_horner_normalization_residue - 0031
exact hp - 0032
specialize prime_field_polynomial_normalization_reflexive (p) - 0033
specialize prime_field_polynomial_normalization_reflexive (b) - 0034
specialize prime_field_polynomial_normalization_reflexive (c) - 0035
specialize prime_field_polynomial_normalization_reflexive (l) - 0036
apply prime_field_polynomial_normalization_reflexive - 0037
exact hbounds_right - 0038
exact hn - 0039
exact hr