PC0033

prime_bit_prefix_equal_entry

Primality masks with different beta codes have equal entries at every actual shared index.

Alpha v34 checked-use · first admitted v27 · independently kernel and Lean verified; not Stable

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 original first-admission records.

These are the exact finite integer inequalities with constant 8, for every N≥2. The proof uses constructive binomial and primorial infrastructure; it does not assume logarithms, asymptotic estimates, the prime number theorem, or a factorization oracle.

Exact theorem in conservative defined notation

∀ b. ∀ c. ∀ d. ∀ f. ∀ l. ∀ i. ∀ e. ∀ a. PrimeBitPrefix(b,c,l)PrimeBitPrefix(d,f,l)Lt(i,l)BetaAt(b,c,i,e)BetaAt(d,f,i,a) → e = a

Every linked abbreviation expands hygienically to the identical original native formula.

Definition DAG

Actual proof prerequisites

Original expanded first-order statement
forall b c d f l i e a. (forall pc_index_mask_equal_left. (exists pc_lt_mask_equal_left_bound. pc_lt_mask_equal_left_bound + S (pc_index_mask_equal_left) = (l)) -> exists pc_bit_mask_equal_left. (((exists fs_h_pc_mask_equal_left_entry. fs_h_pc_mask_equal_left_entry + S (pc_bit_mask_equal_left) = S ((S (pc_index_mask_equal_left)) * c)) /\ exists fs_q_pc_mask_equal_left_entry. b = fs_q_pc_mask_equal_left_entry * S ((S (pc_index_mask_equal_left)) * c) + (pc_bit_mask_equal_left))) /\ (((((~(S (pc_index_mask_equal_left) = 1) /\ forall bpr_left_pc_mask_equal_left_choice_prime bpr_right_pc_mask_equal_left_choice_prime. S (pc_index_mask_equal_left) = bpr_left_pc_mask_equal_left_choice_prime * bpr_right_pc_mask_equal_left_choice_prime -> bpr_left_pc_mask_equal_left_choice_prime = 1 \/ bpr_right_pc_mask_equal_left_choice_prime = 1)) /\ pc_bit_mask_equal_left = 1) \/ (~((~(S (pc_index_mask_equal_left) = 1) /\ forall bpr_left_pc_mask_equal_left_choice_prime bpr_right_pc_mask_equal_left_choice_prime. S (pc_index_mask_equal_left) = bpr_left_pc_mask_equal_left_choice_prime * bpr_right_pc_mask_equal_left_choice_prime -> bpr_left_pc_mask_equal_left_choice_prime = 1 \/ bpr_right_pc_mask_equal_left_choice_prime = 1)) /\ pc_bit_mask_equal_left = 0)))) -> (forall pc_index_mask_equal_right. (exists pc_lt_mask_equal_right_bound. pc_lt_mask_equal_right_bound + S (pc_index_mask_equal_right) = (l)) -> exists pc_bit_mask_equal_right. (((exists fs_h_pc_mask_equal_right_entry. fs_h_pc_mask_equal_right_entry + S (pc_bit_mask_equal_right) = S ((S (pc_index_mask_equal_right)) * f)) /\ exists fs_q_pc_mask_equal_right_entry. d = fs_q_pc_mask_equal_right_entry * S ((S (pc_index_mask_equal_right)) * f) + (pc_bit_mask_equal_right))) /\ (((((~(S (pc_index_mask_equal_right) = 1) /\ forall bpr_left_pc_mask_equal_right_choice_prime bpr_right_pc_mask_equal_right_choice_prime. S (pc_index_mask_equal_right) = bpr_left_pc_mask_equal_right_choice_prime * bpr_right_pc_mask_equal_right_choice_prime -> bpr_left_pc_mask_equal_right_choice_prime = 1 \/ bpr_right_pc_mask_equal_right_choice_prime = 1)) /\ pc_bit_mask_equal_right = 1) \/ (~((~(S (pc_index_mask_equal_right) = 1) /\ forall bpr_left_pc_mask_equal_right_choice_prime bpr_right_pc_mask_equal_right_choice_prime. S (pc_index_mask_equal_right) = bpr_left_pc_mask_equal_right_choice_prime * bpr_right_pc_mask_equal_right_choice_prime -> bpr_left_pc_mask_equal_right_choice_prime = 1 \/ bpr_right_pc_mask_equal_right_choice_prime = 1)) /\ pc_bit_mask_equal_right = 0)))) -> (exists pc_lt_mask_equal_bound. pc_lt_mask_equal_bound + S (i) = (l)) -> (((exists fs_h_pc_mask_equal_e. fs_h_pc_mask_equal_e + S (e) = S ((S (i)) * c)) /\ exists fs_q_pc_mask_equal_e. b = fs_q_pc_mask_equal_e * S ((S (i)) * c) + (e))) -> (((exists fs_h_pc_mask_equal_a. fs_h_pc_mask_equal_a + S (a) = S ((S (i)) * f)) /\ exists fs_q_pc_mask_equal_a. d = fs_q_pc_mask_equal_a * S ((S (i)) * f) + (a))) -> e = a

