PC0027

pow_four_equals_binary_double

Actual 4^n equals actual 2^(n+n), using only constructed powers and their checked product laws.

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

∀ n. ∀ P. ∀ Q. Pow(4,n,P)PowTwo(n + n,Q) → P = Q

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

Definition DAG

Actual proof prerequisites

pow_exists · checked external prerequisitepow_four_is_square_of_pow_twopow_add · checked external prerequisite
Original expanded first-order statement
forall n P Q. (exists pa_b_pc_four_double_four pa_c_pc_four_double_four. ((forall pa_i_pc_four_double_four_repeat. (exists pa_lt_pc_four_double_four_repeat_bound. pa_lt_pc_four_double_four_repeat_bound + S pa_i_pc_four_double_four_repeat = n) -> (((exists pa_h_pc_four_double_four_repeat_decoded. pa_h_pc_four_double_four_repeat_decoded + S (4) = S ((S (pa_i_pc_four_double_four_repeat)) * pa_c_pc_four_double_four)) /\ exists pa_q_pc_four_double_four_repeat_decoded. pa_b_pc_four_double_four = pa_q_pc_four_double_four_repeat_decoded * S ((S (pa_i_pc_four_double_four_repeat)) * pa_c_pc_four_double_four) + (4)))) /\ (exists pa_u_pc_four_double_four_product pa_v_pc_four_double_four_product. ((((exists pa_h_pc_four_double_four_product_start. pa_h_pc_four_double_four_product_start + S (1) = S ((S (0)) * pa_v_pc_four_double_four_product)) /\ exists pa_q_pc_four_double_four_product_start. pa_u_pc_four_double_four_product = pa_q_pc_four_double_four_product_start * S ((S (0)) * pa_v_pc_four_double_four_product) + (1))) /\ ((((exists pa_h_pc_four_double_four_product_terminal. pa_h_pc_four_double_four_product_terminal + S (P) = S ((S (n)) * pa_v_pc_four_double_four_product)) /\ exists pa_q_pc_four_double_four_product_terminal. pa_u_pc_four_double_four_product = pa_q_pc_four_double_four_product_terminal * S ((S (n)) * pa_v_pc_four_double_four_product) + (P))) /\ forall pa_i_pc_four_double_four_product. (exists pa_lt_pc_four_double_four_product_bound. pa_lt_pc_four_double_four_product_bound + S pa_i_pc_four_double_four_product = n) -> exists pa_p_pc_four_double_four_product pa_r_pc_four_double_four_product pa_s_pc_four_double_four_product. ((((exists pa_h_pc_four_double_four_product_factor. pa_h_pc_four_double_four_product_factor + S (pa_p_pc_four_double_four_product) = S ((S (pa_i_pc_four_double_four_product)) * pa_c_pc_four_double_four)) /\ exists pa_q_pc_four_double_four_product_factor. pa_b_pc_four_double_four = pa_q_pc_four_double_four_product_factor * S ((S (pa_i_pc_four_double_four_product)) * pa_c_pc_four_double_four) + (pa_p_pc_four_double_four_product))) /\ ((((exists pa_h_pc_four_double_four_product_partial. pa_h_pc_four_double_four_product_partial + S (pa_r_pc_four_double_four_product) = S ((S (pa_i_pc_four_double_four_product)) * pa_v_pc_four_double_four_product)) /\ exists pa_q_pc_four_double_four_product_partial. pa_u_pc_four_double_four_product = pa_q_pc_four_double_four_product_partial * S ((S (pa_i_pc_four_double_four_product)) * pa_v_pc_four_double_four_product) + (pa_r_pc_four_double_four_product))) /\ ((((exists pa_h_pc_four_double_four_product_successor. pa_h_pc_four_double_four_product_successor + S (pa_s_pc_four_double_four_product) = S ((S (S pa_i_pc_four_double_four_product)) * pa_v_pc_four_double_four_product)) /\ exists pa_q_pc_four_double_four_product_successor. pa_u_pc_four_double_four_product = pa_q_pc_four_double_four_product_successor * S ((S (S pa_i_pc_four_double_four_product)) * pa_v_pc_four_double_four_product) + (pa_s_pc_four_double_four_product))) /\ pa_s_pc_four_double_four_product = pa_r_pc_four_double_four_product * pa_p_pc_four_double_four_product)))))))) -> (exists pa_b_pc_four_double_two pa_c_pc_four_double_two. ((forall pa_i_pc_four_double_two_repeat. (exists pa_lt_pc_four_double_two_repeat_bound. pa_lt_pc_four_double_two_repeat_bound + S pa_i_pc_four_double_two_repeat = n + n) -> (((exists pa_h_pc_four_double_two_repeat_decoded. pa_h_pc_four_double_two_repeat_decoded + S (2) = S ((S (pa_i_pc_four_double_two_repeat)) * pa_c_pc_four_double_two)) /\ exists pa_q_pc_four_double_two_repeat_decoded. pa_b_pc_four_double_two = pa_q_pc_four_double_two_repeat_decoded * S ((S (pa_i_pc_four_double_two_repeat)) * pa_c_pc_four_double_two) + (2)))) /\ (exists pa_u_pc_four_double_two_product pa_v_pc_four_double_two_product. ((((exists pa_h_pc_four_double_two_product_start. pa_h_pc_four_double_two_product_start + S (1) = S ((S (0)) * pa_v_pc_four_double_two_product)) /\ exists pa_q_pc_four_double_two_product_start. pa_u_pc_four_double_two_product = pa_q_pc_four_double_two_product_start * S ((S (0)) * pa_v_pc_four_double_two_product) + (1))) /\ ((((exists pa_h_pc_four_double_two_product_terminal. pa_h_pc_four_double_two_product_terminal + S (Q) = S ((S (n + n)) * pa_v_pc_four_double_two_product)) /\ exists pa_q_pc_four_double_two_product_terminal. pa_u_pc_four_double_two_product = pa_q_pc_four_double_two_product_terminal * S ((S (n + n)) * pa_v_pc_four_double_two_product) + (Q))) /\ forall pa_i_pc_four_double_two_product. (exists pa_lt_pc_four_double_two_product_bound. pa_lt_pc_four_double_two_product_bound + S pa_i_pc_four_double_two_product = n + n) -> exists pa_p_pc_four_double_two_product pa_r_pc_four_double_two_product pa_s_pc_four_double_two_product. ((((exists pa_h_pc_four_double_two_product_factor. pa_h_pc_four_double_two_product_factor + S (pa_p_pc_four_double_two_product) = S ((S (pa_i_pc_four_double_two_product)) * pa_c_pc_four_double_two)) /\ exists pa_q_pc_four_double_two_product_factor. pa_b_pc_four_double_two = pa_q_pc_four_double_two_product_factor * S ((S (pa_i_pc_four_double_two_product)) * pa_c_pc_four_double_two) + (pa_p_pc_four_double_two_product))) /\ ((((exists pa_h_pc_four_double_two_product_partial. pa_h_pc_four_double_two_product_partial + S (pa_r_pc_four_double_two_product) = S ((S (pa_i_pc_four_double_two_product)) * pa_v_pc_four_double_two_product)) /\ exists pa_q_pc_four_double_two_product_partial. pa_u_pc_four_double_two_product = pa_q_pc_four_double_two_product_partial * S ((S (pa_i_pc_four_double_two_product)) * pa_v_pc_four_double_two_product) + (pa_r_pc_four_double_two_product))) /\ ((((exists pa_h_pc_four_double_two_product_successor. pa_h_pc_four_double_two_product_successor + S (pa_s_pc_four_double_two_product) = S ((S (S pa_i_pc_four_double_two_product)) * pa_v_pc_four_double_two_product)) /\ exists pa_q_pc_four_double_two_product_successor. pa_u_pc_four_double_two_product = pa_q_pc_four_double_two_product_successor * S ((S (S pa_i_pc_four_double_two_product)) * pa_v_pc_four_double_two_product) + (pa_s_pc_four_double_two_product))) /\ pa_s_pc_four_double_two_product = pa_r_pc_four_double_two_product * pa_p_pc_four_double_two_product)))))))) -> P = Q

