PG0040

prime_field_polynomial_aligned_add_commutative

Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Actual aligned addition commutes by swapping its real common representatives and the checked coefficient addition.

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 ab ac L bb bc M rb rc N. (((forall fom_index_pfp_aligned_comm_old_left_bounded. (exists fom_gap_pfp_aligned_comm_old_left_bounded_index_bound. fom_gap_pfp_aligned_comm_old_left_bounded_index_bound + S (fom_index_pfp_aligned_comm_old_left_bounded) = L) -> exists fom_value_pfp_aligned_comm_old_left_bounded. ((((exists fom_beta_height_pfp_aligned_comm_old_left_bounded_entry. fom_beta_height_pfp_aligned_comm_old_left_bounded_entry + S (fom_value_pfp_aligned_comm_old_left_bounded) = S ((S (fom_index_pfp_aligned_comm_old_left_bounded)) * ac)) /\ exists fom_beta_quotient_pfp_aligned_comm_old_left_bounded_entry. ab = fom_beta_quotient_pfp_aligned_comm_old_left_bounded_entry * S ((S (fom_index_pfp_aligned_comm_old_left_bounded)) * ac) + (fom_value_pfp_aligned_comm_old_left_bounded))) /\ (exists fom_gap_pfp_aligned_comm_old_left_bounded_value_bound. fom_gap_pfp_aligned_comm_old_left_bounded_value_bound + S (fom_value_pfp_aligned_comm_old_left_bounded) = p))) /\ (((forall fom_index_pfp_aligned_comm_old_right_bounded. (exists fom_gap_pfp_aligned_comm_old_right_bounded_index_bound. fom_gap_pfp_aligned_comm_old_right_bounded_index_bound + S (fom_index_pfp_aligned_comm_old_right_bounded) = M) -> exists fom_value_pfp_aligned_comm_old_right_bounded. ((((exists fom_beta_height_pfp_aligned_comm_old_right_bounded_entry. fom_beta_height_pfp_aligned_comm_old_right_bounded_entry + S (fom_value_pfp_aligned_comm_old_right_bounded) = S ((S (fom_index_pfp_aligned_comm_old_right_bounded)) * bc)) /\ exists fom_beta_quotient_pfp_aligned_comm_old_right_bounded_entry. bb = fom_beta_quotient_pfp_aligned_comm_old_right_bounded_entry * S ((S (fom_index_pfp_aligned_comm_old_right_bounded)) * bc) + (fom_value_pfp_aligned_comm_old_right_bounded))) /\ (exists fom_gap_pfp_aligned_comm_old_right_bounded_value_bound. fom_gap_pfp_aligned_comm_old_right_bounded_value_bound + S (fom_value_pfp_aligned_comm_old_right_bounded) = p))) /\ (((forall fom_index_pfp_aligned_comm_old_result_bounded. (exists fom_gap_pfp_aligned_comm_old_result_bounded_index_bound. fom_gap_pfp_aligned_comm_old_result_bounded_index_bound + S (fom_index_pfp_aligned_comm_old_result_bounded) = N) -> exists fom_value_pfp_aligned_comm_old_result_bounded. ((((exists fom_beta_height_pfp_aligned_comm_old_result_bounded_entry. fom_beta_height_pfp_aligned_comm_old_result_bounded_entry + S (fom_value_pfp_aligned_comm_old_result_bounded) = S ((S (fom_index_pfp_aligned_comm_old_result_bounded)) * rc)) /\ exists fom_beta_quotient_pfp_aligned_comm_old_result_bounded_entry. rb = fom_beta_quotient_pfp_aligned_comm_old_result_bounded_entry * S ((S (fom_index_pfp_aligned_comm_old_result_bounded)) * rc) + (fom_value_pfp_aligned_comm_old_result_bounded))) /\ (exists fom_gap_pfp_aligned_comm_old_result_bounded_value_bound. fom_gap_pfp_aligned_comm_old_result_bounded_value_bound + S (fom_value_pfp_aligned_comm_old_result_bounded) = p))) /\ ((exists pfaa_left_b_aligned_comm_old pfaa_left_c_aligned_comm_old pfaa_right_b_aligned_comm_old pfaa_right_c_aligned_comm_old pfaa_sum_b_aligned_comm_old pfaa_sum_c_aligned_comm_old pfaa_length_aligned_comm_old. ((((forall pfrep_power_aligned_comm_old_witness_common_left pfrep_left_aligned_comm_old_witness_common_left pfrep_right_aligned_comm_old_witness_common_left. ((exists pfrep_position_aligned_comm_old_witness_common_leftfirst. ((pfrep_position_aligned_comm_old_witness_common_leftfirst+S (pfrep_power_aligned_comm_old_witness_common_left)=(L)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_common_leftfirstentry. ff_h_pfp_aligned_comm_old_witness_common_leftfirstentry + S (pfrep_left_aligned_comm_old_witness_common_left) = S ((S (pfrep_position_aligned_comm_old_witness_common_leftfirst)) * ac)) /\ exists ff_q_pfp_aligned_comm_old_witness_common_leftfirstentry. ab = ff_q_pfp_aligned_comm_old_witness_common_leftfirstentry * S ((S (pfrep_position_aligned_comm_old_witness_common_leftfirst)) * ac) + (pfrep_left_aligned_comm_old_witness_common_left)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_common_leftfirstoutside. pfrep_gap_aligned_comm_old_witness_common_leftfirstoutside+(L)=(pfrep_power_aligned_comm_old_witness_common_left)) /\ (((pfrep_left_aligned_comm_old_witness_common_left)=0))))) -> ((exists pfrep_position_aligned_comm_old_witness_common_leftsecond. ((pfrep_position_aligned_comm_old_witness_common_leftsecond+S (pfrep_power_aligned_comm_old_witness_common_left)=(pfaa_length_aligned_comm_old)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_common_leftsecondentry. ff_h_pfp_aligned_comm_old_witness_common_leftsecondentry + S (pfrep_right_aligned_comm_old_witness_common_left) = S ((S (pfrep_position_aligned_comm_old_witness_common_leftsecond)) * pfaa_left_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_common_leftsecondentry. pfaa_left_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_common_leftsecondentry * S ((S (pfrep_position_aligned_comm_old_witness_common_leftsecond)) * pfaa_left_c_aligned_comm_old) + (pfrep_right_aligned_comm_old_witness_common_left)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_common_leftsecondoutside. pfrep_gap_aligned_comm_old_witness_common_leftsecondoutside+(pfaa_length_aligned_comm_old)=(pfrep_power_aligned_comm_old_witness_common_left)) /\ (((pfrep_right_aligned_comm_old_witness_common_left)=0))))) -> pfrep_left_aligned_comm_old_witness_common_left=pfrep_right_aligned_comm_old_witness_common_left) /\ ((forall pfrep_power_aligned_comm_old_witness_common_right pfrep_left_aligned_comm_old_witness_common_right pfrep_right_aligned_comm_old_witness_common_right. ((exists pfrep_position_aligned_comm_old_witness_common_rightfirst. ((pfrep_position_aligned_comm_old_witness_common_rightfirst+S (pfrep_power_aligned_comm_old_witness_common_right)=(M)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_common_rightfirstentry. ff_h_pfp_aligned_comm_old_witness_common_rightfirstentry + S (pfrep_left_aligned_comm_old_witness_common_right) = S ((S (pfrep_position_aligned_comm_old_witness_common_rightfirst)) * bc)) /\ exists ff_q_pfp_aligned_comm_old_witness_common_rightfirstentry. bb = ff_q_pfp_aligned_comm_old_witness_common_rightfirstentry * S ((S (pfrep_position_aligned_comm_old_witness_common_rightfirst)) * bc) + (pfrep_left_aligned_comm_old_witness_common_right)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_common_rightfirstoutside. pfrep_gap_aligned_comm_old_witness_common_rightfirstoutside+(M)=(pfrep_power_aligned_comm_old_witness_common_right)) /\ (((pfrep_left_aligned_comm_old_witness_common_right)=0))))) -> ((exists pfrep_position_aligned_comm_old_witness_common_rightsecond. ((pfrep_position_aligned_comm_old_witness_common_rightsecond+S (pfrep_power_aligned_comm_old_witness_common_right)=(pfaa_length_aligned_comm_old)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_common_rightsecondentry. ff_h_pfp_aligned_comm_old_witness_common_rightsecondentry + S (pfrep_right_aligned_comm_old_witness_common_right) = S ((S (pfrep_position_aligned_comm_old_witness_common_rightsecond)) * pfaa_right_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_common_rightsecondentry. pfaa_right_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_common_rightsecondentry * S ((S (pfrep_position_aligned_comm_old_witness_common_rightsecond)) * pfaa_right_c_aligned_comm_old) + (pfrep_right_aligned_comm_old_witness_common_right)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_common_rightsecondoutside. pfrep_gap_aligned_comm_old_witness_common_rightsecondoutside+(pfaa_length_aligned_comm_old)=(pfrep_power_aligned_comm_old_witness_common_right)) /\ (((pfrep_right_aligned_comm_old_witness_common_right)=0))))) -> pfrep_left_aligned_comm_old_witness_common_right=pfrep_right_aligned_comm_old_witness_common_right)))) /\ (((forall pfp_index_aligned_comm_old_witness_operation. (exists pfa_gap_aligned_comm_old_witness_operationindex. pfa_gap_aligned_comm_old_witness_operationindex + S (pfp_index_aligned_comm_old_witness_operation) = (pfaa_length_aligned_comm_old)) -> exists pfp_left_aligned_comm_old_witness_operation pfp_right_aligned_comm_old_witness_operation pfp_value_aligned_comm_old_witness_operation. ((((exists ff_h_pfp_aligned_comm_old_witness_operationleft. ff_h_pfp_aligned_comm_old_witness_operationleft + S (pfp_left_aligned_comm_old_witness_operation) = S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_left_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_operationleft. pfaa_left_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_operationleft * S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_left_c_aligned_comm_old) + (pfp_left_aligned_comm_old_witness_operation))) /\ (((((exists ff_h_pfp_aligned_comm_old_witness_operationright. ff_h_pfp_aligned_comm_old_witness_operationright + S (pfp_right_aligned_comm_old_witness_operation) = S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_right_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_operationright. pfaa_right_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_operationright * S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_right_c_aligned_comm_old) + (pfp_right_aligned_comm_old_witness_operation))) /\ (((((exists ff_h_pfp_aligned_comm_old_witness_operationtarget. ff_h_pfp_aligned_comm_old_witness_operationtarget + S (pfp_value_aligned_comm_old_witness_operation) = S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_sum_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_operationtarget. pfaa_sum_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_operationtarget * S ((S (pfp_index_aligned_comm_old_witness_operation)) * pfaa_sum_c_aligned_comm_old) + (pfp_value_aligned_comm_old_witness_operation))) /\ ((((exists pfa_gap_aligned_comm_old_witness_operationoperationleft. pfa_gap_aligned_comm_old_witness_operationoperationleft + S (pfp_left_aligned_comm_old_witness_operation) = (p)) /\ (((exists pfa_gap_aligned_comm_old_witness_operationoperationright. pfa_gap_aligned_comm_old_witness_operationoperationright + S (pfp_right_aligned_comm_old_witness_operation) = (p)) /\ ((((exists pfa_gap_aligned_comm_old_witness_operationoperationresultbound. pfa_gap_aligned_comm_old_witness_operationoperationresultbound + S (pfp_value_aligned_comm_old_witness_operation) = (p)) /\ ((exists pfa_offset_left_aligned_comm_old_witness_operationoperationresultcongruence pfa_offset_right_aligned_comm_old_witness_operationoperationresultcongruence. ((pfp_left_aligned_comm_old_witness_operation) + (pfp_right_aligned_comm_old_witness_operation)) + (p) * pfa_offset_left_aligned_comm_old_witness_operationoperationresultcongruence = (pfp_value_aligned_comm_old_witness_operation) + (p) * pfa_offset_right_aligned_comm_old_witness_operationoperationresultcongruence)))))))))))))))) /\ ((forall pfrep_power_aligned_comm_old_witness_output pfrep_left_aligned_comm_old_witness_output pfrep_right_aligned_comm_old_witness_output. ((exists pfrep_position_aligned_comm_old_witness_outputfirst. ((pfrep_position_aligned_comm_old_witness_outputfirst+S (pfrep_power_aligned_comm_old_witness_output)=(pfaa_length_aligned_comm_old)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_outputfirstentry. ff_h_pfp_aligned_comm_old_witness_outputfirstentry + S (pfrep_left_aligned_comm_old_witness_output) = S ((S (pfrep_position_aligned_comm_old_witness_outputfirst)) * pfaa_sum_c_aligned_comm_old)) /\ exists ff_q_pfp_aligned_comm_old_witness_outputfirstentry. pfaa_sum_b_aligned_comm_old = ff_q_pfp_aligned_comm_old_witness_outputfirstentry * S ((S (pfrep_position_aligned_comm_old_witness_outputfirst)) * pfaa_sum_c_aligned_comm_old) + (pfrep_left_aligned_comm_old_witness_output)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_outputfirstoutside. pfrep_gap_aligned_comm_old_witness_outputfirstoutside+(pfaa_length_aligned_comm_old)=(pfrep_power_aligned_comm_old_witness_output)) /\ (((pfrep_left_aligned_comm_old_witness_output)=0))))) -> ((exists pfrep_position_aligned_comm_old_witness_outputsecond. ((pfrep_position_aligned_comm_old_witness_outputsecond+S (pfrep_power_aligned_comm_old_witness_output)=(N)) /\ ((((exists ff_h_pfp_aligned_comm_old_witness_outputsecondentry. ff_h_pfp_aligned_comm_old_witness_outputsecondentry + S (pfrep_right_aligned_comm_old_witness_output) = S ((S (pfrep_position_aligned_comm_old_witness_outputsecond)) * rc)) /\ exists ff_q_pfp_aligned_comm_old_witness_outputsecondentry. rb = ff_q_pfp_aligned_comm_old_witness_outputsecondentry * S ((S (pfrep_position_aligned_comm_old_witness_outputsecond)) * rc) + (pfrep_right_aligned_comm_old_witness_output)))))) \/ (((exists pfrep_gap_aligned_comm_old_witness_outputsecondoutside. pfrep_gap_aligned_comm_old_witness_outputsecondoutside+(N)=(pfrep_power_aligned_comm_old_witness_output)) /\ (((pfrep_right_aligned_comm_old_witness_output)=0))))) -> pfrep_left_aligned_comm_old_witness_output=pfrep_right_aligned_comm_old_witness_output))))))))))))) -> (((forall fom_index_pfp_aligned_comm_new_left_bounded. (exists fom_gap_pfp_aligned_comm_new_left_bounded_index_bound. fom_gap_pfp_aligned_comm_new_left_bounded_index_bound + S (fom_index_pfp_aligned_comm_new_left_bounded) = M) -> exists fom_value_pfp_aligned_comm_new_left_bounded. ((((exists fom_beta_height_pfp_aligned_comm_new_left_bounded_entry. fom_beta_height_pfp_aligned_comm_new_left_bounded_entry + S (fom_value_pfp_aligned_comm_new_left_bounded) = S ((S (fom_index_pfp_aligned_comm_new_left_bounded)) * bc)) /\ exists fom_beta_quotient_pfp_aligned_comm_new_left_bounded_entry. bb = fom_beta_quotient_pfp_aligned_comm_new_left_bounded_entry * S ((S (fom_index_pfp_aligned_comm_new_left_bounded)) * bc) + (fom_value_pfp_aligned_comm_new_left_bounded))) /\ (exists fom_gap_pfp_aligned_comm_new_left_bounded_value_bound. fom_gap_pfp_aligned_comm_new_left_bounded_value_bound + S (fom_value_pfp_aligned_comm_new_left_bounded) = p))) /\ (((forall fom_index_pfp_aligned_comm_new_right_bounded. (exists fom_gap_pfp_aligned_comm_new_right_bounded_index_bound. fom_gap_pfp_aligned_comm_new_right_bounded_index_bound + S (fom_index_pfp_aligned_comm_new_right_bounded) = L) -> exists fom_value_pfp_aligned_comm_new_right_bounded. ((((exists fom_beta_height_pfp_aligned_comm_new_right_bounded_entry. fom_beta_height_pfp_aligned_comm_new_right_bounded_entry + S (fom_value_pfp_aligned_comm_new_right_bounded) = S ((S (fom_index_pfp_aligned_comm_new_right_bounded)) * ac)) /\ exists fom_beta_quotient_pfp_aligned_comm_new_right_bounded_entry. ab = fom_beta_quotient_pfp_aligned_comm_new_right_bounded_entry * S ((S (fom_index_pfp_aligned_comm_new_right_bounded)) * ac) + (fom_value_pfp_aligned_comm_new_right_bounded))) /\ (exists fom_gap_pfp_aligned_comm_new_right_bounded_value_bound. fom_gap_pfp_aligned_comm_new_right_bounded_value_bound + S (fom_value_pfp_aligned_comm_new_right_bounded) = p))) /\ (((forall fom_index_pfp_aligned_comm_new_result_bounded. (exists fom_gap_pfp_aligned_comm_new_result_bounded_index_bound. fom_gap_pfp_aligned_comm_new_result_bounded_index_bound + S (fom_index_pfp_aligned_comm_new_result_bounded) = N) -> exists fom_value_pfp_aligned_comm_new_result_bounded. ((((exists fom_beta_height_pfp_aligned_comm_new_result_bounded_entry. fom_beta_height_pfp_aligned_comm_new_result_bounded_entry + S (fom_value_pfp_aligned_comm_new_result_bounded) = S ((S (fom_index_pfp_aligned_comm_new_result_bounded)) * rc)) /\ exists fom_beta_quotient_pfp_aligned_comm_new_result_bounded_entry. rb = fom_beta_quotient_pfp_aligned_comm_new_result_bounded_entry * S ((S (fom_index_pfp_aligned_comm_new_result_bounded)) * rc) + (fom_value_pfp_aligned_comm_new_result_bounded))) /\ (exists fom_gap_pfp_aligned_comm_new_result_bounded_value_bound. fom_gap_pfp_aligned_comm_new_result_bounded_value_bound + S (fom_value_pfp_aligned_comm_new_result_bounded) = p))) /\ ((exists pfaa_left_b_aligned_comm_new pfaa_left_c_aligned_comm_new pfaa_right_b_aligned_comm_new pfaa_right_c_aligned_comm_new pfaa_sum_b_aligned_comm_new pfaa_sum_c_aligned_comm_new pfaa_length_aligned_comm_new. ((((forall pfrep_power_aligned_comm_new_witness_common_left pfrep_left_aligned_comm_new_witness_common_left pfrep_right_aligned_comm_new_witness_common_left. ((exists pfrep_position_aligned_comm_new_witness_common_leftfirst. ((pfrep_position_aligned_comm_new_witness_common_leftfirst+S (pfrep_power_aligned_comm_new_witness_common_left)=(M)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_common_leftfirstentry. ff_h_pfp_aligned_comm_new_witness_common_leftfirstentry + S (pfrep_left_aligned_comm_new_witness_common_left) = S ((S (pfrep_position_aligned_comm_new_witness_common_leftfirst)) * bc)) /\ exists ff_q_pfp_aligned_comm_new_witness_common_leftfirstentry. bb = ff_q_pfp_aligned_comm_new_witness_common_leftfirstentry * S ((S (pfrep_position_aligned_comm_new_witness_common_leftfirst)) * bc) + (pfrep_left_aligned_comm_new_witness_common_left)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_common_leftfirstoutside. pfrep_gap_aligned_comm_new_witness_common_leftfirstoutside+(M)=(pfrep_power_aligned_comm_new_witness_common_left)) /\ (((pfrep_left_aligned_comm_new_witness_common_left)=0))))) -> ((exists pfrep_position_aligned_comm_new_witness_common_leftsecond. ((pfrep_position_aligned_comm_new_witness_common_leftsecond+S (pfrep_power_aligned_comm_new_witness_common_left)=(pfaa_length_aligned_comm_new)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_common_leftsecondentry. ff_h_pfp_aligned_comm_new_witness_common_leftsecondentry + S (pfrep_right_aligned_comm_new_witness_common_left) = S ((S (pfrep_position_aligned_comm_new_witness_common_leftsecond)) * pfaa_left_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_common_leftsecondentry. pfaa_left_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_common_leftsecondentry * S ((S (pfrep_position_aligned_comm_new_witness_common_leftsecond)) * pfaa_left_c_aligned_comm_new) + (pfrep_right_aligned_comm_new_witness_common_left)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_common_leftsecondoutside. pfrep_gap_aligned_comm_new_witness_common_leftsecondoutside+(pfaa_length_aligned_comm_new)=(pfrep_power_aligned_comm_new_witness_common_left)) /\ (((pfrep_right_aligned_comm_new_witness_common_left)=0))))) -> pfrep_left_aligned_comm_new_witness_common_left=pfrep_right_aligned_comm_new_witness_common_left) /\ ((forall pfrep_power_aligned_comm_new_witness_common_right pfrep_left_aligned_comm_new_witness_common_right pfrep_right_aligned_comm_new_witness_common_right. ((exists pfrep_position_aligned_comm_new_witness_common_rightfirst. ((pfrep_position_aligned_comm_new_witness_common_rightfirst+S (pfrep_power_aligned_comm_new_witness_common_right)=(L)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_common_rightfirstentry. ff_h_pfp_aligned_comm_new_witness_common_rightfirstentry + S (pfrep_left_aligned_comm_new_witness_common_right) = S ((S (pfrep_position_aligned_comm_new_witness_common_rightfirst)) * ac)) /\ exists ff_q_pfp_aligned_comm_new_witness_common_rightfirstentry. ab = ff_q_pfp_aligned_comm_new_witness_common_rightfirstentry * S ((S (pfrep_position_aligned_comm_new_witness_common_rightfirst)) * ac) + (pfrep_left_aligned_comm_new_witness_common_right)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_common_rightfirstoutside. pfrep_gap_aligned_comm_new_witness_common_rightfirstoutside+(L)=(pfrep_power_aligned_comm_new_witness_common_right)) /\ (((pfrep_left_aligned_comm_new_witness_common_right)=0))))) -> ((exists pfrep_position_aligned_comm_new_witness_common_rightsecond. ((pfrep_position_aligned_comm_new_witness_common_rightsecond+S (pfrep_power_aligned_comm_new_witness_common_right)=(pfaa_length_aligned_comm_new)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_common_rightsecondentry. ff_h_pfp_aligned_comm_new_witness_common_rightsecondentry + S (pfrep_right_aligned_comm_new_witness_common_right) = S ((S (pfrep_position_aligned_comm_new_witness_common_rightsecond)) * pfaa_right_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_common_rightsecondentry. pfaa_right_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_common_rightsecondentry * S ((S (pfrep_position_aligned_comm_new_witness_common_rightsecond)) * pfaa_right_c_aligned_comm_new) + (pfrep_right_aligned_comm_new_witness_common_right)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_common_rightsecondoutside. pfrep_gap_aligned_comm_new_witness_common_rightsecondoutside+(pfaa_length_aligned_comm_new)=(pfrep_power_aligned_comm_new_witness_common_right)) /\ (((pfrep_right_aligned_comm_new_witness_common_right)=0))))) -> pfrep_left_aligned_comm_new_witness_common_right=pfrep_right_aligned_comm_new_witness_common_right)))) /\ (((forall pfp_index_aligned_comm_new_witness_operation. (exists pfa_gap_aligned_comm_new_witness_operationindex. pfa_gap_aligned_comm_new_witness_operationindex + S (pfp_index_aligned_comm_new_witness_operation) = (pfaa_length_aligned_comm_new)) -> exists pfp_left_aligned_comm_new_witness_operation pfp_right_aligned_comm_new_witness_operation pfp_value_aligned_comm_new_witness_operation. ((((exists ff_h_pfp_aligned_comm_new_witness_operationleft. ff_h_pfp_aligned_comm_new_witness_operationleft + S (pfp_left_aligned_comm_new_witness_operation) = S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_left_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_operationleft. pfaa_left_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_operationleft * S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_left_c_aligned_comm_new) + (pfp_left_aligned_comm_new_witness_operation))) /\ (((((exists ff_h_pfp_aligned_comm_new_witness_operationright. ff_h_pfp_aligned_comm_new_witness_operationright + S (pfp_right_aligned_comm_new_witness_operation) = S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_right_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_operationright. pfaa_right_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_operationright * S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_right_c_aligned_comm_new) + (pfp_right_aligned_comm_new_witness_operation))) /\ (((((exists ff_h_pfp_aligned_comm_new_witness_operationtarget. ff_h_pfp_aligned_comm_new_witness_operationtarget + S (pfp_value_aligned_comm_new_witness_operation) = S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_sum_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_operationtarget. pfaa_sum_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_operationtarget * S ((S (pfp_index_aligned_comm_new_witness_operation)) * pfaa_sum_c_aligned_comm_new) + (pfp_value_aligned_comm_new_witness_operation))) /\ ((((exists pfa_gap_aligned_comm_new_witness_operationoperationleft. pfa_gap_aligned_comm_new_witness_operationoperationleft + S (pfp_left_aligned_comm_new_witness_operation) = (p)) /\ (((exists pfa_gap_aligned_comm_new_witness_operationoperationright. pfa_gap_aligned_comm_new_witness_operationoperationright + S (pfp_right_aligned_comm_new_witness_operation) = (p)) /\ ((((exists pfa_gap_aligned_comm_new_witness_operationoperationresultbound. pfa_gap_aligned_comm_new_witness_operationoperationresultbound + S (pfp_value_aligned_comm_new_witness_operation) = (p)) /\ ((exists pfa_offset_left_aligned_comm_new_witness_operationoperationresultcongruence pfa_offset_right_aligned_comm_new_witness_operationoperationresultcongruence. ((pfp_left_aligned_comm_new_witness_operation) + (pfp_right_aligned_comm_new_witness_operation)) + (p) * pfa_offset_left_aligned_comm_new_witness_operationoperationresultcongruence = (pfp_value_aligned_comm_new_witness_operation) + (p) * pfa_offset_right_aligned_comm_new_witness_operationoperationresultcongruence)))))))))))))))) /\ ((forall pfrep_power_aligned_comm_new_witness_output pfrep_left_aligned_comm_new_witness_output pfrep_right_aligned_comm_new_witness_output. ((exists pfrep_position_aligned_comm_new_witness_outputfirst. ((pfrep_position_aligned_comm_new_witness_outputfirst+S (pfrep_power_aligned_comm_new_witness_output)=(pfaa_length_aligned_comm_new)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_outputfirstentry. ff_h_pfp_aligned_comm_new_witness_outputfirstentry + S (pfrep_left_aligned_comm_new_witness_output) = S ((S (pfrep_position_aligned_comm_new_witness_outputfirst)) * pfaa_sum_c_aligned_comm_new)) /\ exists ff_q_pfp_aligned_comm_new_witness_outputfirstentry. pfaa_sum_b_aligned_comm_new = ff_q_pfp_aligned_comm_new_witness_outputfirstentry * S ((S (pfrep_position_aligned_comm_new_witness_outputfirst)) * pfaa_sum_c_aligned_comm_new) + (pfrep_left_aligned_comm_new_witness_output)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_outputfirstoutside. pfrep_gap_aligned_comm_new_witness_outputfirstoutside+(pfaa_length_aligned_comm_new)=(pfrep_power_aligned_comm_new_witness_output)) /\ (((pfrep_left_aligned_comm_new_witness_output)=0))))) -> ((exists pfrep_position_aligned_comm_new_witness_outputsecond. ((pfrep_position_aligned_comm_new_witness_outputsecond+S (pfrep_power_aligned_comm_new_witness_output)=(N)) /\ ((((exists ff_h_pfp_aligned_comm_new_witness_outputsecondentry. ff_h_pfp_aligned_comm_new_witness_outputsecondentry + S (pfrep_right_aligned_comm_new_witness_output) = S ((S (pfrep_position_aligned_comm_new_witness_outputsecond)) * rc)) /\ exists ff_q_pfp_aligned_comm_new_witness_outputsecondentry. rb = ff_q_pfp_aligned_comm_new_witness_outputsecondentry * S ((S (pfrep_position_aligned_comm_new_witness_outputsecond)) * rc) + (pfrep_right_aligned_comm_new_witness_output)))))) \/ (((exists pfrep_gap_aligned_comm_new_witness_outputsecondoutside. pfrep_gap_aligned_comm_new_witness_outputsecondoutside+(N)=(pfrep_power_aligned_comm_new_witness_output)) /\ (((pfrep_right_aligned_comm_new_witness_output)=0))))) -> pfrep_left_aligned_comm_new_witness_output=pfrep_right_aligned_comm_new_witness_output)))))))))))))