Complete tactic proof in conservative notation

All 35 original proof lines are preserved. Only local proposition formulas are abbreviated; every abbreviation has an exact binder-safe expansion check. The linked exact edition contains the unchanged replay script.

Read the argument

Proof checkpoints

35 script commands · 5 reading checkpoints · 0 local claims

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.

Definition notation is shown below. Open the paired exact edition for the original native formulas. Source pairing is not a new equivalence certificate.

Named ingredients (2)
01Fix variables and assumptionsL1–10

Work with arbitrary variables or the premises of the current implication.

  1. L1
    intro b
  2. L2
    intro c
  3. L3
    intro d
  4. L4
    intro f
  5. L5
    intro l
  6. L6
    intro i
  7. L7
    intro e
  8. L8
    intro a
  9. L9
    intro hb
  10. L10
    intro hd
02Fix variables and assumptionsL11–13

Work with arbitrary variables or the premises of the current implication.

  1. L11
    intro hi
  2. L12
    intro he
  3. L13
    intro ha
03Use earlier factsL14–23

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L14
    specialize prime_bit_choice_functional i
  2. L15
    specialize prime_bit_choice_functional e
  3. L16
    specialize prime_bit_choice_functional a
  4. L17
    apply prime_bit_choice_functional
  5. L18
    specialize prime_bit_prefix_entry b
  6. L19
    specialize prime_bit_prefix_entry c
  7. L20
    specialize prime_bit_prefix_entry l
  8. L21
    specialize prime_bit_prefix_entry i
  9. L22
    specialize prime_bit_prefix_entry e
  10. L23
    apply prime_bit_prefix_entry
04Use earlier factsL24–33

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L24
    exact hb
  2. L25
    exact hi
  3. L26
    exact he
  4. L27
    specialize prime_bit_prefix_entry d
  5. L28
    specialize prime_bit_prefix_entry f
  6. L29
    specialize prime_bit_prefix_entry l
  7. L30
    specialize prime_bit_prefix_entry i
  8. L31
    specialize prime_bit_prefix_entry a
  9. L32
    apply prime_bit_prefix_entry
  10. L33
    exact hd
05Use earlier factsL34–35

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L34
    exact hi
  2. L35
    exact ha

Library-wide reading audit

Original defined command ledger · 35 lines
  1. 0001intro b
  2. 0002intro c
  3. 0003intro d
  4. 0004intro f
  5. 0005intro l
  6. 0006intro i
  7. 0007intro e
  8. 0008intro a
  9. 0009intro hb
  10. 0010intro hd
  11. 0011intro hi
  12. 0012intro he
  13. 0013intro ha
  14. 0014specialize prime_bit_choice_functional i
  15. 0015specialize prime_bit_choice_functional e
  16. 0016specialize prime_bit_choice_functional a
  17. 0017apply prime_bit_choice_functional
  18. 0018specialize prime_bit_prefix_entry b
  19. 0019specialize prime_bit_prefix_entry c
  20. 0020specialize prime_bit_prefix_entry l
  21. 0021specialize prime_bit_prefix_entry i
  22. 0022specialize prime_bit_prefix_entry e
  23. 0023apply prime_bit_prefix_entry
  24. 0024exact hb
  25. 0025exact hi
  26. 0026exact he
  27. 0027specialize prime_bit_prefix_entry d
  28. 0028specialize prime_bit_prefix_entry f
  29. 0029specialize prime_bit_prefix_entry l
  30. 0030specialize prime_bit_prefix_entry i
  31. 0031specialize prime_bit_prefix_entry a
  32. 0032apply prime_bit_prefix_entry
  33. 0033exact hd
  34. 0034exact hi
  35. 0035exact ha