Exact expanded 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)))))))))Structural proof guide
The recurrence-defined Choose relation has a value for every pair.
Direct prerequisites: le_or_lt, beta_at_exists, beta_pascal_table_prefix_exists. The authored body proceeds by case analysis (8), intermediate claims (4).
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are hypotheses of this body receipt. The focused endpoint audits separately check the complete empty-context certificates.
- 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 : 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 : 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 : 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 : 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