Constructive proof overview

Generated structural guide

Actual aligned addition commutes by swapping its real common representatives and the checked coefficient addition.

The unchanged tactic script uses 3 declared prerequisites and contains 68 exact native proof lines.

Alpha v34 checked-use · first admitted v34 · independently kernel and Lean verified; not Stable

Proof neighborhood

Direct dependencies

PG003C prime_field_polynomial_aligned_add_from_common PG003B prime_field_polynomial_common_representatives_symmetric prime_field_polynomial_add_commutative Alpha theorem; checked-use authorized

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

68 script commands · 9 reading checkpoints · 0 local claims

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 (2)
01Fix variables and assumptionsL1–10

Work with arbitrary variables or the premises of the current implication.

  1. L1
    intro p
  2. L2
    intro ab
  3. L3
    intro ac
  4. L4
    intro L
  5. L5
    intro bb
  6. L6
    intro bc
  7. L7
    intro M
  8. L8
    intro rb
  9. L9
    intro rc
  10. L10
    intro N
02Fix variables and assumptionsL11–11

Work with arbitrary variables or the premises of the current implication.

  1. L11
    intro h
03Separate the logical casesL12–21

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L12
    cases h
  2. L13
    cases h_right
  3. L14
    cases h_right_right
  4. L15
    cases h_right_right_right
  5. L16
    cases h_right_right_right_witness
  6. L17
    cases h_right_right_right_witness_witness
  7. L18
    cases h_right_right_right_witness_witness_witness
  8. L19
    cases h_right_right_right_witness_witness_witness_witness
  9. L20
    cases h_right_right_right_witness_witness_witness_witness_witness
  10. L21
    cases h_right_right_right_witness_witness_witness_witness_witness_witness