Complete tactic proof in conservative notation

All 30 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

30 script commands · 9 reading checkpoints · 1 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 (1)
01Fix variables and assumptionsL1–5

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

  1. L1
    intro n
  2. L2
    intro P
  3. L3
    intro Q
  4. L4
    intro hP
  5. L5
    intro hQ
02Establish hpL6–9

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply pow exists.

  1. L6
    have hp : ∃ v. PowTwo(n,v)Definitions: PowTwo(n,v)Original native command in the exact edition
  2. L7
    specialize pow_exists 2
  3. L8
    specialize pow_exists n
  4. L9
    apply pow_exists
03Separate the logical casesL10–10

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L10
    cases hp
04Calculate and transport equalitiesL11–11

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L11
    trans x * x
05Use earlier factsL12–17

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

  1. L12
    specialize pow_four_is_square_of_pow_two n
  2. L13
    specialize pow_four_is_square_of_pow_two x
  3. L14
    specialize pow_four_is_square_of_pow_two P
  4. L15
    apply pow_four_is_square_of_pow_two
  5. L16
    exact hp_witness
  6. L17
    exact hP
06Calculate and transport equalitiesL18–18

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L18
    symm
07Use earlier factsL19–26

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

  1. L19
    specialize pow_add 2
  2. L20
    specialize pow_add n
  3. L21
    specialize pow_add n
  4. L22
    specialize pow_add (n + n)
  5. L23
    specialize pow_add x
  6. L24
    specialize pow_add x
  7. L25
    specialize pow_add Q
  8. L26
    apply pow_add
08Calculate and transport equalitiesL27–27

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L27
    refl
09Use earlier factsL28–30

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

  1. L28
    exact hp_witness
  2. L29
    exact hp_witness
  3. L30
    exact hQ

Library-wide reading audit

Original defined command ledger · 30 lines
  1. 0001intro n
  2. 0002intro P
  3. 0003intro Q
  4. 0004intro hP
  5. 0005intro hQ
  6. 0006have hp : ∃ v. PowTwo(n,v)
  7. 0007specialize pow_exists 2
  8. 0008specialize pow_exists n
  9. 0009apply pow_exists
  10. 0010cases hp
  11. 0011trans x * x
  12. 0012specialize pow_four_is_square_of_pow_two n
  13. 0013specialize pow_four_is_square_of_pow_two x
  14. 0014specialize pow_four_is_square_of_pow_two P
  15. 0015apply pow_four_is_square_of_pow_two
  16. 0016exact hp_witness
  17. 0017exact hP
  18. 0018symm
  19. 0019specialize pow_add 2
  20. 0020specialize pow_add n
  21. 0021specialize pow_add n
  22. 0022specialize pow_add (n + n)
  23. 0023specialize pow_add x
  24. 0024specialize pow_add x
  25. 0025specialize pow_add Q
  26. 0026apply pow_add
  27. 0027refl
  28. 0028exact hp_witness
  29. 0029exact hp_witness
  30. 0030exact hQ