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. ∀ k. ∃ z. Choose(n,k,z)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
1 occurrences
In local proof propositions
14 occurrences
Exact expanded native-PA statement
forall n k. exists z. (((exists bcf_lt_gap_bce_result_out_of_range. bcf_lt_gap_bce_result_out_of_range + S (n) = k) /\ z = 0) \/ ((exists bcf_le_gap_bce_result_in_range. bcf_le_gap_bce_result_in_range + (k) = n) /\ (exists bcf_row_code_code_bce_result bcf_row_code_scale_bce_result bcf_row_scale_code_bce_result bcf_row_scale_scale_bce_result bcf_row_code_bce_result bcf_row_scale_bce_result. ((forall bcf_row_index_bce_result_table. (exists bcf_lt_gap_bce_result_table_row_bound. bcf_lt_gap_bce_result_table_row_bound + S (bcf_row_index_bce_result_table) = S (n)) -> exists bcf_row_code_bce_result_table bcf_row_scale_bce_result_table. ((((exists bcf_height_bce_result_table_decoded_row_code. bcf_height_bce_result_table_decoded_row_code + S (bcf_row_code_bce_result_table) = S ((S (bcf_row_index_bce_result_table)) * bcf_row_code_scale_bce_result)) /\ exists bcf_quotient_bce_result_table_decoded_row_code. bcf_row_code_code_bce_result = bcf_quotient_bce_result_table_decoded_row_code * S ((S (bcf_row_index_bce_result_table)) * bcf_row_code_scale_bce_result) + (bcf_row_code_bce_result_table))) /\ ((((exists bcf_height_bce_result_table_decoded_row_scale. bcf_height_bce_result_table_decoded_row_scale + S (bcf_row_scale_bce_result_table) = S ((S (bcf_row_index_bce_result_table)) * bcf_row_scale_scale_bce_result)) /\ exists bcf_quotient_bce_result_table_decoded_row_scale. bcf_row_scale_code_bce_result = bcf_quotient_bce_result_table_decoded_row_scale * S ((S (bcf_row_index_bce_result_table)) * bcf_row_scale_scale_bce_result) + (bcf_row_scale_bce_result_table))) /\ ((bcf_row_index_bce_result_table = 0 /\ (forall bcf_index_bce_result_table_zero_row. (exists bcf_lt_gap_bce_result_table_zero_row_bound. bcf_lt_gap_bce_result_table_zero_row_bound + S (bcf_index_bce_result_table_zero_row) = S (n)) -> exists bcf_value_bce_result_table_zero_row. ((((exists bcf_height_bce_result_table_zero_row_entry. bcf_height_bce_result_table_zero_row_entry + S (bcf_value_bce_result_table_zero_row) = S ((S (bcf_index_bce_result_table_zero_row)) * bcf_row_scale_bce_result_table)) /\ exists bcf_quotient_bce_result_table_zero_row_entry. bcf_row_code_bce_result_table = bcf_quotient_bce_result_table_zero_row_entry * S ((S (bcf_index_bce_result_table_zero_row)) * bcf_row_scale_bce_result_table) + (bcf_value_bce_result_table_zero_row))) /\ ((bcf_index_bce_result_table_zero_row = 0 /\ bcf_value_bce_result_table_zero_row = 1) \/ exists bcf_predecessor_bce_result_table_zero_row. bcf_index_bce_result_table_zero_row = S bcf_predecessor_bce_result_table_zero_row /\ bcf_value_bce_result_table_zero_row = 0)))) \/ exists bcf_predecessor_bce_result_table bcf_previous_code_bce_result_table bcf_previous_scale_bce_result_table. bcf_row_index_bce_result_table = S bcf_predecessor_bce_result_table /\ ((((exists bcf_height_bce_result_table_decoded_previous_code. bcf_height_bce_result_table_decoded_previous_code + S (bcf_previous_code_bce_result_table) = S ((S (bcf_predecessor_bce_result_table)) * bcf_row_code_scale_bce_result)) /\ exists bcf_quotient_bce_result_table_decoded_previous_code. bcf_row_code_code_bce_result = bcf_quotient_bce_result_table_decoded_previous_code * S ((S (bcf_predecessor_bce_result_table)) * bcf_row_code_scale_bce_result) + (bcf_previous_code_bce_result_table))) /\ ((((exists bcf_height_bce_result_table_decoded_previous_scale. bcf_height_bce_result_table_decoded_previous_scale + S (bcf_previous_scale_bce_result_table) = S ((S (bcf_predecessor_bce_result_table)) * bcf_row_scale_scale_bce_result)) /\ exists bcf_quotient_bce_result_table_decoded_previous_scale. bcf_row_scale_code_bce_result = bcf_quotient_bce_result_table_decoded_previous_scale * S ((S (bcf_predecessor_bce_result_table)) * bcf_row_scale_scale_bce_result) + (bcf_previous_scale_bce_result_table))) /\ (forall bcf_index_bce_result_table_row_step. (exists bcf_lt_gap_bce_result_table_row_step_bound. bcf_lt_gap_bce_result_table_row_step_bound + S (bcf_index_bce_result_table_row_step) = S (n)) -> exists bcf_value_bce_result_table_row_step. ((((exists bcf_height_bce_result_table_row_step_entry. bcf_height_bce_result_table_row_step_entry + S (bcf_value_bce_result_table_row_step) = S ((S (bcf_index_bce_result_table_row_step)) * bcf_row_scale_bce_result_table)) /\ exists bcf_quotient_bce_result_table_row_step_entry. bcf_row_code_bce_result_table = bcf_quotient_bce_result_table_row_step_entry * S ((S (bcf_index_bce_result_table_row_step)) * bcf_row_scale_bce_result_table) + (bcf_value_bce_result_table_row_step))) /\ ((bcf_index_bce_result_table_row_step = 0 /\ bcf_value_bce_result_table_row_step = 1) \/ exists bcf_predecessor_bce_result_table_row_step bcf_left_bce_result_table_row_step bcf_right_bce_result_table_row_step. bcf_index_bce_result_table_row_step = S bcf_predecessor_bce_result_table_row_step /\ ((((exists bcf_height_bce_result_table_row_step_previous_left. bcf_height_bce_result_table_row_step_previous_left + S (bcf_left_bce_result_table_row_step) = S ((S (bcf_predecessor_bce_result_table_row_step)) * bcf_previous_scale_bce_result_table)) /\ exists bcf_quotient_bce_result_table_row_step_previous_left. bcf_previous_code_bce_result_table = bcf_quotient_bce_result_table_row_step_previous_left * S ((S (bcf_predecessor_bce_result_table_row_step)) * bcf_previous_scale_bce_result_table) + (bcf_left_bce_result_table_row_step))) /\ ((((exists bcf_height_bce_result_table_row_step_previous_right. bcf_height_bce_result_table_row_step_previous_right + S (bcf_right_bce_result_table_row_step) = S ((S (S (bcf_predecessor_bce_result_table_row_step))) * bcf_previous_scale_bce_result_table)) /\ exists bcf_quotient_bce_result_table_row_step_previous_right. bcf_previous_code_bce_result_table = bcf_quotient_bce_result_table_row_step_previous_right * S ((S (S (bcf_predecessor_bce_result_table_row_step))) * bcf_previous_scale_bce_result_table) + (bcf_right_bce_result_table_row_step))) /\ bcf_value_bce_result_table_row_step = bcf_left_bce_result_table_row_step + bcf_right_bce_result_table_row_step))))))))))) /\ ((((exists bcf_height_bce_result_decoded_row_code. bcf_height_bce_result_decoded_row_code + S (bcf_row_code_bce_result) = S ((S (n)) * bcf_row_code_scale_bce_result)) /\ exists bcf_quotient_bce_result_decoded_row_code. bcf_row_code_code_bce_result = bcf_quotient_bce_result_decoded_row_code * S ((S (n)) * bcf_row_code_scale_bce_result) + (bcf_row_code_bce_result))) /\ ((((exists bcf_height_bce_result_decoded_row_scale. bcf_height_bce_result_decoded_row_scale + S (bcf_row_scale_bce_result) = S ((S (n)) * bcf_row_scale_scale_bce_result)) /\ exists bcf_quotient_bce_result_decoded_row_scale. bcf_row_scale_code_bce_result = bcf_quotient_bce_result_decoded_row_scale * S ((S (n)) * bcf_row_scale_scale_bce_result) + (bcf_row_scale_bce_result))) /\ (((exists bcf_height_bce_result_decoded_value. bcf_height_bce_result_decoded_value + S (z) = S ((S (k)) * bcf_row_scale_bce_result)) /\ exists bcf_quotient_bce_result_decoded_value. bcf_row_code_bce_result = bcf_quotient_bce_result_decoded_value * S ((S (k)) * bcf_row_scale_bce_result) + (z)))))))))Proof neighborhood
Direct theorem prerequisites
Direct 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 (3)
01Fix variables and assumptionsL1–2
02Use earlier factsL3–4
03Separate the logical casesL5–5
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L5
cases le_or_lt
04Establish htableL6–9
Establish this local claim before using it. It is not an additional assumption.
- L6
have htable : ∃ bb. ∃ bc. ∃ sb. ∃ sc. ∀ x. Lt(x,S n) → ∃ y. ∃ z. BetaAt(bb,bc,x,y) ∧ (BetaAt(sb,sc,x,z) ∧ (x = 0 ∧ (∀ m. Lt(m,S n) → ∃ k. BetaAt(y,z,m,k) ∧ (m = 0 ∧ k = 1 ∨ (∃ i. m = S i ∧ k = 0))) ∨ (∃ m. ∃ k. ∃ i. x = S m ∧ (BetaAt(bb,bc,m,k) ∧ (BetaAt(sb,sc,m,i) ∧ (∀ j. Lt(j,S n) → ∃ u. BetaAt(y,z,j,u) ∧ (j = 0 ∧ u = 1 ∨ (∃ v. ∃ w. ∃ x0. j = S v ∧ (BetaAt(k,i,v,w) ∧ (BetaAt(k,i,S v,x0) ∧ u = w + x0))))))))))Definitions: Lt(x,S n)BetaAt(bb,bc,x,y)BetaAt(sb,sc,x,z)Lt(m,S n)BetaAt(y,z,m,k)BetaAt(bb,bc,m,k)BetaAt(sb,sc,m,i)Lt(j,S n)BetaAt(y,z,j,u)BetaAt(k,i,v,w)BetaAt(k,i,S v,x0)Original native command in the exact edition - L7
specialize beta_pascal_table_prefix_exists (S n) - L8
specialize beta_pascal_table_prefix_exists (S n) - L9
exact beta_pascal_table_prefix_exists
05Separate the logical casesL10–13
06Establish hrow_codeL14–18
Establish this local claim before using it. It is not an additional assumption.
- L14
have hrow_code : ∃ b. BetaAt(x,x1,n,b)Definitions: BetaAt(x,x1,n,b)Original native command in the exact edition - L15
specialize beta_at_exists x - L16
specialize beta_at_exists x1 - L17
specialize beta_at_exists n - L18
exact beta_at_exists
07Separate the logical casesL19–19
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L19
cases hrow_code
08Establish hrow_scaleL20–24
Establish this local claim before using it. It is not an additional assumption.
- L20
have hrow_scale : ∃ c. BetaAt(x2,x3,n,c)Definitions: BetaAt(x2,x3,n,c)Original native command in the exact edition - L21
specialize beta_at_exists x2 - L22
specialize beta_at_exists x3 - L23
specialize beta_at_exists n - L24
exact beta_at_exists
09Separate the logical casesL25–25
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L25
cases hrow_scale
10Establish hvalueL26–30
Establish this local claim before using it. It is not an additional assumption.
- L26
have hvalue : ∃ z. BetaAt(x4,x5,k,z)Definitions: BetaAt(x4,x5,k,z)Original native command in the exact edition - L27
specialize beta_at_exists x4 - L28
specialize beta_at_exists x5 - L29
specialize beta_at_exists k - L30
exact beta_at_exists
11Separate the logical casesL31–31
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L31
cases hvalue
12Construct an explicit witnessL32–32
Supply the displayed value, then prove that it has the required property.
- L32
exists x6
13Separate the logical casesL33–34
14Use earlier factsL35–35
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L35
exact le_or_lt_left
15Construct an explicit witnessL36–41
16Separate the logical casesL42–42
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L42
split
17Use earlier factsL43–43
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L43
exact htable_witness_witness_witness_witness
18Separate the logical casesL44–44
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L44
split
19Use earlier factsL45–45
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L45
exact hrow_code_witness
20Separate the logical casesL46–46
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L46
split
21Use earlier factsL47–48
22Construct an explicit witnessL49–49
Supply the displayed value, then prove that it has the required property.
- L49
exists 0
23Separate the logical casesL50–51
24Use earlier factsL52–52
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L52
exact le_or_lt_right
25Calculate and transport equalitiesL53–53
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L53
refl
Original defined command ledger · 53 lines
- 0001
intro n - 0002
intro k - 0003
specialize le_or_lt k - 0004
specialize le_or_lt n - 0005
cases le_or_lt - 0006
have htable : ∃ bb. ∃ bc. ∃ sb. ∃ sc. ∀ x. Lt(x,S n) → ∃ y. ∃ z. BetaAt(bb,bc,x,y) ∧ (BetaAt(sb,sc,x,z) ∧ (x = 0 ∧ (∀ m. Lt(m,S n) → ∃ k. BetaAt(y,z,m,k) ∧ (m = 0 ∧ k = 1 ∨ (∃ i. m = S i ∧ k = 0))) ∨ (∃ m. ∃ k. ∃ i. x = S m ∧ (BetaAt(bb,bc,m,k) ∧ (BetaAt(sb,sc,m,i) ∧ (∀ j. Lt(j,S n) → ∃ u. BetaAt(y,z,j,u) ∧ (j = 0 ∧ u = 1 ∨ (∃ v. ∃ w. ∃ x0. j = S v ∧ (BetaAt(k,i,v,w) ∧ (BetaAt(k,i,S v,x0) ∧ u = w + x0))))))))))Exact native replay line
have htable : exists bb bc sb sc. (forall i. (exists gap. gap + S i = S n) -> exists b c. (((exists h. h + S b = S ((S i) * bc)) /\ exists q. bb = q * S ((S i) * bc) + b) /\ (((exists h. h + S c = S ((S i) * sc)) /\ exists q. sb = q * S ((S i) * sc) + c) /\ (((i = 0 /\ (forall j. (exists gap. gap + S j = S n) -> exists value. (((exists h. h + S value = S ((S j) * c)) /\ exists q. b = q * S ((S j) * c) + value) /\ ((j = 0 /\ value = 1) \/ exists p. j = S p /\ value = 0)))) \/ exists predecessor previous_code previous_scale. i = S predecessor /\ (((exists h. h + S previous_code = S ((S predecessor) * bc)) /\ exists q. bb = q * S ((S predecessor) * bc) + previous_code) /\ (((exists h. h + S previous_scale = S ((S predecessor) * sc)) /\ exists q. sb = q * S ((S predecessor) * sc) + previous_scale) /\ forall j. (exists gap. gap + S j = S n) -> exists value. (((exists h. h + S value = S ((S j) * c)) /\ exists q. b = q * S ((S j) * c) + value) /\ ((j = 0 /\ value = 1) \/ exists p u v. j = S p /\ (((exists h. h + S u = S ((S p) * previous_scale)) /\ exists q. previous_code = q * S ((S p) * previous_scale) + u) /\ (((exists h. h + S v = S ((S (S p)) * previous_scale)) /\ exists q. previous_code = q * S ((S (S p)) * previous_scale) + v) /\ value = u + v))))))))))) - 0007
specialize beta_pascal_table_prefix_exists (S n) - 0008
specialize beta_pascal_table_prefix_exists (S n) - 0009
exact beta_pascal_table_prefix_exists - 0010
cases htable - 0011
cases htable_witness - 0012
cases htable_witness_witness - 0013
cases htable_witness_witness_witness - 0014
have hrow_code : ∃ b. BetaAt(x,x1,n,b)Exact native replay line
have hrow_code : exists b. ((exists h. h + S b = S ((S n) * x1)) /\ exists q. x = q * S ((S n) * x1) + b) - 0015
specialize beta_at_exists x - 0016
specialize beta_at_exists x1 - 0017
specialize beta_at_exists n - 0018
exact beta_at_exists - 0019
cases hrow_code - 0020
have hrow_scale : ∃ c. BetaAt(x2,x3,n,c)Exact native replay line
have hrow_scale : exists c. ((exists h. h + S c = S ((S n) * x3)) /\ exists q. x2 = q * S ((S n) * x3) + c) - 0021
specialize beta_at_exists x2 - 0022
specialize beta_at_exists x3 - 0023
specialize beta_at_exists n - 0024
exact beta_at_exists - 0025
cases hrow_scale - 0026
have hvalue : ∃ z. BetaAt(x4,x5,k,z)Exact native replay line
have hvalue : exists z. ((exists h. h + S z = S ((S k) * x5)) /\ exists q. x4 = q * S ((S k) * x5) + z) - 0027
specialize beta_at_exists x4 - 0028
specialize beta_at_exists x5 - 0029
specialize beta_at_exists k - 0030
exact beta_at_exists - 0031
cases hvalue - 0032
exists x6 - 0033
right - 0034
split - 0035
exact le_or_lt_left - 0036
exists x - 0037
exists x1 - 0038
exists x2 - 0039
exists x3 - 0040
exists x4 - 0041
exists x5 - 0042
split - 0043
exact htable_witness_witness_witness_witness - 0044
split - 0045
exact hrow_code_witness - 0046
split - 0047
exact hrow_scale_witness - 0048
exact hvalue_witness - 0049
exists 0 - 0050
left - 0051
split - 0052
exact le_or_lt_right - 0053
refl