PQ0019

prime_field_polynomial_subtract_add_cancel

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

Subtracting the actual first addend from an actual sum recovers the other addend by represented-prefix equality.

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 ab ac bb bc cb cc rb rc l. (forall pfp_index_sub_cancel_sum. (exists pfa_gap_sub_cancel_sumindex. pfa_gap_sub_cancel_sumindex + S (pfp_index_sub_cancel_sum) = (l)) -> exists pfp_left_sub_cancel_sum pfp_right_sub_cancel_sum pfp_value_sub_cancel_sum. ((((exists ff_h_pfp_sub_cancel_sumleft. ff_h_pfp_sub_cancel_sumleft + S (pfp_left_sub_cancel_sum) = S ((S (pfp_index_sub_cancel_sum)) * ac)) /\ exists ff_q_pfp_sub_cancel_sumleft. ab = ff_q_pfp_sub_cancel_sumleft * S ((S (pfp_index_sub_cancel_sum)) * ac) + (pfp_left_sub_cancel_sum))) /\ (((((exists ff_h_pfp_sub_cancel_sumright. ff_h_pfp_sub_cancel_sumright + S (pfp_right_sub_cancel_sum) = S ((S (pfp_index_sub_cancel_sum)) * bc)) /\ exists ff_q_pfp_sub_cancel_sumright. bb = ff_q_pfp_sub_cancel_sumright * S ((S (pfp_index_sub_cancel_sum)) * bc) + (pfp_right_sub_cancel_sum))) /\ (((((exists ff_h_pfp_sub_cancel_sumtarget. ff_h_pfp_sub_cancel_sumtarget + S (pfp_value_sub_cancel_sum) = S ((S (pfp_index_sub_cancel_sum)) * cc)) /\ exists ff_q_pfp_sub_cancel_sumtarget. cb = ff_q_pfp_sub_cancel_sumtarget * S ((S (pfp_index_sub_cancel_sum)) * cc) + (pfp_value_sub_cancel_sum))) /\ ((((exists pfa_gap_sub_cancel_sumoperationleft. pfa_gap_sub_cancel_sumoperationleft + S (pfp_left_sub_cancel_sum) = (p)) /\ (((exists pfa_gap_sub_cancel_sumoperationright. pfa_gap_sub_cancel_sumoperationright + S (pfp_right_sub_cancel_sum) = (p)) /\ ((((exists pfa_gap_sub_cancel_sumoperationresultbound. pfa_gap_sub_cancel_sumoperationresultbound + S (pfp_value_sub_cancel_sum) = (p)) /\ ((exists pfa_offset_left_sub_cancel_sumoperationresultcongruence pfa_offset_right_sub_cancel_sumoperationresultcongruence. ((pfp_left_sub_cancel_sum) + (pfp_right_sub_cancel_sum)) + (p) * pfa_offset_left_sub_cancel_sumoperationresultcongruence = (pfp_value_sub_cancel_sum) + (p) * pfa_offset_right_sub_cancel_sumoperationresultcongruence)))))))))))))))) -> (forall pfs_index_sub_cancel_difference. (exists pfa_gap_sub_cancel_differenceindex. pfa_gap_sub_cancel_differenceindex + S (pfs_index_sub_cancel_difference) = (l)) -> exists pfs_left_sub_cancel_difference pfs_right_sub_cancel_difference pfs_result_sub_cancel_difference. ((((exists ff_h_pfp_sub_cancel_differenceleft. ff_h_pfp_sub_cancel_differenceleft + S (pfs_left_sub_cancel_difference) = S ((S (pfs_index_sub_cancel_difference)) * cc)) /\ exists ff_q_pfp_sub_cancel_differenceleft. cb = ff_q_pfp_sub_cancel_differenceleft * S ((S (pfs_index_sub_cancel_difference)) * cc) + (pfs_left_sub_cancel_difference))) /\ (((((exists ff_h_pfp_sub_cancel_differenceright. ff_h_pfp_sub_cancel_differenceright + S (pfs_right_sub_cancel_difference) = S ((S (pfs_index_sub_cancel_difference)) * ac)) /\ exists ff_q_pfp_sub_cancel_differenceright. ab = ff_q_pfp_sub_cancel_differenceright * S ((S (pfs_index_sub_cancel_difference)) * ac) + (pfs_right_sub_cancel_difference))) /\ (((((exists ff_h_pfp_sub_cancel_differenceresult. ff_h_pfp_sub_cancel_differenceresult + S (pfs_result_sub_cancel_difference) = S ((S (pfs_index_sub_cancel_difference)) * rc)) /\ exists ff_q_pfp_sub_cancel_differenceresult. rb = ff_q_pfp_sub_cancel_differenceresult * S ((S (pfs_index_sub_cancel_difference)) * rc) + (pfs_result_sub_cancel_difference))) /\ ((((exists pfa_gap_sub_cancel_differenceoperationleft. pfa_gap_sub_cancel_differenceoperationleft + S (pfs_right_sub_cancel_difference) = (p)) /\ (((exists pfa_gap_sub_cancel_differenceoperationright. pfa_gap_sub_cancel_differenceoperationright + S (pfs_result_sub_cancel_difference) = (p)) /\ ((((exists pfa_gap_sub_cancel_differenceoperationresultbound. pfa_gap_sub_cancel_differenceoperationresultbound + S (pfs_left_sub_cancel_difference) = (p)) /\ ((exists pfa_offset_left_sub_cancel_differenceoperationresultcongruence pfa_offset_right_sub_cancel_differenceoperationresultcongruence. ((pfs_right_sub_cancel_difference) + (pfs_result_sub_cancel_difference)) + (p) * pfa_offset_left_sub_cancel_differenceoperationresultcongruence = (pfs_left_sub_cancel_difference) + (p) * pfa_offset_right_sub_cancel_differenceoperationresultcongruence)))))))))))))))) -> (forall mdr_i_pfp_sub_cancel_result mdr_a_pfp_sub_cancel_result. (exists mdr_gap_pfp_sub_cancel_resultb. mdr_gap_pfp_sub_cancel_resultb + S (mdr_i_pfp_sub_cancel_result) = (l)) -> (((exists ff_h_mdr_pfp_sub_cancel_resulto. ff_h_mdr_pfp_sub_cancel_resulto + S (mdr_a_pfp_sub_cancel_result) = S ((S (mdr_i_pfp_sub_cancel_result)) * bc)) /\ exists ff_q_mdr_pfp_sub_cancel_resulto. bb = ff_q_mdr_pfp_sub_cancel_resulto * S ((S (mdr_i_pfp_sub_cancel_result)) * bc) + (mdr_a_pfp_sub_cancel_result))) -> (((exists ff_h_mdr_pfp_sub_cancel_resultn. ff_h_mdr_pfp_sub_cancel_resultn + S (mdr_a_pfp_sub_cancel_result) = S ((S (mdr_i_pfp_sub_cancel_result)) * rc)) /\ exists ff_q_mdr_pfp_sub_cancel_resultn. rb = ff_q_mdr_pfp_sub_cancel_resultn * S ((S (mdr_i_pfp_sub_cancel_result)) * rc) + (mdr_a_pfp_sub_cancel_result))))

