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.
Exact expanded first-order arithmetic statement
forall m p a z. ~(m = 0) -> (exists hpl_gap_bound. hpl_gap_bound + S (a) = (m)) -> (exists hpl_gap_bound. hpl_gap_bound + S (z) = (p * m)) -> (exists hgcrt_mod_left_hpl_mod hgcrt_mod_right_hpl_mod. z + m * hgcrt_mod_left_hpl_mod = a + m * hgcrt_mod_right_hpl_mod) -> exists t. ((exists hpl_gap_bound. hpl_gap_bound + S (t) = (p)) /\ z = a + m * t)Constructive proof overview
Generated structural guide
Every canonical next-modulus element in an old residue class has an actual bounded correction digit.
The unchanged tactic script uses 9 declared prerequisites and contains 60 exact native proof lines.
Alpha v34 checked-use · first admitted v27 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
division_remainder_exists Stable theorem; checked-use authorized canonical_remainder_from_mod Alpha theorem; checked-use authorized le_or_lt Stable theorem; checked-use authorized lt_not_le Stable theorem; checked-use authorized le_trans Stable theorem; checked-use authorized mul_le_mul_left Stable theorem; checked-use authorized le_add_right Stable theorem; checked-use authorized mul_comm Stable theorem; checked-use authorized add_comm Stable theorem; checked-use authorizedDirect 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.
01Fix variables and assumptionsL1–8
02Establish hdivL9–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply division remainder exists.
03Separate the logical casesL14–16
04Establish hrL17–26
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply canonical remainder from mod.
- L17
have hr : x1 = a - L18
specialize canonical_remainder_from_mod m - L19
specialize canonical_remainder_from_mod z - L20
specialize canonical_remainder_from_mod x - L21
specialize canonical_remainder_from_mod x1 - L22
specialize canonical_remainder_from_mod a - L23
apply canonical_remainder_from_mod - L24
exact hdiv_witness_witness_left - L25
exact hdiv_witness_witness_right - L26
exact ha
05Use earlier factsL27–27
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L27
exact hmod
06Establish hboundL28–30
07Separate the logical casesL31–32
08Use earlier factsL33–36
09Establish hprodL37–46
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mul comm.
10Use earlier factsL47–48
11Calculate and transport equalitiesL49–49
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L49
rewrite hdiv_witness_witness_left
12Use earlier factsL50–53
13Construct an explicit witnessL54–54
Supply the displayed value, then prove that it has the required property.
- L54
exists x
14Separate the logical casesL55–55
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L55
split
15Use earlier factsL56–56
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L56
exact hbound
16Calculate and transport equalitiesL57–57
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L57
trans m * x + x1
17Use earlier factsL58–58
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L58
exact hdiv_witness_witness_left
18Calculate and transport equalitiesL59–59
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L59
rewrite hr
19Use earlier factsL60–60
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L60
apply add_comm
Original exact command ledger · 60 lines
- 0001
intro m - 0002
intro p - 0003
intro a - 0004
intro z - 0005
intro hm - 0006
intro ha - 0007
intro hz - 0008
intro hmod - 0009
have hdiv : exists q r. z = m * q + r /\ S r <= m - 0010
specialize division_remainder_exists m - 0011
specialize division_remainder_exists z - 0012
apply division_remainder_exists - 0013
exact hm - 0014
cases hdiv - 0015
cases hdiv_witness - 0016
cases hdiv_witness_witness - 0017
have hr : x1 = a - 0018
specialize canonical_remainder_from_mod m - 0019
specialize canonical_remainder_from_mod z - 0020
specialize canonical_remainder_from_mod x - 0021
specialize canonical_remainder_from_mod x1 - 0022
specialize canonical_remainder_from_mod a - 0023
apply canonical_remainder_from_mod - 0024
exact hdiv_witness_witness_left - 0025
exact hdiv_witness_witness_right - 0026
exact ha - 0027
exact hmod - 0028
have hbound : exists hpl_gap_bound. hpl_gap_bound + S (x) = (p) - 0029
specialize le_or_lt p - 0030
specialize le_or_lt x - 0031
cases le_or_lt - 0032
exfalso - 0033
specialize lt_not_le z - 0034
specialize lt_not_le (p * m) - 0035
apply lt_not_le - 0036
exact hz - 0037
have hprod : p * m = m * p - 0038
apply mul_comm - 0039
rewrite hprod - 0040
specialize le_trans (m * p) - 0041
specialize le_trans (m * x) - 0042
specialize le_trans z - 0043
apply le_trans - 0044
specialize mul_le_mul_left p - 0045
specialize mul_le_mul_left x - 0046
specialize mul_le_mul_left m - 0047
apply mul_le_mul_left - 0048
exact le_or_lt_left - 0049
rewrite hdiv_witness_witness_left - 0050
specialize le_add_right (m * x) - 0051
specialize le_add_right x1 - 0052
apply le_add_right - 0053
exact le_or_lt_right - 0054
exists x - 0055
split - 0056
exact hbound - 0057
trans m * x + x1 - 0058
exact hdiv_witness_witness_left - 0059
rewrite hr - 0060
apply add_comm