Exact expanded PA statement
forall p n b c i. p = S n -> ((~(p = 1) /\ forall wip_prime_left_fixed_prime wip_prime_right_fixed_prime. p = wip_prime_left_fixed_prime * wip_prime_right_fixed_prime -> wip_prime_left_fixed_prime = 1 \/ wip_prime_right_fixed_prime = 1)) -> (forall wip_index_fixed_prefix. (exists wip_gap_fixed_prefix_prefix_bound. wip_gap_fixed_prefix_prefix_bound + S wip_index_fixed_prefix = n) -> exists wip_mate_fixed_prefix. ((((exists wip_beta_height_fixed_prefix_decoded. wip_beta_height_fixed_prefix_decoded + S (wip_mate_fixed_prefix) = S ((S (wip_index_fixed_prefix)) * c)) /\ exists wip_beta_quotient_fixed_prefix_decoded. b = wip_beta_quotient_fixed_prefix_decoded * S ((S (wip_index_fixed_prefix)) * c) + (wip_mate_fixed_prefix))) /\ ((exists wip_gap_fixed_prefix_inverse_index_bound. wip_gap_fixed_prefix_inverse_index_bound + S wip_index_fixed_prefix = n) /\ ((exists wip_gap_fixed_prefix_inverse_mate_bound. wip_gap_fixed_prefix_inverse_mate_bound + S wip_mate_fixed_prefix = n) /\ (exists wip_mod_left_fixed_prefix_inverse_mod wip_mod_right_fixed_prefix_inverse_mod. ((S wip_index_fixed_prefix) * S wip_mate_fixed_prefix) + p * wip_mod_left_fixed_prefix_inverse_mod = 1 + p * wip_mod_right_fixed_prefix_inverse_mod))))) -> (exists wip_gap_fixed_index_bound. wip_gap_fixed_index_bound + S i = n) -> (((exists wip_beta_height_fixed_entry. wip_beta_height_fixed_entry + S (i) = S ((S (i)) * c)) /\ exists wip_beta_quotient_fixed_entry. b = wip_beta_quotient_fixed_entry * S ((S (i)) * c) + (i))) -> i = 0 \/ S i = nStructural proof guide
Generated structural guide
A fixed zero-based inverse index is zero or the last index.
Use the direct prerequisites inverse_prefix_entry_sound, succ_le_succ, prime_bounded_square_one_cases, succ_injective as previously established PA formulas.
The proof proceeds by case analysis (3), intermediate claims (4), equality transport (3).
Referenced ingredients
Proof neighborhood
Direct dependencies
PA00AF inverse_prefix_entry_sound PA002K succ_le_succ PA00AG prime_bounded_square_one_cases PA003V succ_injectiveDirect dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Alpha-v16 checked-use theorem is independently kernel-checked when replayed; it is not a Stable theorem.
- 0001
intro p - 0002
intro n - 0003
intro b - 0004
intro c - 0005
intro i - 0006
intro hpn - 0007
intro hp - 0008
intro hprefix - 0009
intro hi - 0010
intro hfixed - 0011
have hidx : (exists wip_gap_fixed_inverse_index_bound. wip_gap_fixed_inverse_index_bound + S i = n) /\ ((exists wip_gap_fixed_inverse_mate_bound. wip_gap_fixed_inverse_mate_bound + S i = n) /\ (exists wip_mod_left_fixed_inverse_mod wip_mod_right_fixed_inverse_mod. ((S i) * S i) + p * wip_mod_left_fixed_inverse_mod = 1 + p * wip_mod_right_fixed_inverse_mod)) - 0012
specialize inverse_prefix_entry_sound p - 0013
specialize inverse_prefix_entry_sound n - 0014
specialize inverse_prefix_entry_sound b - 0015
specialize inverse_prefix_entry_sound c - 0016
specialize inverse_prefix_entry_sound n - 0017
specialize inverse_prefix_entry_sound i - 0018
specialize inverse_prefix_entry_sound i - 0019
apply inverse_prefix_entry_sound - 0020
exact hprefix - 0021
exact hi - 0022
exact hfixed - 0023
cases hidx - 0024
cases hidx_right - 0025
have hpositive : exists wii_positive_gap_fixed_positive. wii_positive_gap_fixed_positive + 1 = S i - 0026
exists i - 0027
rewrite PA4 - 0028
rewrite PA3 - 0029
refl - 0030
have hbounded : exists wii_successor_gap_fixed_residue_bound. wii_successor_gap_fixed_residue_bound + S (S i) = p - 0031
rewrite hpn - 0032
specialize succ_le_succ (S i) - 0033
specialize succ_le_succ n - 0034
apply succ_le_succ - 0035
exact hidx_left - 0036
have hcases : S i = 1 \/ S i = n - 0037
specialize prime_bounded_square_one_cases p - 0038
specialize prime_bounded_square_one_cases n - 0039
specialize prime_bounded_square_one_cases (S i) - 0040
apply prime_bounded_square_one_cases - 0041
exact hpn - 0042
exact hp - 0043
exact hpositive - 0044
exact hbounded - 0045
exact hidx_right_right - 0046
cases hcases - 0047
left - 0048
specialize succ_injective i - 0049
specialize succ_injective 0 - 0050
apply succ_injective - 0051
exact hcases_left - 0052
right - 0053
exact hcases_right