MC0001

prime_toggle_square_quotient_divides

Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Cancel one actual nonzero factor in a witnessed square divisor; the quotient is genuinely divisible by p.

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 expanded first-order arithmetic statement

forall p d q. ~(p=0) -> d=p*q -> (exists pvs_factor_square_input. (d) = (p*p) * pvs_factor_square_input) -> (exists pvs_factor_square_output. (q) = (p) * pvs_factor_square_output)

Constructive proof overview

Generated structural guide

Cancel one actual nonzero factor in a witnessed square divisor; the quotient is genuinely divisible by p.

The unchanged tactic script uses 2 declared prerequisites and contains 19 exact native proof lines.

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

Proof neighborhood

Direct dependencies

mul_left_cancel_nonzero Stable theorem; checked-use authorized mul_assoc Stable theorem; checked-use authorized

Direct dependents

Formal native tactic body

Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. This exact body belongs to a complete independently kernel-checked constructive proof bundle and has Alpha checked-use authority; it does not imply Stable membership.

Read the argument

Proof checkpoints

19 script commands · 8 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.

01Fix variables and assumptionsL1–6

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

  1. L1
    intro p
  2. L2
    intro d
  3. L3
    intro q
  4. L4
    intro hp
  5. L5
    intro heq
  6. L6
    intro hs
02Separate the logical casesL7–7

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

  1. L7
    cases hs
03Construct an explicit witnessL8–8

Supply the displayed value, then prove that it has the required property.

  1. L8
    exists x
04Use earlier factsL9–13

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

  1. L9
    specialize mul_left_cancel_nonzero (p)
  2. L10
    specialize mul_left_cancel_nonzero (q)
  3. L11
    specialize mul_left_cancel_nonzero (p*x)
  4. L12
    apply mul_left_cancel_nonzero
  5. L13
    exact hp
05Calculate and transport equalitiesL14–15

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

  1. L14
    trans d
  2. L15
    symm
06Use earlier factsL16–16

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

  1. L16
    exact heq
07Calculate and transport equalitiesL17–17

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

  1. L17
    trans (p*p)*x
08Use earlier factsL18–19

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

  1. L18
    exact hs_witness
  2. L19
    apply mul_assoc

Library-wide reading audit

Original exact command ledger · 19 lines
  1. 0001intro p
  2. 0002intro d
  3. 0003intro q
  4. 0004intro hp
  5. 0005intro heq
  6. 0006intro hs
  7. 0007cases hs
  8. 0008exists x
  9. 0009specialize mul_left_cancel_nonzero (p)
  10. 0010specialize mul_left_cancel_nonzero (q)
  11. 0011specialize mul_left_cancel_nonzero (p*x)
  12. 0012apply mul_left_cancel_nonzero
  13. 0013exact hp
  14. 0014trans d
  15. 0015symm
  16. 0016exact heq
  17. 0017trans (p*p)*x
  18. 0018exact hs_witness
  19. 0019apply mul_assoc