Exact expanded PA statement
forall pb pc w. exists b c. (forall bcf_index_bpsrx_result. (exists bcf_lt_gap_bpsrx_result_bound. bcf_lt_gap_bpsrx_result_bound + S (bcf_index_bpsrx_result) = w) -> exists bcf_value_bpsrx_result. ((((exists bcf_height_bpsrx_result_entry. bcf_height_bpsrx_result_entry + S (bcf_value_bpsrx_result) = S ((S (bcf_index_bpsrx_result)) * c)) /\ exists bcf_quotient_bpsrx_result_entry. b = bcf_quotient_bpsrx_result_entry * S ((S (bcf_index_bpsrx_result)) * c) + (bcf_value_bpsrx_result))) /\ ((bcf_index_bpsrx_result = 0 /\ bcf_value_bpsrx_result = 1) \/ exists bcf_predecessor_bpsrx_result bcf_left_bpsrx_result bcf_right_bpsrx_result. bcf_index_bpsrx_result = S bcf_predecessor_bpsrx_result /\ ((((exists bcf_height_bpsrx_result_previous_left. bcf_height_bpsrx_result_previous_left + S (bcf_left_bpsrx_result) = S ((S (bcf_predecessor_bpsrx_result)) * pc)) /\ exists bcf_quotient_bpsrx_result_previous_left. pb = bcf_quotient_bpsrx_result_previous_left * S ((S (bcf_predecessor_bpsrx_result)) * pc) + (bcf_left_bpsrx_result))) /\ ((((exists bcf_height_bpsrx_result_previous_right. bcf_height_bpsrx_result_previous_right + S (bcf_right_bpsrx_result) = S ((S (S (bcf_predecessor_bpsrx_result))) * pc)) /\ exists bcf_quotient_bpsrx_result_previous_right. pb = bcf_quotient_bpsrx_result_previous_right * S ((S (S (bcf_predecessor_bpsrx_result))) * pc) + (bcf_right_bpsrx_result))) /\ bcf_value_bpsrx_result = bcf_left_bpsrx_result + bcf_right_bpsrx_result)))))Structural proof guide
Every previous beta row has a finite Pascal successor row.
Direct prerequisites: add_eq_zero_right, succ_ne_zero, beta_pascal_row_step_extend. The authored body proceeds by structural induction (1), case analysis (3), intermediate claims (3).
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 pb - 0002
intro pc - 0003
induction w - 0004
exists 0 - 0005
exists 0 - 0006
intro i - 0007
intro hi - 0008
exfalso - 0009
cases hi - 0010
have hsi : S i = 0 - 0011
specialize add_eq_zero_right x - 0012
specialize add_eq_zero_right (S i) - 0013
apply add_eq_zero_right - 0014
exact hi_witness - 0015
specialize succ_ne_zero i - 0016
apply succ_ne_zero - 0017
exact hsi - 0018
have hprevious : exists b c. (forall bcf_index_bpsrx_previous. (exists bcf_lt_gap_bpsrx_previous_bound. bcf_lt_gap_bpsrx_previous_bound + S (bcf_index_bpsrx_previous) = w) -> exists bcf_value_bpsrx_previous. ((((exists bcf_height_bpsrx_previous_entry. bcf_height_bpsrx_previous_entry + S (bcf_value_bpsrx_previous) = S ((S (bcf_index_bpsrx_previous)) * c)) /\ exists bcf_quotient_bpsrx_previous_entry. b = bcf_quotient_bpsrx_previous_entry * S ((S (bcf_index_bpsrx_previous)) * c) + (bcf_value_bpsrx_previous))) /\ ((bcf_index_bpsrx_previous = 0 /\ bcf_value_bpsrx_previous = 1) \/ exists bcf_predecessor_bpsrx_previous bcf_left_bpsrx_previous bcf_right_bpsrx_previous. bcf_index_bpsrx_previous = S bcf_predecessor_bpsrx_previous /\ ((((exists bcf_height_bpsrx_previous_previous_left. bcf_height_bpsrx_previous_previous_left + S (bcf_left_bpsrx_previous) = S ((S (bcf_predecessor_bpsrx_previous)) * pc)) /\ exists bcf_quotient_bpsrx_previous_previous_left. pb = bcf_quotient_bpsrx_previous_previous_left * S ((S (bcf_predecessor_bpsrx_previous)) * pc) + (bcf_left_bpsrx_previous))) /\ ((((exists bcf_height_bpsrx_previous_previous_right. bcf_height_bpsrx_previous_previous_right + S (bcf_right_bpsrx_previous) = S ((S (S (bcf_predecessor_bpsrx_previous))) * pc)) /\ exists bcf_quotient_bpsrx_previous_previous_right. pb = bcf_quotient_bpsrx_previous_previous_right * S ((S (S (bcf_predecessor_bpsrx_previous))) * pc) + (bcf_right_bpsrx_previous))) /\ bcf_value_bpsrx_previous = bcf_left_bpsrx_previous + bcf_right_bpsrx_previous))))) - 0019
exact IH - 0020
cases hprevious - 0021
cases hprevious_witness - 0022
have hnext : exists b c. (forall bcf_index_bpsrx_successor. (exists bcf_lt_gap_bpsrx_successor_bound. bcf_lt_gap_bpsrx_successor_bound + S (bcf_index_bpsrx_successor) = S (w)) -> exists bcf_value_bpsrx_successor. ((((exists bcf_height_bpsrx_successor_entry. bcf_height_bpsrx_successor_entry + S (bcf_value_bpsrx_successor) = S ((S (bcf_index_bpsrx_successor)) * c)) /\ exists bcf_quotient_bpsrx_successor_entry. b = bcf_quotient_bpsrx_successor_entry * S ((S (bcf_index_bpsrx_successor)) * c) + (bcf_value_bpsrx_successor))) /\ ((bcf_index_bpsrx_successor = 0 /\ bcf_value_bpsrx_successor = 1) \/ exists bcf_predecessor_bpsrx_successor bcf_left_bpsrx_successor bcf_right_bpsrx_successor. bcf_index_bpsrx_successor = S bcf_predecessor_bpsrx_successor /\ ((((exists bcf_height_bpsrx_successor_previous_left. bcf_height_bpsrx_successor_previous_left + S (bcf_left_bpsrx_successor) = S ((S (bcf_predecessor_bpsrx_successor)) * pc)) /\ exists bcf_quotient_bpsrx_successor_previous_left. pb = bcf_quotient_bpsrx_successor_previous_left * S ((S (bcf_predecessor_bpsrx_successor)) * pc) + (bcf_left_bpsrx_successor))) /\ ((((exists bcf_height_bpsrx_successor_previous_right. bcf_height_bpsrx_successor_previous_right + S (bcf_right_bpsrx_successor) = S ((S (S (bcf_predecessor_bpsrx_successor))) * pc)) /\ exists bcf_quotient_bpsrx_successor_previous_right. pb = bcf_quotient_bpsrx_successor_previous_right * S ((S (S (bcf_predecessor_bpsrx_successor))) * pc) + (bcf_right_bpsrx_successor))) /\ bcf_value_bpsrx_successor = bcf_left_bpsrx_successor + bcf_right_bpsrx_successor))))) - 0023
specialize beta_pascal_row_step_extend pb - 0024
specialize beta_pascal_row_step_extend pc - 0025
specialize beta_pascal_row_step_extend x - 0026
specialize beta_pascal_row_step_extend x1 - 0027
specialize beta_pascal_row_step_extend w - 0028
apply beta_pascal_row_step_extend - 0029
exact hprevious_witness_witness - 0030
exact hnext