Exact expanded first-order arithmetic statement
forall n b c l d e m. ((~(n = 0) /\ ((exists ff_u_fsat_mv_count_first_product ff_v_fsat_mv_count_first_product. ((((exists ff_h_fsat_mv_count_first_product_start. ff_h_fsat_mv_count_first_product_start + S (1) = S ((S (0)) * ff_v_fsat_mv_count_first_product)) /\ exists ff_q_fsat_mv_count_first_product_start. ff_u_fsat_mv_count_first_product = ff_q_fsat_mv_count_first_product_start * S ((S (0)) * ff_v_fsat_mv_count_first_product) + (1))) /\ ((((exists ff_h_fsat_mv_count_first_product_terminal. ff_h_fsat_mv_count_first_product_terminal + S (n) = S ((S (l)) * ff_v_fsat_mv_count_first_product)) /\ exists ff_q_fsat_mv_count_first_product_terminal. ff_u_fsat_mv_count_first_product = ff_q_fsat_mv_count_first_product_terminal * S ((S (l)) * ff_v_fsat_mv_count_first_product) + (n))) /\ forall ff_i_fsat_mv_count_first_product. (exists ff_lt_fsat_mv_count_first_product_bound. ff_lt_fsat_mv_count_first_product_bound + S ff_i_fsat_mv_count_first_product = l) -> exists ff_p_fsat_mv_count_first_product ff_r_fsat_mv_count_first_product ff_s_fsat_mv_count_first_product. ((((exists ff_h_fsat_mv_count_first_product_factor. ff_h_fsat_mv_count_first_product_factor + S (ff_p_fsat_mv_count_first_product) = S ((S (ff_i_fsat_mv_count_first_product)) * c)) /\ exists ff_q_fsat_mv_count_first_product_factor. b = ff_q_fsat_mv_count_first_product_factor * S ((S (ff_i_fsat_mv_count_first_product)) * c) + (ff_p_fsat_mv_count_first_product))) /\ ((((exists ff_h_fsat_mv_count_first_product_partial. ff_h_fsat_mv_count_first_product_partial + S (ff_r_fsat_mv_count_first_product) = S ((S (ff_i_fsat_mv_count_first_product)) * ff_v_fsat_mv_count_first_product)) /\ exists ff_q_fsat_mv_count_first_product_partial. ff_u_fsat_mv_count_first_product = ff_q_fsat_mv_count_first_product_partial * S ((S (ff_i_fsat_mv_count_first_product)) * ff_v_fsat_mv_count_first_product) + (ff_r_fsat_mv_count_first_product))) /\ ((((exists ff_h_fsat_mv_count_first_product_successor. ff_h_fsat_mv_count_first_product_successor + S (ff_s_fsat_mv_count_first_product) = S ((S (S ff_i_fsat_mv_count_first_product)) * ff_v_fsat_mv_count_first_product)) /\ exists ff_q_fsat_mv_count_first_product_successor. ff_u_fsat_mv_count_first_product = ff_q_fsat_mv_count_first_product_successor * S ((S (S ff_i_fsat_mv_count_first_product)) * ff_v_fsat_mv_count_first_product) + (ff_s_fsat_mv_count_first_product))) /\ ff_s_fsat_mv_count_first_product = ff_r_fsat_mv_count_first_product * ff_p_fsat_mv_count_first_product)))))) /\ (forall ftsf_index_fsat_mv_count_first_primes. (exists ftsf_gap_fsat_mv_count_first_primes_bound. ftsf_gap_fsat_mv_count_first_primes_bound + S ftsf_index_fsat_mv_count_first_primes = (l)) -> exists ftsf_factor_fsat_mv_count_first_primes. ((((exists ff_h_ftsf_fsat_mv_count_first_primes_entry. ff_h_ftsf_fsat_mv_count_first_primes_entry + S (ftsf_factor_fsat_mv_count_first_primes) = S ((S (ftsf_index_fsat_mv_count_first_primes)) * c)) /\ exists ff_q_ftsf_fsat_mv_count_first_primes_entry. b = ff_q_ftsf_fsat_mv_count_first_primes_entry * S ((S (ftsf_index_fsat_mv_count_first_primes)) * c) + (ftsf_factor_fsat_mv_count_first_primes))) /\ ((~(ftsf_factor_fsat_mv_count_first_primes = 1) /\ forall frm_prime_left_ftsf_fsat_mv_count_first_primes_prime frm_prime_right_ftsf_fsat_mv_count_first_primes_prime. ftsf_factor_fsat_mv_count_first_primes = frm_prime_left_ftsf_fsat_mv_count_first_primes_prime * frm_prime_right_ftsf_fsat_mv_count_first_primes_prime -> frm_prime_left_ftsf_fsat_mv_count_first_primes_prime = 1 \/ frm_prime_right_ftsf_fsat_mv_count_first_primes_prime = 1))))))) -> ((~(n = 0) /\ ((exists ff_u_fsat_mv_count_second_product ff_v_fsat_mv_count_second_product. ((((exists ff_h_fsat_mv_count_second_product_start. ff_h_fsat_mv_count_second_product_start + S (1) = S ((S (0)) * ff_v_fsat_mv_count_second_product)) /\ exists ff_q_fsat_mv_count_second_product_start. ff_u_fsat_mv_count_second_product = ff_q_fsat_mv_count_second_product_start * S ((S (0)) * ff_v_fsat_mv_count_second_product) + (1))) /\ ((((exists ff_h_fsat_mv_count_second_product_terminal. ff_h_fsat_mv_count_second_product_terminal + S (n) = S ((S (m)) * ff_v_fsat_mv_count_second_product)) /\ exists ff_q_fsat_mv_count_second_product_terminal. ff_u_fsat_mv_count_second_product = ff_q_fsat_mv_count_second_product_terminal * S ((S (m)) * ff_v_fsat_mv_count_second_product) + (n))) /\ forall ff_i_fsat_mv_count_second_product. (exists ff_lt_fsat_mv_count_second_product_bound. ff_lt_fsat_mv_count_second_product_bound + S ff_i_fsat_mv_count_second_product = m) -> exists ff_p_fsat_mv_count_second_product ff_r_fsat_mv_count_second_product ff_s_fsat_mv_count_second_product. ((((exists ff_h_fsat_mv_count_second_product_factor. ff_h_fsat_mv_count_second_product_factor + S (ff_p_fsat_mv_count_second_product) = S ((S (ff_i_fsat_mv_count_second_product)) * e)) /\ exists ff_q_fsat_mv_count_second_product_factor. d = ff_q_fsat_mv_count_second_product_factor * S ((S (ff_i_fsat_mv_count_second_product)) * e) + (ff_p_fsat_mv_count_second_product))) /\ ((((exists ff_h_fsat_mv_count_second_product_partial. ff_h_fsat_mv_count_second_product_partial + S (ff_r_fsat_mv_count_second_product) = S ((S (ff_i_fsat_mv_count_second_product)) * ff_v_fsat_mv_count_second_product)) /\ exists ff_q_fsat_mv_count_second_product_partial. ff_u_fsat_mv_count_second_product = ff_q_fsat_mv_count_second_product_partial * S ((S (ff_i_fsat_mv_count_second_product)) * ff_v_fsat_mv_count_second_product) + (ff_r_fsat_mv_count_second_product))) /\ ((((exists ff_h_fsat_mv_count_second_product_successor. ff_h_fsat_mv_count_second_product_successor + S (ff_s_fsat_mv_count_second_product) = S ((S (S ff_i_fsat_mv_count_second_product)) * ff_v_fsat_mv_count_second_product)) /\ exists ff_q_fsat_mv_count_second_product_successor. ff_u_fsat_mv_count_second_product = ff_q_fsat_mv_count_second_product_successor * S ((S (S ff_i_fsat_mv_count_second_product)) * ff_v_fsat_mv_count_second_product) + (ff_s_fsat_mv_count_second_product))) /\ ff_s_fsat_mv_count_second_product = ff_r_fsat_mv_count_second_product * ff_p_fsat_mv_count_second_product)))))) /\ (forall ftsf_index_fsat_mv_count_second_primes. (exists ftsf_gap_fsat_mv_count_second_primes_bound. ftsf_gap_fsat_mv_count_second_primes_bound + S ftsf_index_fsat_mv_count_second_primes = (m)) -> exists ftsf_factor_fsat_mv_count_second_primes. ((((exists ff_h_ftsf_fsat_mv_count_second_primes_entry. ff_h_ftsf_fsat_mv_count_second_primes_entry + S (ftsf_factor_fsat_mv_count_second_primes) = S ((S (ftsf_index_fsat_mv_count_second_primes)) * e)) /\ exists ff_q_ftsf_fsat_mv_count_second_primes_entry. d = ff_q_ftsf_fsat_mv_count_second_primes_entry * S ((S (ftsf_index_fsat_mv_count_second_primes)) * e) + (ftsf_factor_fsat_mv_count_second_primes))) /\ ((~(ftsf_factor_fsat_mv_count_second_primes = 1) /\ forall frm_prime_left_ftsf_fsat_mv_count_second_primes_prime frm_prime_right_ftsf_fsat_mv_count_second_primes_prime. ftsf_factor_fsat_mv_count_second_primes = frm_prime_left_ftsf_fsat_mv_count_second_primes_prime * frm_prime_right_ftsf_fsat_mv_count_second_primes_prime -> frm_prime_left_ftsf_fsat_mv_count_second_primes_prime = 1 \/ frm_prime_right_ftsf_fsat_mv_count_second_primes_prime = 1))))))) -> l = mConstructive proof overview
Generated structural guide
Actual unordered prime-factor uniqueness proves literal equality of factor counts; no canonical list is assumed.
The unchanged tactic script uses 1 declared prerequisite and contains 22 exact native proof lines.
Public research checkpoint: original HA and independently compiled Lean verified; not Alpha-enrolled, no Alpha checked-use authority; not Stable
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. The literal dependency-closed bundle is checked by original HA and the independently compiled Lean verifier. Public delivery grants no Alpha checked-use authority or 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–9
02Establish hL10–19
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime factor lists matching by length.
- L10
have h : l = m ∧ (∃ x. ∃ y. BoundedPrefix(x,y,l) ∧ (InjectivePrefix(x,y,l) ∧ SurjectivePrefix(x,y,l)) ∧ (∀ z. ∀ n. ∀ k. Lt(z,l) → BetaAt(x,y,z,n) → BetaAt(b,c,z,k) → BetaAt(d,e,n,k)))Definitions: LtBetaAtBoundedPrefixInjectivePrefixSurjectivePrefix - L11
specialize prime_factor_lists_matching_by_length (l) - L12
specialize prime_factor_lists_matching_by_length (n) - L13
specialize prime_factor_lists_matching_by_length (b) - L14
specialize prime_factor_lists_matching_by_length (c) - L15
specialize prime_factor_lists_matching_by_length (m) - L16
specialize prime_factor_lists_matching_by_length (d) - L17
specialize prime_factor_lists_matching_by_length (e) - L18
apply prime_factor_lists_matching_by_length - L19
exact ha
03Use earlier factsL20–20
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L20
exact hb
04Separate the logical casesL21–21
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L21
cases h
05Use earlier factsL22–22
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L22
exact h_left
Original exact command ledger · 22 lines
- 0001
intro n - 0002
intro b - 0003
intro c - 0004
intro l - 0005
intro d - 0006
intro e - 0007
intro m - 0008
intro ha - 0009
intro hb - 0010
have h : ((l = m) /\ (exists pfp_u_mv_count_matching pfp_v_mv_count_matching. (((((forall pfp_i_mv_count_matchingmatchingpermutationbounded. (exists pfp_gap_mv_count_matchingmatchingpermutationboundedindex. pfp_gap_mv_count_matchingmatchingpermutationboundedindex + S (pfp_i_mv_count_matchingmatchingpermutationbounded) = (l)) -> exists pfp_a_mv_count_matchingmatchingpermutationbounded. (((exists ff_h_pfp_mv_count_matchingmatchingpermutationboundedentry. ff_h_pfp_mv_count_matchingmatchingpermutationboundedentry + S (pfp_a_mv_count_matchingmatchingpermutationbounded) = S ((S (pfp_i_mv_count_matchingmatchingpermutationbounded)) * pfp_v_mv_count_matching)) /\ exists ff_q_pfp_mv_count_matchingmatchingpermutationboundedentry. pfp_u_mv_count_matching = ff_q_pfp_mv_count_matchingmatchingpermutationboundedentry * S ((S (pfp_i_mv_count_matchingmatchingpermutationbounded)) * pfp_v_mv_count_matching) + (pfp_a_mv_count_matchingmatchingpermutationbounded))) /\ (exists pfp_gap_mv_count_matchingmatchingpermutationboundedvalue. pfp_gap_mv_count_matchingmatchingpermutationboundedvalue + S (pfp_a_mv_count_matchingmatchingpermutationbounded) = (l))) /\ (((forall pfp_i_mv_count_matchingmatchingpermutationinjective pfp_j_mv_count_matchingmatchingpermutationinjective pfp_a_mv_count_matchingmatchingpermutationinjective. (exists pfp_gap_mv_count_matchingmatchingpermutationinjectivefirst. pfp_gap_mv_count_matchingmatchingpermutationinjectivefirst + S (pfp_i_mv_count_matchingmatchingpermutationinjective) = (l)) -> (exists pfp_gap_mv_count_matchingmatchingpermutationinjectivesecond. pfp_gap_mv_count_matchingmatchingpermutationinjectivesecond + S (pfp_j_mv_count_matchingmatchingpermutationinjective) = (l)) -> (((exists ff_h_pfp_mv_count_matchingmatchingpermutationinjectiveleft. ff_h_pfp_mv_count_matchingmatchingpermutationinjectiveleft + S (pfp_a_mv_count_matchingmatchingpermutationinjective) = S ((S (pfp_i_mv_count_matchingmatchingpermutationinjective)) * pfp_v_mv_count_matching)) /\ exists ff_q_pfp_mv_count_matchingmatchingpermutationinjectiveleft. pfp_u_mv_count_matching = ff_q_pfp_mv_count_matchingmatchingpermutationinjectiveleft * S ((S (pfp_i_mv_count_matchingmatchingpermutationinjective)) * pfp_v_mv_count_matching) + (pfp_a_mv_count_matchingmatchingpermutationinjective))) -> (((exists ff_h_pfp_mv_count_matchingmatchingpermutationinjectiveright. ff_h_pfp_mv_count_matchingmatchingpermutationinjectiveright + S (pfp_a_mv_count_matchingmatchingpermutationinjective) = S ((S (pfp_j_mv_count_matchingmatchingpermutationinjective)) * pfp_v_mv_count_matching)) /\ exists ff_q_pfp_mv_count_matchingmatchingpermutationinjectiveright. pfp_u_mv_count_matching = ff_q_pfp_mv_count_matchingmatchingpermutationinjectiveright * S ((S (pfp_j_mv_count_matchingmatchingpermutationinjective)) * pfp_v_mv_count_matching) + (pfp_a_mv_count_matchingmatchingpermutationinjective))) -> pfp_i_mv_count_matchingmatchingpermutationinjective = pfp_j_mv_count_matchingmatchingpermutationinjective) /\ (forall pfp_a_mv_count_matchingmatchingpermutationsurjective. (exists pfp_gap_mv_count_matchingmatchingpermutationsurjectivevalue. pfp_gap_mv_count_matchingmatchingpermutationsurjectivevalue + S (pfp_a_mv_count_matchingmatchingpermutationsurjective) = (l)) -> exists pfp_i_mv_count_matchingmatchingpermutationsurjective. (exists pfp_gap_mv_count_matchingmatchingpermutationsurjectiveindex. pfp_gap_mv_count_matchingmatchingpermutationsurjectiveindex + S (pfp_i_mv_count_matchingmatchingpermutationsurjective) = (l)) /\ (((exists ff_h_pfp_mv_count_matchingmatchingpermutationsurjectiveentry. ff_h_pfp_mv_count_matchingmatchingpermutationsurjectiveentry + S (pfp_a_mv_count_matchingmatchingpermutationsurjective) = S ((S (pfp_i_mv_count_matchingmatchingpermutationsurjective)) * pfp_v_mv_count_matching)) /\ exists ff_q_pfp_mv_count_matchingmatchingpermutationsurjectiveentry. pfp_u_mv_count_matching = ff_q_pfp_mv_count_matchingmatchingpermutationsurjectiveentry * S ((S (pfp_i_mv_count_matchingmatchingpermutationsurjective)) * pfp_v_mv_count_matching) + (pfp_a_mv_count_matchingmatchingpermutationsurjective)))))))) /\ (forall pfp_i_mv_count_matchingmatchingmatching pfp_j_mv_count_matchingmatchingmatching pfp_a_mv_count_matchingmatchingmatching. (exists pfp_gap_mv_count_matchingmatchingmatchingbound. pfp_gap_mv_count_matchingmatchingmatchingbound + S (pfp_i_mv_count_matchingmatchingmatching) = (l)) -> (((exists ff_h_pfp_mv_count_matchingmatchingmatchingmap. ff_h_pfp_mv_count_matchingmatchingmatchingmap + S (pfp_j_mv_count_matchingmatchingmatching) = S ((S (pfp_i_mv_count_matchingmatchingmatching)) * pfp_v_mv_count_matching)) /\ exists ff_q_pfp_mv_count_matchingmatchingmatchingmap. pfp_u_mv_count_matching = ff_q_pfp_mv_count_matchingmatchingmatchingmap * S ((S (pfp_i_mv_count_matchingmatchingmatching)) * pfp_v_mv_count_matching) + (pfp_j_mv_count_matchingmatchingmatching))) -> (((exists ff_h_pfp_mv_count_matchingmatchingmatchingsource. ff_h_pfp_mv_count_matchingmatchingmatchingsource + S (pfp_a_mv_count_matchingmatchingmatching) = S ((S (pfp_i_mv_count_matchingmatchingmatching)) * c)) /\ exists ff_q_pfp_mv_count_matchingmatchingmatchingsource. b = ff_q_pfp_mv_count_matchingmatchingmatchingsource * S ((S (pfp_i_mv_count_matchingmatchingmatching)) * c) + (pfp_a_mv_count_matchingmatchingmatching))) -> (((exists ff_h_pfp_mv_count_matchingmatchingmatchingtarget. ff_h_pfp_mv_count_matchingmatchingmatchingtarget + S (pfp_a_mv_count_matchingmatchingmatching) = S ((S (pfp_j_mv_count_matchingmatchingmatching)) * e)) /\ exists ff_q_pfp_mv_count_matchingmatchingmatchingtarget. d = ff_q_pfp_mv_count_matchingmatchingmatchingtarget * S ((S (pfp_j_mv_count_matchingmatchingmatching)) * e) + (pfp_a_mv_count_matchingmatchingmatching)))))))) - 0011
specialize prime_factor_lists_matching_by_length (l) - 0012
specialize prime_factor_lists_matching_by_length (n) - 0013
specialize prime_factor_lists_matching_by_length (b) - 0014
specialize prime_factor_lists_matching_by_length (c) - 0015
specialize prime_factor_lists_matching_by_length (m) - 0016
specialize prime_factor_lists_matching_by_length (d) - 0017
specialize prime_factor_lists_matching_by_length (e) - 0018
apply prime_factor_lists_matching_by_length - 0019
exact ha - 0020
exact hb - 0021
cases h - 0022
exact h_left