Exact expanded PA statement
forall p a r. (exists wpp_mod_left_eca_qres_transport_mod wpp_mod_right_eca_qres_transport_mod. (a) + p * wpp_mod_left_eca_qres_transport_mod = (r) + p * wpp_mod_right_eca_qres_transport_mod) -> ((((exists qr_x_eca_qres_transport_a. exists qr_u_eca_qres_transport_a qr_v_eca_qres_transport_a. qr_x_eca_qres_transport_a * qr_x_eca_qres_transport_a + p * qr_u_eca_qres_transport_a = a + p * qr_v_eca_qres_transport_a) -> (exists qr_x_eca_qres_transport_r. exists qr_u_eca_qres_transport_r qr_v_eca_qres_transport_r. qr_x_eca_qres_transport_r * qr_x_eca_qres_transport_r + p * qr_u_eca_qres_transport_r = r + p * qr_v_eca_qres_transport_r)) /\ ((exists qr_x_eca_qres_transport_r. exists qr_u_eca_qres_transport_r qr_v_eca_qres_transport_r. qr_x_eca_qres_transport_r * qr_x_eca_qres_transport_r + p * qr_u_eca_qres_transport_r = r + p * qr_v_eca_qres_transport_r) -> (exists qr_x_eca_qres_transport_a. exists qr_u_eca_qres_transport_a qr_v_eca_qres_transport_a. qr_x_eca_qres_transport_a * qr_x_eca_qres_transport_a + p * qr_u_eca_qres_transport_a = a + p * qr_v_eca_qres_transport_a))))Structural proof guide
Generated structural guide
Quadratic residuosity depends only on the balanced congruence class.
Use the direct prerequisites mod_eq_symm, mod_eq_trans as previously established PA formulas.
The proof proceeds by case analysis (2), intermediate claims (1).
Referenced ingredients
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Alpha-v16 checked-use theorem is independently kernel-checked when replayed; it is not a Stable theorem.
- 0001
intro p - 0002
intro a - 0003
intro r - 0004
intro har - 0005
split - 0006
intro hqa - 0007
cases hqa - 0008
exists x - 0009
specialize mod_eq_trans p - 0010
specialize mod_eq_trans (x * x) - 0011
specialize mod_eq_trans a - 0012
specialize mod_eq_trans r - 0013
apply mod_eq_trans - 0014
exact hqa_witness - 0015
exact har - 0016
intro hqr - 0017
cases hqr - 0018
exists x - 0019
have hra : exists wpp_mod_left_eca_qres_proof_reverse wpp_mod_right_eca_qres_proof_reverse. (r) + p * wpp_mod_left_eca_qres_proof_reverse = (a) + p * wpp_mod_right_eca_qres_proof_reverse - 0020
specialize mod_eq_symm p - 0021
specialize mod_eq_symm a - 0022
specialize mod_eq_symm r - 0023
apply mod_eq_symm - 0024
exact har - 0025
specialize mod_eq_trans p - 0026
specialize mod_eq_trans (x * x) - 0027
specialize mod_eq_trans r - 0028
specialize mod_eq_trans a - 0029
apply mod_eq_trans - 0030
exact hqr_witness - 0031
exact hra