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 original first-admission records.
Statement with defined notation
∀ p. ∀ a. ∀ r. ModEq(p,a,r) → (QRes(p,a) → QRes(p,r)) ∧ (QRes(p,r) → QRes(p,a))Every purple notation token opens its conservative definition. This is a reading surface; the compiler expands the statement before the unchanged kernel checks it.
Definitions used by this theorem
In the theorem statement
5 occurrences
In local proof propositions
1 occurrences
Exact expanded native-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))))Proof neighborhood
Direct theorem prerequisites
Direct theorem dependents
Definition-aware tactic body
Only local propositions introduced by have or suffices are compacted. The untrusted compiler re-expands each one before the original tactic script is replayed; defined notation is never accepted by the kernel. Open the exact replay line beneath every changed command.
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 (2)
01Fix variables and assumptionsL1–4
02Separate the logical casesL5–5
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L5
split
03Fix variables and assumptionsL6–6
Work with arbitrary variables or the premises of the current implication.
- L6
intro hqa
04Separate the logical casesL7–7
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L7
cases hqa
05Construct an explicit witnessL8–8
Supply the displayed value, then prove that it has the required property.
- L8
exists x
06Use earlier factsL9–15
07Fix variables and assumptionsL16–16
Work with arbitrary variables or the premises of the current implication.
- L16
intro hqr
08Separate the logical casesL17–17
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L17
cases hqr
09Construct an explicit witnessL18–18
Supply the displayed value, then prove that it has the required property.
- L18
exists x
10Establish hraL19–28
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mod eq symm.
Original defined command ledger · 31 lines
- 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 : ModEq(p,r,a)Exact native replay line
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