PX0018

prime_field_polynomial_zero_suffix_left_pad

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

A real suffix after an actual zero block gives the reverse decoding needed by genuine left padding.

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 b c L t d e. (forall pfp_repeat_index_suffix_to_pad_zero. (exists pfa_gap_suffix_to_pad_zeroindex. pfa_gap_suffix_to_pad_zeroindex + S (pfp_repeat_index_suffix_to_pad_zero) = (t)) -> (((exists ff_h_pfp_suffix_to_pad_zeroentry. ff_h_pfp_suffix_to_pad_zeroentry + S (0) = S ((S (pfp_repeat_index_suffix_to_pad_zero)) * e)) /\ exists ff_q_pfp_suffix_to_pad_zeroentry. d = ff_q_pfp_suffix_to_pad_zeroentry * S ((S (pfp_repeat_index_suffix_to_pad_zero)) * e) + (0)))) -> (forall pftrim_index_suffix_to_pad_suffix pftrim_value_suffix_to_pad_suffix. (exists pfa_gap_suffix_to_pad_suffixbound. pfa_gap_suffix_to_pad_suffixbound + S (pftrim_index_suffix_to_pad_suffix) = (L)) -> (((exists ff_h_pfp_suffix_to_pad_suffixsource. ff_h_pfp_suffix_to_pad_suffixsource + S (pftrim_value_suffix_to_pad_suffix) = S ((S ((t)+pftrim_index_suffix_to_pad_suffix)) * e)) /\ exists ff_q_pfp_suffix_to_pad_suffixsource. d = ff_q_pfp_suffix_to_pad_suffixsource * S ((S ((t)+pftrim_index_suffix_to_pad_suffix)) * e) + (pftrim_value_suffix_to_pad_suffix))) -> (((exists ff_h_pfp_suffix_to_pad_suffixoutput. ff_h_pfp_suffix_to_pad_suffixoutput + S (pftrim_value_suffix_to_pad_suffix) = S ((S (pftrim_index_suffix_to_pad_suffix)) * c)) /\ exists ff_q_pfp_suffix_to_pad_suffixoutput. b = ff_q_pfp_suffix_to_pad_suffixoutput * S ((S (pftrim_index_suffix_to_pad_suffix)) * c) + (pftrim_value_suffix_to_pad_suffix)))) -> (((forall pfp_repeat_index_suffix_to_pad_resultzeros. (exists pfa_gap_suffix_to_pad_resultzerosindex. pfa_gap_suffix_to_pad_resultzerosindex + S (pfp_repeat_index_suffix_to_pad_resultzeros) = (t)) -> (((exists ff_h_pfp_suffix_to_pad_resultzerosentry. ff_h_pfp_suffix_to_pad_resultzerosentry + S (0) = S ((S (pfp_repeat_index_suffix_to_pad_resultzeros)) * e)) /\ exists ff_q_pfp_suffix_to_pad_resultzerosentry. d = ff_q_pfp_suffix_to_pad_resultzerosentry * S ((S (pfp_repeat_index_suffix_to_pad_resultzeros)) * e) + (0)))) /\ ((forall pfrep_index_suffix_to_pad_result pfrep_value_suffix_to_pad_result. (exists pfa_gap_suffix_to_pad_resultbound. pfa_gap_suffix_to_pad_resultbound + S (pfrep_index_suffix_to_pad_result) = (L)) -> (((exists ff_h_pfp_suffix_to_pad_resultinput. ff_h_pfp_suffix_to_pad_resultinput + S (pfrep_value_suffix_to_pad_result) = S ((S (pfrep_index_suffix_to_pad_result)) * c)) /\ exists ff_q_pfp_suffix_to_pad_resultinput. b = ff_q_pfp_suffix_to_pad_resultinput * S ((S (pfrep_index_suffix_to_pad_result)) * c) + (pfrep_value_suffix_to_pad_result))) -> (((exists ff_h_pfp_suffix_to_pad_resultoutput. ff_h_pfp_suffix_to_pad_resultoutput + S (pfrep_value_suffix_to_pad_result) = S ((S ((t)+pfrep_index_suffix_to_pad_result)) * e)) /\ exists ff_q_pfp_suffix_to_pad_resultoutput. d = ff_q_pfp_suffix_to_pad_resultoutput * S ((S ((t)+pfrep_index_suffix_to_pad_result)) * e) + (pfrep_value_suffix_to_pad_result)))))))