04Separate the logical casesL22–23

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L22
    cases h_right_right_right_witness_witness_witness_witness_witness_witness_witness
  2. L23
    cases h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right
05Use earlier factsL24–33

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L24
    specialize prime_field_polynomial_aligned_add_from_common (p)
  2. L25
    specialize prime_field_polynomial_aligned_add_from_common (bb)
  3. L26
    specialize prime_field_polynomial_aligned_add_from_common (bc)
  4. L27
    specialize prime_field_polynomial_aligned_add_from_common (M)
  5. L28
    specialize prime_field_polynomial_aligned_add_from_common (ab)
  6. L29
    specialize prime_field_polynomial_aligned_add_from_common (ac)
  7. L30
    specialize prime_field_polynomial_aligned_add_from_common (L)
  8. L31
    specialize prime_field_polynomial_aligned_add_from_common (rb)
  9. L32
    specialize prime_field_polynomial_aligned_add_from_common (rc)
  10. L33
    specialize prime_field_polynomial_aligned_add_from_common (N)
06Use earlier factsL34–43

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L34
    specialize prime_field_polynomial_aligned_add_from_common (x2)
  2. L35
    specialize prime_field_polynomial_aligned_add_from_common (x3)
  3. L36
    specialize prime_field_polynomial_aligned_add_from_common (x)
  4. L37
    specialize prime_field_polynomial_aligned_add_from_common (x1)
  5. L38
    specialize prime_field_polynomial_aligned_add_from_common (x4)
  6. L39
    specialize prime_field_polynomial_aligned_add_from_common (x5)
  7. L40
    specialize prime_field_polynomial_aligned_add_from_common (x6)
  8. L41
    apply prime_field_polynomial_aligned_add_from_common
  9. L42
    exact h_right_left
  10. L43
    exact h_left
