BT00XO · Bertrand theorem

prime_power_quotient_zero_of_exponent_gt

Alpha v34 checked-use theorem · independently kernel and Lean verified; not Stable

A prime-power quotient vanishes once its exponent exceeds the dividend.

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.

Statement with defined notation

∀ p. ∀ n. ∀ e. ∀ d. ∀ q. ∀ r. Prime(p)Lt(n,e)Pow(p,e,d)DivRem(n,d,q,r) → q = 0

Every purple notation token opens its conservative definition. Expanding the displayed statement recovers the exact first-order Peano-arithmetic formula checked by the unchanged kernel.

Definitions used by this theorem

In the theorem statement

4 occurrences

In local proof propositions

2 occurrences

Exact expanded native-PA statement
forall p n e d q r. ((~(p = 1) /\ forall frm_prime_left_b5cvqz_prime frm_prime_right_b5cvqz_prime. p = frm_prime_left_b5cvqz_prime * frm_prime_right_b5cvqz_prime -> frm_prime_left_b5cvqz_prime = 1 \/ frm_prime_right_b5cvqz_prime = 1)) -> (exists bcf_lt_gap_b5cvqz_exponent. bcf_lt_gap_b5cvqz_exponent + S (n) = e) -> (exists bpvi_b_b5cvqz_power bpvi_c_b5cvqz_power. ((forall bpvi_i_b5cvqz_power. (exists bpvi_repeat_gap_b5cvqz_power. bpvi_repeat_gap_b5cvqz_power + S bpvi_i_b5cvqz_power = e) -> (((exists bpvi_h_b5cvqz_power_repeat. bpvi_h_b5cvqz_power_repeat + S (p) = S ((S (bpvi_i_b5cvqz_power)) * bpvi_c_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_repeat. bpvi_b_b5cvqz_power = bpvi_q_b5cvqz_power_repeat * S ((S (bpvi_i_b5cvqz_power)) * bpvi_c_b5cvqz_power) + (p)))) /\ (exists bpvi_u_b5cvqz_power bpvi_v_b5cvqz_power. ((((exists bpvi_h_b5cvqz_power_start. bpvi_h_b5cvqz_power_start + S (1) = S ((S (0)) * bpvi_v_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_start. bpvi_u_b5cvqz_power = bpvi_q_b5cvqz_power_start * S ((S (0)) * bpvi_v_b5cvqz_power) + (1))) /\ ((((exists bpvi_h_b5cvqz_power_terminal. bpvi_h_b5cvqz_power_terminal + S (d) = S ((S (e)) * bpvi_v_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_terminal. bpvi_u_b5cvqz_power = bpvi_q_b5cvqz_power_terminal * S ((S (e)) * bpvi_v_b5cvqz_power) + (d))) /\ forall bpvi_j_b5cvqz_power. (exists bpvi_product_gap_b5cvqz_power. bpvi_product_gap_b5cvqz_power + S bpvi_j_b5cvqz_power = e) -> exists bpvi_factor_b5cvqz_power bpvi_partial_b5cvqz_power bpvi_successor_b5cvqz_power. ((((exists bpvi_h_b5cvqz_power_factor. bpvi_h_b5cvqz_power_factor + S (bpvi_factor_b5cvqz_power) = S ((S (bpvi_j_b5cvqz_power)) * bpvi_c_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_factor. bpvi_b_b5cvqz_power = bpvi_q_b5cvqz_power_factor * S ((S (bpvi_j_b5cvqz_power)) * bpvi_c_b5cvqz_power) + (bpvi_factor_b5cvqz_power))) /\ ((((exists bpvi_h_b5cvqz_power_partial. bpvi_h_b5cvqz_power_partial + S (bpvi_partial_b5cvqz_power) = S ((S (bpvi_j_b5cvqz_power)) * bpvi_v_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_partial. bpvi_u_b5cvqz_power = bpvi_q_b5cvqz_power_partial * S ((S (bpvi_j_b5cvqz_power)) * bpvi_v_b5cvqz_power) + (bpvi_partial_b5cvqz_power))) /\ ((((exists bpvi_h_b5cvqz_power_successor. bpvi_h_b5cvqz_power_successor + S (bpvi_successor_b5cvqz_power) = S ((S (S bpvi_j_b5cvqz_power)) * bpvi_v_b5cvqz_power)) /\ exists bpvi_q_b5cvqz_power_successor. bpvi_u_b5cvqz_power = bpvi_q_b5cvqz_power_successor * S ((S (S bpvi_j_b5cvqz_power)) * bpvi_v_b5cvqz_power) + (bpvi_successor_b5cvqz_power))) /\ bpvi_successor_b5cvqz_power = bpvi_partial_b5cvqz_power * bpvi_factor_b5cvqz_power)))))))) -> (((n) = (d) * (q) + (r) /\ (exists bcf_lt_gap_b5cvqz_division_bound. bcf_lt_gap_b5cvqz_division_bound + S (r) = d))) -> q = 0

Proof neighborhood

Direct theorem prerequisites

Direct theorem dependents

Definition-aware tactic body

Only local propositions introduced by have or suffices are compacted. Every changed line has an exact-AST conservative-expansion receipt; the kernel still receives the immutable original tactic script.

Read the argument

Proof checkpoints

31 script commands · 4 reading checkpoints · 2 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 (3)
01Fix variables and assumptionsL1–10

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

  1. L1
    intro p
  2. L2
    intro n
  3. L3
    intro e
  4. L4
    intro d
  5. L5
    intro q
  6. L6
    intro r
  7. L7
    intro hp
  8. L8
    intro hexponent
  9. L9
    intro hpower
  10. L10
    intro hdivision
02Establish hpower_boundL11–17

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime power exponent le.

  1. L11
    have hpower_bound : Le(e,d)Definitions: Le(e,d)Original native command in the exact edition
  2. L12
    specialize prime_power_exponent_le p
  3. L13
    specialize prime_power_exponent_le e
  4. L14
    specialize prime_power_exponent_le d
  5. L15
    apply prime_power_exponent_le
  6. L16
    exact hp
  7. L17
    exact hpower
03Establish hvalue_boundL18–27

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply lt of lt of le.

  1. L18
    have hvalue_bound : Lt(n,d)Definitions: Lt(n,d)Original native command in the exact edition
  2. L19
    specialize lt_of_lt_of_le n
  3. L20
    specialize lt_of_lt_of_le e
  4. L21
    specialize lt_of_lt_of_le d
  5. L22
    apply lt_of_lt_of_le
  6. L23
    exact hexponent
  7. L24
    exact hpower_bound
  8. L25
    specialize division_zero_quotient_of_lt d
  9. L26
    specialize division_zero_quotient_of_lt n
  10. L27
    specialize division_zero_quotient_of_lt q
04Use earlier factsL28–31

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

  1. L28
    specialize division_zero_quotient_of_lt r
  2. L29
    apply division_zero_quotient_of_lt
  3. L30
    exact hdivision
  4. L31
    exact hvalue_bound

Library-wide reading audit

Original defined command ledger · 31 lines
  1. 0001intro p
  2. 0002intro n
  3. 0003intro e
  4. 0004intro d
  5. 0005intro q
  6. 0006intro r
  7. 0007intro hp
  8. 0008intro hexponent
  9. 0009intro hpower
  10. 0010intro hdivision
  11. 0011have hpower_bound : Le(e,d)
    Exact native replay linehave hpower_bound : exists g. g + e = d
  12. 0012specialize prime_power_exponent_le p
  13. 0013specialize prime_power_exponent_le e
  14. 0014specialize prime_power_exponent_le d
  15. 0015apply prime_power_exponent_le
  16. 0016exact hp
  17. 0017exact hpower
  18. 0018have hvalue_bound : Lt(n,d)
    Exact native replay linehave hvalue_bound : exists g. g + S n = d
  19. 0019specialize lt_of_lt_of_le n
  20. 0020specialize lt_of_lt_of_le e
  21. 0021specialize lt_of_lt_of_le d
  22. 0022apply lt_of_lt_of_le
  23. 0023exact hexponent
  24. 0024exact hpower_bound
  25. 0025specialize division_zero_quotient_of_lt d
  26. 0026specialize division_zero_quotient_of_lt n
  27. 0027specialize division_zero_quotient_of_lt q
  28. 0028specialize division_zero_quotient_of_lt r
  29. 0029apply division_zero_quotient_of_lt
  30. 0030exact hdivision
  31. 0031exact hvalue_bound