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 expanded first-order arithmetic statement
forall F l p a z. (exists dst_positive_code_spike_table dst_positive_scale_spike_table dst_negative_code_spike_table dst_negative_scale_spike_table. (((F) = (((((dst_positive_code_spike_table) + (dst_positive_scale_spike_table)) * S ((dst_positive_code_spike_table) + (dst_positive_scale_spike_table)) + ((dst_positive_scale_spike_table) + (dst_positive_scale_spike_table))) + (((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) * S ((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) + ((dst_negative_scale_spike_table) + (dst_negative_scale_spike_table)))) * S ((((dst_positive_code_spike_table) + (dst_positive_scale_spike_table)) * S ((dst_positive_code_spike_table) + (dst_positive_scale_spike_table)) + ((dst_positive_scale_spike_table) + (dst_positive_scale_spike_table))) + (((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) * S ((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) + ((dst_negative_scale_spike_table) + (dst_negative_scale_spike_table)))) + ((((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) * S ((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) + ((dst_negative_scale_spike_table) + (dst_negative_scale_spike_table))) + (((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) * S ((dst_negative_code_spike_table) + (dst_negative_scale_spike_table)) + ((dst_negative_scale_spike_table) + (dst_negative_scale_spike_table)))))) /\ (forall dst_index_spike_table. (exists pvs_le_gap_spike_tabledomain. pvs_le_gap_spike_tabledomain + (dst_index_spike_table) = (0)) -> exists dst_positive_spike_table dst_negative_spike_table dst_value_spike_table. ((((exists ff_h_pvs_spike_tableentrypositive. ff_h_pvs_spike_tableentrypositive + S (dst_positive_spike_table) = S ((S (dst_index_spike_table)) * dst_positive_scale_spike_table)) /\ exists ff_q_pvs_spike_tableentrypositive. dst_positive_code_spike_table = ff_q_pvs_spike_tableentrypositive * S ((S (dst_index_spike_table)) * dst_positive_scale_spike_table) + (dst_positive_spike_table))) /\ (((((exists ff_h_pvs_spike_tableentrynegative. ff_h_pvs_spike_tableentrynegative + S (dst_negative_spike_table) = S ((S (dst_index_spike_table)) * dst_negative_scale_spike_table)) /\ exists ff_q_pvs_spike_tableentrynegative. dst_negative_code_spike_table = ff_q_pvs_spike_tableentrynegative * S ((S (dst_index_spike_table)) * dst_negative_scale_spike_table) + (dst_negative_spike_table))) /\ (exists ge_balance_positive_spike_tableentryvalue ge_balance_negative_spike_tableentryvalue. (((((dst_value_spike_table) = 2 * (ge_balance_positive_spike_tableentryvalue) /\ (ge_balance_negative_spike_tableentryvalue) = 0) \/ exists ge_signed_half_spike_tableentryvaluedecode. (((dst_value_spike_table) = 2 * ge_signed_half_spike_tableentryvaluedecode + 1 /\ (ge_balance_positive_spike_tableentryvalue) = 0) /\ (ge_balance_negative_spike_tableentryvalue) = S ge_signed_half_spike_tableentryvaluedecode))) /\ ((dst_positive_spike_table) + ge_balance_negative_spike_tableentryvalue = (dst_negative_spike_table) + ge_balance_positive_spike_tableentryvalue))))))))) -> (exists pvs_gap_spike_bound. pvs_gap_spike_bound + S (p) = (l)) -> (forall sfs_index_spike_before sfs_value_spike_before. (exists pvs_le_gap_spike_beforelower. pvs_le_gap_spike_beforelower + (0) = (sfs_index_spike_before)) -> (exists pvs_gap_spike_beforeupper. pvs_gap_spike_beforeupper + S (sfs_index_spike_before) = (p)) -> (exists dst_positive_code_spike_beforeentry dst_positive_scale_spike_beforeentry dst_negative_code_spike_beforeentry dst_negative_scale_spike_beforeentry dst_positive_spike_beforeentry dst_negative_spike_beforeentry. (((F) = (((((dst_positive_code_spike_beforeentry) + (dst_positive_scale_spike_beforeentry)) * S ((dst_positive_code_spike_beforeentry) + (dst_positive_scale_spike_beforeentry)) + ((dst_positive_scale_spike_beforeentry) + (dst_positive_scale_spike_beforeentry))) + (((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) * S ((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) + ((dst_negative_scale_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)))) * S ((((dst_positive_code_spike_beforeentry) + (dst_positive_scale_spike_beforeentry)) * S ((dst_positive_code_spike_beforeentry) + (dst_positive_scale_spike_beforeentry)) + ((dst_positive_scale_spike_beforeentry) + (dst_positive_scale_spike_beforeentry))) + (((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) * S ((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) + ((dst_negative_scale_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)))) + ((((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) * S ((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) + ((dst_negative_scale_spike_beforeentry) + (dst_negative_scale_spike_beforeentry))) + (((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) * S ((dst_negative_code_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)) + ((dst_negative_scale_spike_beforeentry) + (dst_negative_scale_spike_beforeentry)))))) /\ (((((exists ff_h_pvs_spike_beforeentrypositive. ff_h_pvs_spike_beforeentrypositive + S (dst_positive_spike_beforeentry) = S ((S (sfs_index_spike_before)) * dst_positive_scale_spike_beforeentry)) /\ exists ff_q_pvs_spike_beforeentrypositive. dst_positive_code_spike_beforeentry = ff_q_pvs_spike_beforeentrypositive * S ((S (sfs_index_spike_before)) * dst_positive_scale_spike_beforeentry) + (dst_positive_spike_beforeentry))) /\ (((((exists ff_h_pvs_spike_beforeentrynegative. ff_h_pvs_spike_beforeentrynegative + S (dst_negative_spike_beforeentry) = S ((S (sfs_index_spike_before)) * dst_negative_scale_spike_beforeentry)) /\ exists ff_q_pvs_spike_beforeentrynegative. dst_negative_code_spike_beforeentry = ff_q_pvs_spike_beforeentrynegative * S ((S (sfs_index_spike_before)) * dst_negative_scale_spike_beforeentry) + (dst_negative_spike_beforeentry))) /\ (exists ge_balance_positive_spike_beforeentryvalue ge_balance_negative_spike_beforeentryvalue. (((((sfs_value_spike_before) = 2 * (ge_balance_positive_spike_beforeentryvalue) /\ (ge_balance_negative_spike_beforeentryvalue) = 0) \/ exists ge_signed_half_spike_beforeentryvaluedecode. (((sfs_value_spike_before) = 2 * ge_signed_half_spike_beforeentryvaluedecode + 1 /\ (ge_balance_positive_spike_beforeentryvalue) = 0) /\ (ge_balance_negative_spike_beforeentryvalue) = S ge_signed_half_spike_beforeentryvaluedecode))) /\ ((dst_positive_spike_beforeentry) + ge_balance_negative_spike_beforeentryvalue = (dst_negative_spike_beforeentry) + ge_balance_positive_spike_beforeentryvalue))))))))) -> sfs_value_spike_before=0) -> (exists dst_positive_code_spike_value dst_positive_scale_spike_value dst_negative_code_spike_value dst_negative_scale_spike_value dst_positive_spike_value dst_negative_spike_value. (((F) = (((((dst_positive_code_spike_value) + (dst_positive_scale_spike_value)) * S ((dst_positive_code_spike_value) + (dst_positive_scale_spike_value)) + ((dst_positive_scale_spike_value) + (dst_positive_scale_spike_value))) + (((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) * S ((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) + ((dst_negative_scale_spike_value) + (dst_negative_scale_spike_value)))) * S ((((dst_positive_code_spike_value) + (dst_positive_scale_spike_value)) * S ((dst_positive_code_spike_value) + (dst_positive_scale_spike_value)) + ((dst_positive_scale_spike_value) + (dst_positive_scale_spike_value))) + (((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) * S ((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) + ((dst_negative_scale_spike_value) + (dst_negative_scale_spike_value)))) + ((((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) * S ((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) + ((dst_negative_scale_spike_value) + (dst_negative_scale_spike_value))) + (((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) * S ((dst_negative_code_spike_value) + (dst_negative_scale_spike_value)) + ((dst_negative_scale_spike_value) + (dst_negative_scale_spike_value)))))) /\ (((((exists ff_h_pvs_spike_valuepositive. ff_h_pvs_spike_valuepositive + S (dst_positive_spike_value) = S ((S (p)) * dst_positive_scale_spike_value)) /\ exists ff_q_pvs_spike_valuepositive. dst_positive_code_spike_value = ff_q_pvs_spike_valuepositive * S ((S (p)) * dst_positive_scale_spike_value) + (dst_positive_spike_value))) /\ (((((exists ff_h_pvs_spike_valuenegative. ff_h_pvs_spike_valuenegative + S (dst_negative_spike_value) = S ((S (p)) * dst_negative_scale_spike_value)) /\ exists ff_q_pvs_spike_valuenegative. dst_negative_code_spike_value = ff_q_pvs_spike_valuenegative * S ((S (p)) * dst_negative_scale_spike_value) + (dst_negative_spike_value))) /\ (exists ge_balance_positive_spike_valuevalue ge_balance_negative_spike_valuevalue. (((((a) = 2 * (ge_balance_positive_spike_valuevalue) /\ (ge_balance_negative_spike_valuevalue) = 0) \/ exists ge_signed_half_spike_valuevaluedecode. (((a) = 2 * ge_signed_half_spike_valuevaluedecode + 1 /\ (ge_balance_positive_spike_valuevalue) = 0) /\ (ge_balance_negative_spike_valuevalue) = S ge_signed_half_spike_valuevaluedecode))) /\ ((dst_positive_spike_value) + ge_balance_negative_spike_valuevalue = (dst_negative_spike_value) + ge_balance_positive_spike_valuevalue))))))))) -> (forall sfs_index_spike_after sfs_value_spike_after. (exists pvs_le_gap_spike_afterlower. pvs_le_gap_spike_afterlower + (S p) = (sfs_index_spike_after)) -> (exists pvs_gap_spike_afterupper. pvs_gap_spike_afterupper + S (sfs_index_spike_after) = (l)) -> (exists dst_positive_code_spike_afterentry dst_positive_scale_spike_afterentry dst_negative_code_spike_afterentry dst_negative_scale_spike_afterentry dst_positive_spike_afterentry dst_negative_spike_afterentry. (((F) = (((((dst_positive_code_spike_afterentry) + (dst_positive_scale_spike_afterentry)) * S ((dst_positive_code_spike_afterentry) + (dst_positive_scale_spike_afterentry)) + ((dst_positive_scale_spike_afterentry) + (dst_positive_scale_spike_afterentry))) + (((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) * S ((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) + ((dst_negative_scale_spike_afterentry) + (dst_negative_scale_spike_afterentry)))) * S ((((dst_positive_code_spike_afterentry) + (dst_positive_scale_spike_afterentry)) * S ((dst_positive_code_spike_afterentry) + (dst_positive_scale_spike_afterentry)) + ((dst_positive_scale_spike_afterentry) + (dst_positive_scale_spike_afterentry))) + (((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) * S ((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) + ((dst_negative_scale_spike_afterentry) + (dst_negative_scale_spike_afterentry)))) + ((((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) * S ((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) + ((dst_negative_scale_spike_afterentry) + (dst_negative_scale_spike_afterentry))) + (((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) * S ((dst_negative_code_spike_afterentry) + (dst_negative_scale_spike_afterentry)) + ((dst_negative_scale_spike_afterentry) + (dst_negative_scale_spike_afterentry)))))) /\ (((((exists ff_h_pvs_spike_afterentrypositive. ff_h_pvs_spike_afterentrypositive + S (dst_positive_spike_afterentry) = S ((S (sfs_index_spike_after)) * dst_positive_scale_spike_afterentry)) /\ exists ff_q_pvs_spike_afterentrypositive. dst_positive_code_spike_afterentry = ff_q_pvs_spike_afterentrypositive * S ((S (sfs_index_spike_after)) * dst_positive_scale_spike_afterentry) + (dst_positive_spike_afterentry))) /\ (((((exists ff_h_pvs_spike_afterentrynegative. ff_h_pvs_spike_afterentrynegative + S (dst_negative_spike_afterentry) = S ((S (sfs_index_spike_after)) * dst_negative_scale_spike_afterentry)) /\ exists ff_q_pvs_spike_afterentrynegative. dst_negative_code_spike_afterentry = ff_q_pvs_spike_afterentrynegative * S ((S (sfs_index_spike_after)) * dst_negative_scale_spike_afterentry) + (dst_negative_spike_afterentry))) /\ (exists ge_balance_positive_spike_afterentryvalue ge_balance_negative_spike_afterentryvalue. (((((sfs_value_spike_after) = 2 * (ge_balance_positive_spike_afterentryvalue) /\ (ge_balance_negative_spike_afterentryvalue) = 0) \/ exists ge_signed_half_spike_afterentryvaluedecode. (((sfs_value_spike_after) = 2 * ge_signed_half_spike_afterentryvaluedecode + 1 /\ (ge_balance_positive_spike_afterentryvalue) = 0) /\ (ge_balance_negative_spike_afterentryvalue) = S ge_signed_half_spike_afterentryvaluedecode))) /\ ((dst_positive_spike_afterentry) + ge_balance_negative_spike_afterentryvalue = (dst_negative_spike_afterentry) + ge_balance_positive_spike_afterentryvalue))))))))) -> sfs_value_spike_after=0) -> (exists dst_positive_code_spike_sum dst_positive_scale_spike_sum dst_negative_code_spike_sum dst_negative_scale_spike_sum dst_positive_sum_spike_sum dst_negative_sum_spike_sum. (((F) = (((((dst_positive_code_spike_sum) + (dst_positive_scale_spike_sum)) * S ((dst_positive_code_spike_sum) + (dst_positive_scale_spike_sum)) + ((dst_positive_scale_spike_sum) + (dst_positive_scale_spike_sum))) + (((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) * S ((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) + ((dst_negative_scale_spike_sum) + (dst_negative_scale_spike_sum)))) * S ((((dst_positive_code_spike_sum) + (dst_positive_scale_spike_sum)) * S ((dst_positive_code_spike_sum) + (dst_positive_scale_spike_sum)) + ((dst_positive_scale_spike_sum) + (dst_positive_scale_spike_sum))) + (((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) * S ((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) + ((dst_negative_scale_spike_sum) + (dst_negative_scale_spike_sum)))) + ((((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) * S ((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) + ((dst_negative_scale_spike_sum) + (dst_negative_scale_spike_sum))) + (((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) * S ((dst_negative_code_spike_sum) + (dst_negative_scale_spike_sum)) + ((dst_negative_scale_spike_sum) + (dst_negative_scale_spike_sum)))))) /\ (((exists fs_u_dst_spike_sumpositive fs_v_dst_spike_sumpositive. ((((exists fs_h_dst_spike_sumpositive_body_start. fs_h_dst_spike_sumpositive_body_start + S (0) = S ((S (0)) * fs_v_dst_spike_sumpositive)) /\ exists fs_q_dst_spike_sumpositive_body_start. fs_u_dst_spike_sumpositive = fs_q_dst_spike_sumpositive_body_start * S ((S (0)) * fs_v_dst_spike_sumpositive) + (0))) /\ ((((exists fs_h_dst_spike_sumpositive_body_terminal. fs_h_dst_spike_sumpositive_body_terminal + S (dst_positive_sum_spike_sum) = S ((S (l)) * fs_v_dst_spike_sumpositive)) /\ exists fs_q_dst_spike_sumpositive_body_terminal. fs_u_dst_spike_sumpositive = fs_q_dst_spike_sumpositive_body_terminal * S ((S (l)) * fs_v_dst_spike_sumpositive) + (dst_positive_sum_spike_sum))) /\ forall fs_i_dst_spike_sumpositive_body_steps. (exists fs_lt_dst_spike_sumpositive_body_steps_bound. fs_lt_dst_spike_sumpositive_body_steps_bound + S fs_i_dst_spike_sumpositive_body_steps = l) -> exists fs_a_dst_spike_sumpositive_body_steps fs_r_dst_spike_sumpositive_body_steps fs_s_dst_spike_sumpositive_body_steps. ((((exists fs_h_dst_spike_sumpositive_body_steps_summand. fs_h_dst_spike_sumpositive_body_steps_summand + S (fs_a_dst_spike_sumpositive_body_steps) = S ((S (fs_i_dst_spike_sumpositive_body_steps)) * dst_positive_scale_spike_sum)) /\ exists fs_q_dst_spike_sumpositive_body_steps_summand. dst_positive_code_spike_sum = fs_q_dst_spike_sumpositive_body_steps_summand * S ((S (fs_i_dst_spike_sumpositive_body_steps)) * dst_positive_scale_spike_sum) + (fs_a_dst_spike_sumpositive_body_steps))) /\ ((((exists fs_h_dst_spike_sumpositive_body_steps_partial. fs_h_dst_spike_sumpositive_body_steps_partial + S (fs_r_dst_spike_sumpositive_body_steps) = S ((S (fs_i_dst_spike_sumpositive_body_steps)) * fs_v_dst_spike_sumpositive)) /\ exists fs_q_dst_spike_sumpositive_body_steps_partial. fs_u_dst_spike_sumpositive = fs_q_dst_spike_sumpositive_body_steps_partial * S ((S (fs_i_dst_spike_sumpositive_body_steps)) * fs_v_dst_spike_sumpositive) + (fs_r_dst_spike_sumpositive_body_steps))) /\ ((((exists fs_h_dst_spike_sumpositive_body_steps_successor. fs_h_dst_spike_sumpositive_body_steps_successor + S (fs_s_dst_spike_sumpositive_body_steps) = S ((S (S fs_i_dst_spike_sumpositive_body_steps)) * fs_v_dst_spike_sumpositive)) /\ exists fs_q_dst_spike_sumpositive_body_steps_successor. fs_u_dst_spike_sumpositive = fs_q_dst_spike_sumpositive_body_steps_successor * S ((S (S fs_i_dst_spike_sumpositive_body_steps)) * fs_v_dst_spike_sumpositive) + (fs_s_dst_spike_sumpositive_body_steps))) /\ fs_s_dst_spike_sumpositive_body_steps = fs_r_dst_spike_sumpositive_body_steps + fs_a_dst_spike_sumpositive_body_steps)))))) /\ (((exists fs_u_dst_spike_sumnegative fs_v_dst_spike_sumnegative. ((((exists fs_h_dst_spike_sumnegative_body_start. fs_h_dst_spike_sumnegative_body_start + S (0) = S ((S (0)) * fs_v_dst_spike_sumnegative)) /\ exists fs_q_dst_spike_sumnegative_body_start. fs_u_dst_spike_sumnegative = fs_q_dst_spike_sumnegative_body_start * S ((S (0)) * fs_v_dst_spike_sumnegative) + (0))) /\ ((((exists fs_h_dst_spike_sumnegative_body_terminal. fs_h_dst_spike_sumnegative_body_terminal + S (dst_negative_sum_spike_sum) = S ((S (l)) * fs_v_dst_spike_sumnegative)) /\ exists fs_q_dst_spike_sumnegative_body_terminal. fs_u_dst_spike_sumnegative = fs_q_dst_spike_sumnegative_body_terminal * S ((S (l)) * fs_v_dst_spike_sumnegative) + (dst_negative_sum_spike_sum))) /\ forall fs_i_dst_spike_sumnegative_body_steps. (exists fs_lt_dst_spike_sumnegative_body_steps_bound. fs_lt_dst_spike_sumnegative_body_steps_bound + S fs_i_dst_spike_sumnegative_body_steps = l) -> exists fs_a_dst_spike_sumnegative_body_steps fs_r_dst_spike_sumnegative_body_steps fs_s_dst_spike_sumnegative_body_steps. ((((exists fs_h_dst_spike_sumnegative_body_steps_summand. fs_h_dst_spike_sumnegative_body_steps_summand + S (fs_a_dst_spike_sumnegative_body_steps) = S ((S (fs_i_dst_spike_sumnegative_body_steps)) * dst_negative_scale_spike_sum)) /\ exists fs_q_dst_spike_sumnegative_body_steps_summand. dst_negative_code_spike_sum = fs_q_dst_spike_sumnegative_body_steps_summand * S ((S (fs_i_dst_spike_sumnegative_body_steps)) * dst_negative_scale_spike_sum) + (fs_a_dst_spike_sumnegative_body_steps))) /\ ((((exists fs_h_dst_spike_sumnegative_body_steps_partial. fs_h_dst_spike_sumnegative_body_steps_partial + S (fs_r_dst_spike_sumnegative_body_steps) = S ((S (fs_i_dst_spike_sumnegative_body_steps)) * fs_v_dst_spike_sumnegative)) /\ exists fs_q_dst_spike_sumnegative_body_steps_partial. fs_u_dst_spike_sumnegative = fs_q_dst_spike_sumnegative_body_steps_partial * S ((S (fs_i_dst_spike_sumnegative_body_steps)) * fs_v_dst_spike_sumnegative) + (fs_r_dst_spike_sumnegative_body_steps))) /\ ((((exists fs_h_dst_spike_sumnegative_body_steps_successor. fs_h_dst_spike_sumnegative_body_steps_successor + S (fs_s_dst_spike_sumnegative_body_steps) = S ((S (S fs_i_dst_spike_sumnegative_body_steps)) * fs_v_dst_spike_sumnegative)) /\ exists fs_q_dst_spike_sumnegative_body_steps_successor. fs_u_dst_spike_sumnegative = fs_q_dst_spike_sumnegative_body_steps_successor * S ((S (S fs_i_dst_spike_sumnegative_body_steps)) * fs_v_dst_spike_sumnegative) + (fs_s_dst_spike_sumnegative_body_steps))) /\ fs_s_dst_spike_sumnegative_body_steps = fs_r_dst_spike_sumnegative_body_steps + fs_a_dst_spike_sumnegative_body_steps)))))) /\ (exists ge_balance_positive_spike_sumresult ge_balance_negative_spike_sumresult. (((((z) = 2 * (ge_balance_positive_spike_sumresult) /\ (ge_balance_negative_spike_sumresult) = 0) \/ exists ge_signed_half_spike_sumresultdecode. (((z) = 2 * ge_signed_half_spike_sumresultdecode + 1 /\ (ge_balance_positive_spike_sumresult) = 0) /\ (ge_balance_negative_spike_sumresult) = S ge_signed_half_spike_sumresultdecode))) /\ ((dst_positive_sum_spike_sum) + ge_balance_negative_spike_sumresult = (dst_negative_sum_spike_sum) + ge_balance_positive_spike_sumresult))))))))) -> z=aConstructive proof overview
Generated structural guide
An actual signed sum with one arbitrary-position entry and proved zero windows has exactly that entry value.
The unchanged tactic script uses 3 declared prerequisites and contains 42 exact native proof lines.
Alpha v34 checked-use · first admitted v32 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
arithmetic_signed_sum_exists Alpha theorem; checked-use authorized signed_prefix_sum_last_value Alpha theorem; checked-use authorized signed_prefix_sum_zero_tail Alpha 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–10
02Fix variables and assumptionsL11–11
Work with arbitrary variables or the premises of the current implication.
- L11
intro hs
03Establish hshortL12–17
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply arithmetic signed sum exists.
04Separate the logical casesL18–18
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L18
cases hshort
05Establish hvalueL19–27
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed prefix sum last value.
06Establish hequalL28–37
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed prefix sum zero tail.
- L28
have hequal : x=z - L29
specialize signed_prefix_sum_zero_tail (F) - L30
specialize signed_prefix_sum_zero_tail (S p) - L31
specialize signed_prefix_sum_zero_tail (l) - L32
specialize signed_prefix_sum_zero_tail (x) - L33
specialize signed_prefix_sum_zero_tail (z) - L34
apply signed_prefix_sum_zero_tail - L35
exact hp - L36
exact hz1 - L37
exact hshort_witness
07Use earlier factsL38–38
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L38
exact hs
08Calculate and transport equalitiesL39–40
Original exact command ledger · 42 lines
- 0001
intro F - 0002
intro l - 0003
intro p - 0004
intro a - 0005
intro z - 0006
intro hF - 0007
intro hp - 0008
intro hz0 - 0009
intro ha - 0010
intro hz1 - 0011
intro hs - 0012
have hshort : exists u. (exists dst_positive_code_spike_short dst_positive_scale_spike_short dst_negative_code_spike_short dst_negative_scale_spike_short dst_positive_sum_spike_short dst_negative_sum_spike_short. (((F) = (((((dst_positive_code_spike_short) + (dst_positive_scale_spike_short)) * S ((dst_positive_code_spike_short) + (dst_positive_scale_spike_short)) + ((dst_positive_scale_spike_short) + (dst_positive_scale_spike_short))) + (((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) * S ((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) + ((dst_negative_scale_spike_short) + (dst_negative_scale_spike_short)))) * S ((((dst_positive_code_spike_short) + (dst_positive_scale_spike_short)) * S ((dst_positive_code_spike_short) + (dst_positive_scale_spike_short)) + ((dst_positive_scale_spike_short) + (dst_positive_scale_spike_short))) + (((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) * S ((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) + ((dst_negative_scale_spike_short) + (dst_negative_scale_spike_short)))) + ((((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) * S ((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) + ((dst_negative_scale_spike_short) + (dst_negative_scale_spike_short))) + (((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) * S ((dst_negative_code_spike_short) + (dst_negative_scale_spike_short)) + ((dst_negative_scale_spike_short) + (dst_negative_scale_spike_short)))))) /\ (((exists fs_u_dst_spike_shortpositive fs_v_dst_spike_shortpositive. ((((exists fs_h_dst_spike_shortpositive_body_start. fs_h_dst_spike_shortpositive_body_start + S (0) = S ((S (0)) * fs_v_dst_spike_shortpositive)) /\ exists fs_q_dst_spike_shortpositive_body_start. fs_u_dst_spike_shortpositive = fs_q_dst_spike_shortpositive_body_start * S ((S (0)) * fs_v_dst_spike_shortpositive) + (0))) /\ ((((exists fs_h_dst_spike_shortpositive_body_terminal. fs_h_dst_spike_shortpositive_body_terminal + S (dst_positive_sum_spike_short) = S ((S (S p)) * fs_v_dst_spike_shortpositive)) /\ exists fs_q_dst_spike_shortpositive_body_terminal. fs_u_dst_spike_shortpositive = fs_q_dst_spike_shortpositive_body_terminal * S ((S (S p)) * fs_v_dst_spike_shortpositive) + (dst_positive_sum_spike_short))) /\ forall fs_i_dst_spike_shortpositive_body_steps. (exists fs_lt_dst_spike_shortpositive_body_steps_bound. fs_lt_dst_spike_shortpositive_body_steps_bound + S fs_i_dst_spike_shortpositive_body_steps = S p) -> exists fs_a_dst_spike_shortpositive_body_steps fs_r_dst_spike_shortpositive_body_steps fs_s_dst_spike_shortpositive_body_steps. ((((exists fs_h_dst_spike_shortpositive_body_steps_summand. fs_h_dst_spike_shortpositive_body_steps_summand + S (fs_a_dst_spike_shortpositive_body_steps) = S ((S (fs_i_dst_spike_shortpositive_body_steps)) * dst_positive_scale_spike_short)) /\ exists fs_q_dst_spike_shortpositive_body_steps_summand. dst_positive_code_spike_short = fs_q_dst_spike_shortpositive_body_steps_summand * S ((S (fs_i_dst_spike_shortpositive_body_steps)) * dst_positive_scale_spike_short) + (fs_a_dst_spike_shortpositive_body_steps))) /\ ((((exists fs_h_dst_spike_shortpositive_body_steps_partial. fs_h_dst_spike_shortpositive_body_steps_partial + S (fs_r_dst_spike_shortpositive_body_steps) = S ((S (fs_i_dst_spike_shortpositive_body_steps)) * fs_v_dst_spike_shortpositive)) /\ exists fs_q_dst_spike_shortpositive_body_steps_partial. fs_u_dst_spike_shortpositive = fs_q_dst_spike_shortpositive_body_steps_partial * S ((S (fs_i_dst_spike_shortpositive_body_steps)) * fs_v_dst_spike_shortpositive) + (fs_r_dst_spike_shortpositive_body_steps))) /\ ((((exists fs_h_dst_spike_shortpositive_body_steps_successor. fs_h_dst_spike_shortpositive_body_steps_successor + S (fs_s_dst_spike_shortpositive_body_steps) = S ((S (S fs_i_dst_spike_shortpositive_body_steps)) * fs_v_dst_spike_shortpositive)) /\ exists fs_q_dst_spike_shortpositive_body_steps_successor. fs_u_dst_spike_shortpositive = fs_q_dst_spike_shortpositive_body_steps_successor * S ((S (S fs_i_dst_spike_shortpositive_body_steps)) * fs_v_dst_spike_shortpositive) + (fs_s_dst_spike_shortpositive_body_steps))) /\ fs_s_dst_spike_shortpositive_body_steps = fs_r_dst_spike_shortpositive_body_steps + fs_a_dst_spike_shortpositive_body_steps)))))) /\ (((exists fs_u_dst_spike_shortnegative fs_v_dst_spike_shortnegative. ((((exists fs_h_dst_spike_shortnegative_body_start. fs_h_dst_spike_shortnegative_body_start + S (0) = S ((S (0)) * fs_v_dst_spike_shortnegative)) /\ exists fs_q_dst_spike_shortnegative_body_start. fs_u_dst_spike_shortnegative = fs_q_dst_spike_shortnegative_body_start * S ((S (0)) * fs_v_dst_spike_shortnegative) + (0))) /\ ((((exists fs_h_dst_spike_shortnegative_body_terminal. fs_h_dst_spike_shortnegative_body_terminal + S (dst_negative_sum_spike_short) = S ((S (S p)) * fs_v_dst_spike_shortnegative)) /\ exists fs_q_dst_spike_shortnegative_body_terminal. fs_u_dst_spike_shortnegative = fs_q_dst_spike_shortnegative_body_terminal * S ((S (S p)) * fs_v_dst_spike_shortnegative) + (dst_negative_sum_spike_short))) /\ forall fs_i_dst_spike_shortnegative_body_steps. (exists fs_lt_dst_spike_shortnegative_body_steps_bound. fs_lt_dst_spike_shortnegative_body_steps_bound + S fs_i_dst_spike_shortnegative_body_steps = S p) -> exists fs_a_dst_spike_shortnegative_body_steps fs_r_dst_spike_shortnegative_body_steps fs_s_dst_spike_shortnegative_body_steps. ((((exists fs_h_dst_spike_shortnegative_body_steps_summand. fs_h_dst_spike_shortnegative_body_steps_summand + S (fs_a_dst_spike_shortnegative_body_steps) = S ((S (fs_i_dst_spike_shortnegative_body_steps)) * dst_negative_scale_spike_short)) /\ exists fs_q_dst_spike_shortnegative_body_steps_summand. dst_negative_code_spike_short = fs_q_dst_spike_shortnegative_body_steps_summand * S ((S (fs_i_dst_spike_shortnegative_body_steps)) * dst_negative_scale_spike_short) + (fs_a_dst_spike_shortnegative_body_steps))) /\ ((((exists fs_h_dst_spike_shortnegative_body_steps_partial. fs_h_dst_spike_shortnegative_body_steps_partial + S (fs_r_dst_spike_shortnegative_body_steps) = S ((S (fs_i_dst_spike_shortnegative_body_steps)) * fs_v_dst_spike_shortnegative)) /\ exists fs_q_dst_spike_shortnegative_body_steps_partial. fs_u_dst_spike_shortnegative = fs_q_dst_spike_shortnegative_body_steps_partial * S ((S (fs_i_dst_spike_shortnegative_body_steps)) * fs_v_dst_spike_shortnegative) + (fs_r_dst_spike_shortnegative_body_steps))) /\ ((((exists fs_h_dst_spike_shortnegative_body_steps_successor. fs_h_dst_spike_shortnegative_body_steps_successor + S (fs_s_dst_spike_shortnegative_body_steps) = S ((S (S fs_i_dst_spike_shortnegative_body_steps)) * fs_v_dst_spike_shortnegative)) /\ exists fs_q_dst_spike_shortnegative_body_steps_successor. fs_u_dst_spike_shortnegative = fs_q_dst_spike_shortnegative_body_steps_successor * S ((S (S fs_i_dst_spike_shortnegative_body_steps)) * fs_v_dst_spike_shortnegative) + (fs_s_dst_spike_shortnegative_body_steps))) /\ fs_s_dst_spike_shortnegative_body_steps = fs_r_dst_spike_shortnegative_body_steps + fs_a_dst_spike_shortnegative_body_steps)))))) /\ (exists ge_balance_positive_spike_shortresult ge_balance_negative_spike_shortresult. (((((u) = 2 * (ge_balance_positive_spike_shortresult) /\ (ge_balance_negative_spike_shortresult) = 0) \/ exists ge_signed_half_spike_shortresultdecode. (((u) = 2 * ge_signed_half_spike_shortresultdecode + 1 /\ (ge_balance_positive_spike_shortresult) = 0) /\ (ge_balance_negative_spike_shortresult) = S ge_signed_half_spike_shortresultdecode))) /\ ((dst_positive_sum_spike_short) + ge_balance_negative_spike_shortresult = (dst_negative_sum_spike_short) + ge_balance_positive_spike_shortresult))))))))) - 0013
specialize arithmetic_signed_sum_exists (0) - 0014
specialize arithmetic_signed_sum_exists (F) - 0015
specialize arithmetic_signed_sum_exists (S p) - 0016
apply arithmetic_signed_sum_exists - 0017
exact hF - 0018
cases hshort - 0019
have hvalue : x=a - 0020
specialize signed_prefix_sum_last_value (F) - 0021
specialize signed_prefix_sum_last_value (p) - 0022
specialize signed_prefix_sum_last_value (a) - 0023
specialize signed_prefix_sum_last_value (x) - 0024
apply signed_prefix_sum_last_value - 0025
exact hz0 - 0026
exact ha - 0027
exact hshort_witness - 0028
have hequal : x=z - 0029
specialize signed_prefix_sum_zero_tail (F) - 0030
specialize signed_prefix_sum_zero_tail (S p) - 0031
specialize signed_prefix_sum_zero_tail (l) - 0032
specialize signed_prefix_sum_zero_tail (x) - 0033
specialize signed_prefix_sum_zero_tail (z) - 0034
apply signed_prefix_sum_zero_tail - 0035
exact hp - 0036
exact hz1 - 0037
exact hshort_witness - 0038
exact hs - 0039
trans x - 0040
symm - 0041
exact hequal - 0042
exact hvalue