07Use earlier factsL44–53

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L44
    exact h_right_right_left
  2. L45
    specialize prime_field_polynomial_common_representatives_symmetric (ab)
  3. L46
    specialize prime_field_polynomial_common_representatives_symmetric (ac)
  4. L47
    specialize prime_field_polynomial_common_representatives_symmetric (L)
  5. L48
    specialize prime_field_polynomial_common_representatives_symmetric (bb)
  6. L49
    specialize prime_field_polynomial_common_representatives_symmetric (bc)
  7. L50
    specialize prime_field_polynomial_common_representatives_symmetric (M)
  8. L51
    specialize prime_field_polynomial_common_representatives_symmetric (x)
  9. L52
    specialize prime_field_polynomial_common_representatives_symmetric (x1)
  10. L53
    specialize prime_field_polynomial_common_representatives_symmetric (x2)
08Use earlier factsL54–63

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L54
    specialize prime_field_polynomial_common_representatives_symmetric (x3)
  2. L55
    specialize prime_field_polynomial_common_representatives_symmetric (x6)
  3. L56
    apply prime_field_polynomial_common_representatives_symmetric
  4. L57
    exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_left
  5. L58
    specialize prime_field_polynomial_add_commutative (p)
  6. L59
    specialize prime_field_polynomial_add_commutative (x)
  7. L60
    specialize prime_field_polynomial_add_commutative (x1)
  8. L61
    specialize prime_field_polynomial_add_commutative (x2)
  9. L62
    specialize prime_field_polynomial_add_commutative (x3)
  10. L63
    specialize prime_field_polynomial_add_commutative (x4)