Constructive proof overview

Generated structural guide

A real suffix after an actual zero block gives the reverse decoding needed by genuine left padding.

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

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

Proof neighborhood

Direct dependencies

beta_at_exists Alpha theorem; checked-use authorized beta_at_unique Alpha 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

36 script commands · 10 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.

01Fix variables and assumptionsL1–8

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

  1. L1
    intro b
  2. L2
    intro c
  3. L3
    intro L
  4. L4
    intro t
  5. L5
    intro d
  6. L6
    intro e
  7. L7
    intro hz
  8. L8
    intro hs
02Separate the logical casesL9–9

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

  1. L9
    split
03Use earlier factsL10–10

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

  1. L10
    exact hz
04Fix variables and assumptionsL11–14

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

  1. L11
    intro i
  2. L12
    intro a
  3. L13
    intro hi
  4. L14
    intro ha
05Establish hvL15–19

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

  1. L15
    have hv : exists r. (((exists ff_h_pfp_suffix_to_pad_choice. ff_h_pfp_suffix_to_pad_choice + S (r) = S ((S (t+i)) * e)) /\ exists ff_q_pfp_suffix_to_pad_choice. d = ff_q_pfp_suffix_to_pad_choice * S ((S (t+i)) * e) + (r)))
  2. L16
    specialize beta_at_exists (d)
  3. L17
    specialize beta_at_exists (e)
  4. L18
    specialize beta_at_exists (t+i)
  5. L19
    apply beta_at_exists
06Separate the logical casesL20–20

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

  1. L20
    cases hv
07Establish heqL21–30

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta at unique.

  1. L21
    have heq : x=a
  2. L22
    specialize beta_at_unique (b)
  3. L23
    specialize beta_at_unique (c)
  4. L24
    specialize beta_at_unique (i)
  5. L25
    specialize beta_at_unique (x)
  6. L26
    specialize beta_at_unique (a)
  7. L27
    apply beta_at_unique
  8. L28
    specialize hs (i)
  9. L29
    specialize hs (x)
  10. L30
    apply hs
08Use earlier factsL31–33

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

  1. L31
    exact hi
  2. L32
    exact hv_witness
  3. L33
    exact ha
09Calculate and transport equalitiesL34–35

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

  1. L34
    rewrite heq at hv_witness
  2. L35
    rewrite heq at hv_witness
10Use earlier factsL36–36

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

  1. L36
    exact hv_witness

Library-wide reading audit

Original exact command ledger · 36 lines
  1. 0001intro b
  2. 0002intro c
  3. 0003intro L
  4. 0004intro t
  5. 0005intro d
  6. 0006intro e
  7. 0007intro hz
  8. 0008intro hs
  9. 0009split
  10. 0010exact hz
  11. 0011intro i
  12. 0012intro a
  13. 0013intro hi
  14. 0014intro ha
  15. 0015have hv : exists r. (((exists ff_h_pfp_suffix_to_pad_choice. ff_h_pfp_suffix_to_pad_choice + S (r) = S ((S (t+i)) * e)) /\ exists ff_q_pfp_suffix_to_pad_choice. d = ff_q_pfp_suffix_to_pad_choice * S ((S (t+i)) * e) + (r)))
  16. 0016specialize beta_at_exists (d)
  17. 0017specialize beta_at_exists (e)
  18. 0018specialize beta_at_exists (t+i)
  19. 0019apply beta_at_exists
  20. 0020cases hv
  21. 0021have heq : x=a
  22. 0022specialize beta_at_unique (b)
  23. 0023specialize beta_at_unique (c)
  24. 0024specialize beta_at_unique (i)
  25. 0025specialize beta_at_unique (x)
  26. 0026specialize beta_at_unique (a)
  27. 0027apply beta_at_unique
  28. 0028specialize hs (i)
  29. 0029specialize hs (x)
  30. 0030apply hs
  31. 0031exact hi
  32. 0032exact hv_witness
  33. 0033exact ha
  34. 0034rewrite heq at hv_witness
  35. 0035rewrite heq at hv_witness
  36. 0036exact hv_witness