FP001A

prime_field_add_cancel_left

Public research checkpoint, not admitted to Alpha or Stable. Alpha v30 remains 3222 checked-use theorems; Stable remains 432. The on-demand Alpha Lean service does not yet expose these checkpoint theorems; their independently checked literal bundles and unchanged sources are available below.

Public research checkpoint: original HA and independently compiled Lean verified; not Alpha-enrolled, no Alpha checked-use authority; not Stable

Additive cancellation follows from genuine balanced congruence cancellation and canonical bounds.

Exact expanded first-order arithmetic statement

forall p a b c z. (((exists pfa_gap_cancel_add_firstleft. pfa_gap_cancel_add_firstleft + S (a) = (p)) /\ (((exists pfa_gap_cancel_add_firstright. pfa_gap_cancel_add_firstright + S (b) = (p)) /\ ((((exists pfa_gap_cancel_add_firstresultbound. pfa_gap_cancel_add_firstresultbound + S (z) = (p)) /\ ((exists pfa_offset_left_cancel_add_firstresultcongruence pfa_offset_right_cancel_add_firstresultcongruence. ((a) + (b)) + (p) * pfa_offset_left_cancel_add_firstresultcongruence = (z) + (p) * pfa_offset_right_cancel_add_firstresultcongruence))))))))) -> (((exists pfa_gap_cancel_add_secondleft. pfa_gap_cancel_add_secondleft + S (a) = (p)) /\ (((exists pfa_gap_cancel_add_secondright. pfa_gap_cancel_add_secondright + S (c) = (p)) /\ ((((exists pfa_gap_cancel_add_secondresultbound. pfa_gap_cancel_add_secondresultbound + S (z) = (p)) /\ ((exists pfa_offset_left_cancel_add_secondresultcongruence pfa_offset_right_cancel_add_secondresultcongruence. ((a) + (c)) + (p) * pfa_offset_left_cancel_add_secondresultcongruence = (z) + (p) * pfa_offset_right_cancel_add_secondresultcongruence))))))))) -> b = c

Constructive proof overview

Generated structural guide

Additive cancellation follows from genuine balanced congruence cancellation and canonical bounds.

The unchanged tactic script uses 4 declared prerequisites and contains 35 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

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.

01Fix variables and assumptionsL1–7

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

  1. L1
    intro p
  2. L2
    intro a
  3. L3
    intro b
  4. L4
    intro c
  5. L5
    intro z
  6. L6
    intro hb
  7. L7
    intro hc
02Separate the logical casesL8–13

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

  1. L8
    cases hb
  2. L9
    cases hb_right
  3. L10
    cases hb_right_right
  4. L11
    cases hc
  5. L12
    cases hc_right
  6. L13
    cases hc_right_right
03Use earlier factsL14–23

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

  1. L14
    specialize mod_eq_bounded_unique (p)
  2. L15
    specialize mod_eq_bounded_unique (b)
  3. L16
    specialize mod_eq_bounded_unique (c)
  4. L17
    apply mod_eq_bounded_unique
  5. L18
    exact hb_right_left
  6. L19
    exact hc_right_left
  7. L20
    specialize mod_eq_add_cancel_left (p)
  8. L21
    specialize mod_eq_add_cancel_left (a)
  9. L22
    specialize mod_eq_add_cancel_left (b)
  10. L23
    specialize mod_eq_add_cancel_left (c)
04Use earlier factsL24–33

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

  1. L24
    apply mod_eq_add_cancel_left
  2. L25
    specialize mod_eq_trans (p)
  3. L26
    specialize mod_eq_trans (a + b)
  4. L27
    specialize mod_eq_trans (z)
  5. L28
    specialize mod_eq_trans (a + c)
  6. L29
    apply mod_eq_trans
  7. L30
    exact hb_right_right_right
  8. L31
    specialize mod_eq_symm (p)
  9. L32
    specialize mod_eq_symm (a + c)
  10. L33
    specialize mod_eq_symm (z)
05Use earlier factsL34–35

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

  1. L34
    apply mod_eq_symm
  2. L35
    exact hc_right_right_right

Library-wide reading audit

Original exact command ledger · 35 lines
  1. 0001intro p
  2. 0002intro a
  3. 0003intro b
  4. 0004intro c
  5. 0005intro z
  6. 0006intro hb
  7. 0007intro hc
  8. 0008cases hb
  9. 0009cases hb_right
  10. 0010cases hb_right_right
  11. 0011cases hc
  12. 0012cases hc_right
  13. 0013cases hc_right_right
  14. 0014specialize mod_eq_bounded_unique (p)
  15. 0015specialize mod_eq_bounded_unique (b)
  16. 0016specialize mod_eq_bounded_unique (c)
  17. 0017apply mod_eq_bounded_unique
  18. 0018exact hb_right_left
  19. 0019exact hc_right_left
  20. 0020specialize mod_eq_add_cancel_left (p)
  21. 0021specialize mod_eq_add_cancel_left (a)
  22. 0022specialize mod_eq_add_cancel_left (b)
  23. 0023specialize mod_eq_add_cancel_left (c)
  24. 0024apply mod_eq_add_cancel_left
  25. 0025specialize mod_eq_trans (p)
  26. 0026specialize mod_eq_trans (a + b)
  27. 0027specialize mod_eq_trans (z)
  28. 0028specialize mod_eq_trans (a + c)
  29. 0029apply mod_eq_trans
  30. 0030exact hb_right_right_right
  31. 0031specialize mod_eq_symm (p)
  32. 0032specialize mod_eq_symm (a + c)
  33. 0033specialize mod_eq_symm (z)
  34. 0034apply mod_eq_symm
  35. 0035exact hc_right_right_right