09Use earlier factsL64–68

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L64
    specialize prime_field_polynomial_add_commutative (x5)
  2. L65
    specialize prime_field_polynomial_add_commutative (x6)
  3. L66
    apply prime_field_polynomial_add_commutative
  4. L67
    exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right_left
  5. L68
    exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right_right

Library-wide reading audit

Original exact command ledger · 68 lines
  1. 0001intro p
  2. 0002intro ab
  3. 0003intro ac
  4. 0004intro L
  5. 0005intro bb
  6. 0006intro bc
  7. 0007intro M
  8. 0008intro rb
  9. 0009intro rc
  10. 0010intro N
  11. 0011intro h
  12. 0012cases h
  13. 0013cases h_right
  14. 0014cases h_right_right
  15. 0015cases h_right_right_right
  16. 0016cases h_right_right_right_witness
  17. 0017cases h_right_right_right_witness_witness
  18. 0018cases h_right_right_right_witness_witness_witness
  19. 0019cases h_right_right_right_witness_witness_witness_witness
  20. 0020cases h_right_right_right_witness_witness_witness_witness_witness
  21. 0021cases h_right_right_right_witness_witness_witness_witness_witness_witness
  22. 0022cases h_right_right_right_witness_witness_witness_witness_witness_witness_witness
  23. 0023cases h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right
  24. 0024specialize prime_field_polynomial_aligned_add_from_common (p)
  25. 0025specialize prime_field_polynomial_aligned_add_from_common (bb)
  26. 0026specialize prime_field_polynomial_aligned_add_from_common (bc)
  27. 0027specialize prime_field_polynomial_aligned_add_from_common (M)
  28. 0028specialize prime_field_polynomial_aligned_add_from_common (ab)
  29. 0029specialize prime_field_polynomial_aligned_add_from_common (ac)
  30. 0030specialize prime_field_polynomial_aligned_add_from_common (L)
  31. 0031specialize prime_field_polynomial_aligned_add_from_common (rb)
  32. 0032specialize prime_field_polynomial_aligned_add_from_common (rc)
  33. 0033specialize prime_field_polynomial_aligned_add_from_common (N)
  34. 0034specialize prime_field_polynomial_aligned_add_from_common (x2)
  35. 0035specialize prime_field_polynomial_aligned_add_from_common (x3)
  36. 0036specialize prime_field_polynomial_aligned_add_from_common (x)
  37. 0037specialize prime_field_polynomial_aligned_add_from_common (x1)
  38. 0038specialize prime_field_polynomial_aligned_add_from_common (x4)
  39. 0039specialize prime_field_polynomial_aligned_add_from_common (x5)
  40. 0040specialize prime_field_polynomial_aligned_add_from_common (x6)
  41. 0041apply prime_field_polynomial_aligned_add_from_common
  42. 0042exact h_right_left
  43. 0043exact h_left
  44. 0044exact h_right_right_left
  45. 0045specialize prime_field_polynomial_common_representatives_symmetric (ab)
  46. 0046specialize prime_field_polynomial_common_representatives_symmetric (ac)
  47. 0047specialize prime_field_polynomial_common_representatives_symmetric (L)
  48. 0048specialize prime_field_polynomial_common_representatives_symmetric (bb)
  49. 0049specialize prime_field_polynomial_common_representatives_symmetric (bc)
  50. 0050specialize prime_field_polynomial_common_representatives_symmetric (M)
  51. 0051specialize prime_field_polynomial_common_representatives_symmetric (x)
  52. 0052specialize prime_field_polynomial_common_representatives_symmetric (x1)
  53. 0053specialize prime_field_polynomial_common_representatives_symmetric (x2)
  54. 0054specialize prime_field_polynomial_common_representatives_symmetric (x3)
  55. 0055specialize prime_field_polynomial_common_representatives_symmetric (x6)
  56. 0056apply prime_field_polynomial_common_representatives_symmetric
  57. 0057exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_left
  58. 0058specialize prime_field_polynomial_add_commutative (p)
  59. 0059specialize prime_field_polynomial_add_commutative (x)
  60. 0060specialize prime_field_polynomial_add_commutative (x1)
  61. 0061specialize prime_field_polynomial_add_commutative (x2)
  62. 0062specialize prime_field_polynomial_add_commutative (x3)
  63. 0063specialize prime_field_polynomial_add_commutative (x4)
  64. 0064specialize prime_field_polynomial_add_commutative (x5)
  65. 0065specialize prime_field_polynomial_add_commutative (x6)
  66. 0066apply prime_field_polynomial_add_commutative
  67. 0067exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right_left
  68. 0068exact h_right_right_right_witness_witness_witness_witness_witness_witness_witness_right_right