Constructive proof overview

Generated structural guide

Subtracting the actual first addend from an actual sum recovers the other addend by represented-prefix equality.

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

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

Proof neighborhood

Direct dependencies

Direct dependents

none

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

34 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.

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

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

  1. L1
    intro p
  2. L2
    intro ab
  3. L3
    intro ac
  4. L4
    intro bb
  5. L5
    intro bc
  6. L6
    intro cb
  7. L7
    intro cc
  8. L8
    intro rb
  9. L9
    intro rc
  10. L10
    intro l
02Fix variables and assumptionsL11–12

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

  1. L11
    intro hs
  2. L12
    intro hd
03Use earlier factsL13–22

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

  1. L13
    specialize prime_field_polynomial_subtract_functional (p)
  2. L14
    specialize prime_field_polynomial_subtract_functional (cb)
  3. L15
    specialize prime_field_polynomial_subtract_functional (cc)
  4. L16
    specialize prime_field_polynomial_subtract_functional (ab)
  5. L17
    specialize prime_field_polynomial_subtract_functional (ac)
  6. L18
    specialize prime_field_polynomial_subtract_functional (bb)
  7. L19
    specialize prime_field_polynomial_subtract_functional (bc)
  8. L20
    specialize prime_field_polynomial_subtract_functional (rb)
  9. L21
    specialize prime_field_polynomial_subtract_functional (rc)
  10. L22
    specialize prime_field_polynomial_subtract_functional (l)
04Use earlier factsL23–32

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

  1. L23
    apply prime_field_polynomial_subtract_functional
  2. L24
    specialize prime_field_polynomial_subtract_from_add (p)
  3. L25
    specialize prime_field_polynomial_subtract_from_add (cb)
  4. L26
    specialize prime_field_polynomial_subtract_from_add (cc)
  5. L27
    specialize prime_field_polynomial_subtract_from_add (ab)
  6. L28
    specialize prime_field_polynomial_subtract_from_add (ac)
  7. L29
    specialize prime_field_polynomial_subtract_from_add (bb)
  8. L30
    specialize prime_field_polynomial_subtract_from_add (bc)
  9. L31
    specialize prime_field_polynomial_subtract_from_add (l)
  10. L32
    apply prime_field_polynomial_subtract_from_add
05Use earlier factsL33–34

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

  1. L33
    exact hs
  2. L34
    exact hd

Library-wide reading audit

Original exact command ledger · 34 lines
  1. 0001intro p
  2. 0002intro ab
  3. 0003intro ac
  4. 0004intro bb
  5. 0005intro bc
  6. 0006intro cb
  7. 0007intro cc
  8. 0008intro rb
  9. 0009intro rc
  10. 0010intro l
  11. 0011intro hs
  12. 0012intro hd
  13. 0013specialize prime_field_polynomial_subtract_functional (p)
  14. 0014specialize prime_field_polynomial_subtract_functional (cb)
  15. 0015specialize prime_field_polynomial_subtract_functional (cc)
  16. 0016specialize prime_field_polynomial_subtract_functional (ab)
  17. 0017specialize prime_field_polynomial_subtract_functional (ac)
  18. 0018specialize prime_field_polynomial_subtract_functional (bb)
  19. 0019specialize prime_field_polynomial_subtract_functional (bc)
  20. 0020specialize prime_field_polynomial_subtract_functional (rb)
  21. 0021specialize prime_field_polynomial_subtract_functional (rc)
  22. 0022specialize prime_field_polynomial_subtract_functional (l)
  23. 0023apply prime_field_polynomial_subtract_functional
  24. 0024specialize prime_field_polynomial_subtract_from_add (p)
  25. 0025specialize prime_field_polynomial_subtract_from_add (cb)
  26. 0026specialize prime_field_polynomial_subtract_from_add (cc)
  27. 0027specialize prime_field_polynomial_subtract_from_add (ab)
  28. 0028specialize prime_field_polynomial_subtract_from_add (ac)
  29. 0029specialize prime_field_polynomial_subtract_from_add (bb)
  30. 0030specialize prime_field_polynomial_subtract_from_add (bc)
  31. 0031specialize prime_field_polynomial_subtract_from_add (l)
  32. 0032apply prime_field_polynomial_subtract_from_add
  33. 0033exact hs
  34. 0034exact hd