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
∀ N. ∀ c. ∀ b. ∀ e. (∀ x. (∃ y. S x + S y = S N) → Dvd(S x,c)) → ∀ x. Le(x,N) → ∃ y. ∃ z. ¬y = 0 ∧ ((∀ n. Lt(n,x) → Dvd(S (S n · c),y)) ∧ ((∀ n. ∀ m. Lt(n,x) → BetaAt(b,e,n,m) → ModEq(S (S n · c),z,m)) ∧ (∀ n. Le(x,n) → Le(n,N) → Coprime(y,S (S n · c)))))Every purple notation token opens its conservative definition. Expanding the displayed statement recovers the exact first-order Peano-arithmetic formula checked by the unchanged kernel.
Definitions used by this theorem
In the theorem statement
10 occurrences
In local proof propositions
18 occurrences
Exact expanded native-PA statement
forall N c b e. (forall t. (exists h. S t + S h = S N) -> exists q. c = S t * q) -> forall k. (exists h. h + k = N) -> exists P z. (~(P = 0) /\ ((forall i. (exists h. h + S i = k) -> exists q. P = S ((S i) * c) * q) /\ ((forall i a. (exists h. h + S i = k) -> ((exists h. h + S a = S ((S i) * e)) /\ exists q. b = q * S ((S i) * e) + a) -> exists u v. z + S ((S i) * c) * u = a + S ((S i) * c) * v) /\ forall j. (exists g. g + k = j) -> (exists h. h + j = N) -> forall d. (exists u. P = d * u) -> (exists v. S ((S j) * c) = d * v) -> d = 1)))Proof neighborhood
Direct theorem prerequisites
BT000C succ_ne_zero BT000L add_eq_zero_right BT002Y coprime_one_left BT000X le_succ_self BT000F le_trans BT005B beta_exclusive_recode_invariant_stepDirect theorem dependents
Definition-aware tactic body
Only local propositions introduced by have or suffices are compacted. Every changed line has an exact-AST conservative-expansion receipt; the kernel still receives the immutable original tactic script.
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 (6)
01Fix variables and assumptionsL1–5
02Induction on kL6–7
03Construct an explicit witnessL8–9
04Separate the logical casesL10–10
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L10
split
05Use earlier factsL11–12
06Separate the logical casesL13–13
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L13
split
07Fix variables and assumptionsL14–15
08Separate the logical casesL16–17
09Establish hsi0L18–25
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply add eq zero right.
10Separate the logical casesL26–26
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L26
split
11Fix variables and assumptionsL27–30
12Separate the logical casesL31–32
13Establish hsi0L33–42
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply add eq zero right.
14Fix variables and assumptionsL43–46
15Use earlier factsL47–51
16Fix variables and assumptionsL52–52
Work with arbitrary variables or the premises of the current implication.
- L52
intro hkN
17Establish hkprevL53–53
Establish this local claim before using it. It is not an additional assumption.
18Establish hkstepL54–62
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply le trans.
19Establish hprevL63–65
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply IH.
- L63
have hprev : ∃ P. ∃ z. ¬P = 0 ∧ ((∀ x. Lt(x,k) → Dvd(S (S x · c),P)) ∧ ((∀ x. ∀ y. Lt(x,k) → BetaAt(b,e,x,y) → ModEq(S (S x · c),z,y)) ∧ (∀ x. Le(k,x) → Le(x,N) → Coprime(P,S (S x · c)))))Definitions: Lt(x,k)Dvd(S (S x · c),P)BetaAt(b,e,x,y)ModEq(S (S x · c),z,y)Le(k,x)Le(x,N)Coprime(P,S (S x · c))Original native command in the exact edition - L64
apply IH - L65
exact hkprev
20Separate the logical casesL66–70
21Establish hnextL71–80
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta exclusive recode invariant step.
- L71
have hnext : ∃ z2. ¬x · S (S k · c) = 0 ∧ ((∀ y. Lt(y,S k) → Dvd(S (S y · c),x · S (S k · c))) ∧ ((∀ y. ∀ z. Lt(y,S k) → BetaAt(b,e,y,z) → ModEq(S (S y · c),z2,z)) ∧ (∀ y. Lt(k,y) → Le(y,N) → Coprime(x · S (S k · c),S (S y · c)))))Definitions: Lt(y,S k)Dvd(S (S y · c),x · S (S k · c))BetaAt(b,e,y,z)ModEq(S (S y · c),z2,z)Lt(k,y)Le(y,N)Coprime(x · S (S k · c),S (S y · c))Original native command in the exact edition - L72
specialize beta_exclusive_recode_invariant_step N - L73
specialize beta_exclusive_recode_invariant_step c - L74
specialize beta_exclusive_recode_invariant_step b - L75
specialize beta_exclusive_recode_invariant_step e - L76
specialize beta_exclusive_recode_invariant_step k - L77
specialize beta_exclusive_recode_invariant_step x - L78
specialize beta_exclusive_recode_invariant_step x1 - L79
apply beta_exclusive_recode_invariant_step - L80
exact hcm
22Use earlier factsL81–85
23Separate the logical casesL86–86
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L86
cases hnext
24Construct an explicit witnessL87–88
25Use earlier factsL89–89
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L89
exact hnext_witness
Original defined command ledger · 89 lines
- 0001
intro N - 0002
intro c - 0003
intro b - 0004
intro e - 0005
intro hcm - 0006
induction k - 0007
intro hkN - 0008
exists 1 - 0009
exists 0 - 0010
split - 0011
specialize succ_ne_zero 0 - 0012
exact succ_ne_zero - 0013
split - 0014
intro i - 0015
intro hi - 0016
exfalso - 0017
cases hi - 0018
have hsi0 : S i = 0 - 0019
specialize add_eq_zero_right x - 0020
specialize add_eq_zero_right (S i) - 0021
apply add_eq_zero_right - 0022
exact hi_witness - 0023
specialize succ_ne_zero i - 0024
apply succ_ne_zero - 0025
exact hsi0 - 0026
split - 0027
intro i - 0028
intro a - 0029
intro hi - 0030
intro hati - 0031
exfalso - 0032
cases hi - 0033
have hsi0 : S i = 0 - 0034
specialize add_eq_zero_right x - 0035
specialize add_eq_zero_right (S i) - 0036
apply add_eq_zero_right - 0037
exact hi_witness - 0038
specialize succ_ne_zero i - 0039
apply succ_ne_zero - 0040
exact hsi0 - 0041
intro j - 0042
intro h0j - 0043
intro hjN - 0044
intro d - 0045
intro h1 - 0046
intro hm - 0047
specialize coprime_one_left (S ((S j) * c)) - 0048
specialize coprime_one_left d - 0049
apply coprime_one_left - 0050
exact h1 - 0051
exact hm - 0052
intro hkN - 0053
have hkprev : Le(k,N)Exact native replay line
have hkprev : exists h. h + k = N - 0054
have hkstep : Le(k,S k)Exact native replay line
have hkstep : exists h. h + k = S k - 0055
specialize le_succ_self k - 0056
exact le_succ_self - 0057
specialize le_trans k - 0058
specialize le_trans (S k) - 0059
specialize le_trans N - 0060
apply le_trans - 0061
exact hkstep - 0062
exact hkN - 0063
have hprev : ∃ P. ∃ z. ¬P = 0 ∧ ((∀ x. Lt(x,k) → Dvd(S (S x · c),P)) ∧ ((∀ x. ∀ y. Lt(x,k) → BetaAt(b,e,x,y) → ModEq(S (S x · c),z,y)) ∧ (∀ x. Le(k,x) → Le(x,N) → Coprime(P,S (S x · c)))))Exact native replay line
have hprev : exists P z. (~(P = 0) /\ ((forall i. (exists h. h + S i = k) -> exists q. P = S ((S i) * c) * q) /\ ((forall i a. (exists h. h + S i = k) -> ((exists h. h + S a = S ((S i) * e)) /\ exists q. b = q * S ((S i) * e) + a) -> exists u v. z + S ((S i) * c) * u = a + S ((S i) * c) * v) /\ forall j. (exists g. g + k = j) -> (exists h. h + j = N) -> forall d. (exists u. P = d * u) -> (exists v. S ((S j) * c) = d * v) -> d = 1))) - 0064
apply IH - 0065
exact hkprev - 0066
cases hprev - 0067
cases hprev_witness - 0068
cases hprev_witness_witness - 0069
cases hprev_witness_witness_right - 0070
cases hprev_witness_witness_right_right - 0071
have hnext : ∃ z2. ¬x · S (S k · c) = 0 ∧ ((∀ y. Lt(y,S k) → Dvd(S (S y · c),x · S (S k · c))) ∧ ((∀ y. ∀ z. Lt(y,S k) → BetaAt(b,e,y,z) → ModEq(S (S y · c),z2,z)) ∧ (∀ y. Lt(k,y) → Le(y,N) → Coprime(x · S (S k · c),S (S y · c)))))Exact native replay line
have hnext : exists z2. (~(x * S ((S k) * c) = 0) /\ ((forall i. (exists h. h + S i = S k) -> exists q. x * S ((S k) * c) = S ((S i) * c) * q) /\ ((forall i a. (exists h. h + S i = S k) -> ((exists h. h + S a = S ((S i) * e)) /\ exists q. b = q * S ((S i) * e) + a) -> exists u v. z2 + S ((S i) * c) * u = a + S ((S i) * c) * v) /\ forall j. (exists g. g + S k = j) -> (exists h. h + j = N) -> forall d. (exists u. x * S ((S k) * c) = d * u) -> (exists v. S ((S j) * c) = d * v) -> d = 1))) - 0072
specialize beta_exclusive_recode_invariant_step N - 0073
specialize beta_exclusive_recode_invariant_step c - 0074
specialize beta_exclusive_recode_invariant_step b - 0075
specialize beta_exclusive_recode_invariant_step e - 0076
specialize beta_exclusive_recode_invariant_step k - 0077
specialize beta_exclusive_recode_invariant_step x - 0078
specialize beta_exclusive_recode_invariant_step x1 - 0079
apply beta_exclusive_recode_invariant_step - 0080
exact hcm - 0081
exact hkN - 0082
exact hprev_witness_witness_left - 0083
exact hprev_witness_witness_right_left - 0084
exact hprev_witness_witness_right_right_left - 0085
exact hprev_witness_witness_right_right_right - 0086
cases hnext - 0087
exists x * S ((S k) * c) - 0088
exists x2 - 0089
exact hnext_witness