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 b c L t d e M. ((((L)=(t)+(M)) /\ (((forall fom_index_pfp_trim_zero_equivalenceinput. (exists fom_gap_pfp_trim_zero_equivalenceinput_index_bound. fom_gap_pfp_trim_zero_equivalenceinput_index_bound + S (fom_index_pfp_trim_zero_equivalenceinput) = L) -> exists fom_value_pfp_trim_zero_equivalenceinput. ((((exists fom_beta_height_pfp_trim_zero_equivalenceinput_entry. fom_beta_height_pfp_trim_zero_equivalenceinput_entry + S (fom_value_pfp_trim_zero_equivalenceinput) = S ((S (fom_index_pfp_trim_zero_equivalenceinput)) * c)) /\ exists fom_beta_quotient_pfp_trim_zero_equivalenceinput_entry. b = fom_beta_quotient_pfp_trim_zero_equivalenceinput_entry * S ((S (fom_index_pfp_trim_zero_equivalenceinput)) * c) + (fom_value_pfp_trim_zero_equivalenceinput))) /\ (exists fom_gap_pfp_trim_zero_equivalenceinput_value_bound. fom_gap_pfp_trim_zero_equivalenceinput_value_bound + S (fom_value_pfp_trim_zero_equivalenceinput) = p))) /\ (((forall pfp_repeat_index_trim_zero_equivalenceremoved. (exists pfa_gap_trim_zero_equivalenceremovedindex. pfa_gap_trim_zero_equivalenceremovedindex + S (pfp_repeat_index_trim_zero_equivalenceremoved) = (t)) -> (((exists ff_h_pfp_trim_zero_equivalenceremovedentry. ff_h_pfp_trim_zero_equivalenceremovedentry + S (0) = S ((S (pfp_repeat_index_trim_zero_equivalenceremoved)) * c)) /\ exists ff_q_pfp_trim_zero_equivalenceremovedentry. b = ff_q_pfp_trim_zero_equivalenceremovedentry * S ((S (pfp_repeat_index_trim_zero_equivalenceremoved)) * c) + (0)))) /\ (((forall pftrim_index_trim_zero_equivalencesuffix pftrim_value_trim_zero_equivalencesuffix. (exists pfa_gap_trim_zero_equivalencesuffixbound. pfa_gap_trim_zero_equivalencesuffixbound + S (pftrim_index_trim_zero_equivalencesuffix) = (M)) -> (((exists ff_h_pfp_trim_zero_equivalencesuffixsource. ff_h_pfp_trim_zero_equivalencesuffixsource + S (pftrim_value_trim_zero_equivalencesuffix) = S ((S ((t)+pftrim_index_trim_zero_equivalencesuffix)) * c)) /\ exists ff_q_pfp_trim_zero_equivalencesuffixsource. b = ff_q_pfp_trim_zero_equivalencesuffixsource * S ((S ((t)+pftrim_index_trim_zero_equivalencesuffix)) * c) + (pftrim_value_trim_zero_equivalencesuffix))) -> (((exists ff_h_pfp_trim_zero_equivalencesuffixoutput. ff_h_pfp_trim_zero_equivalencesuffixoutput + S (pftrim_value_trim_zero_equivalencesuffix) = S ((S (pftrim_index_trim_zero_equivalencesuffix)) * e)) /\ exists ff_q_pfp_trim_zero_equivalencesuffixoutput. d = ff_q_pfp_trim_zero_equivalencesuffixoutput * S ((S (pftrim_index_trim_zero_equivalencesuffix)) * e) + (pftrim_value_trim_zero_equivalencesuffix)))) /\ (((M)=0 \/ (exists pftrim_leading_trim_zero_equivalencenormal. ((((exists ff_h_pfp_trim_zero_equivalencenormalentry. ff_h_pfp_trim_zero_equivalencenormalentry + S (pftrim_leading_trim_zero_equivalencenormal) = S ((S (0)) * e)) /\ exists ff_q_pfp_trim_zero_equivalencenormalentry. d = ff_q_pfp_trim_zero_equivalencenormalentry * S ((S (0)) * e) + (pftrim_leading_trim_zero_equivalencenormal))) /\ ((~(pftrim_leading_trim_zero_equivalencenormal=0))))))))))))))) -> ((M=0 -> (forall pfp_repeat_index_trim_zero_forward. (exists pfa_gap_trim_zero_forwardindex. pfa_gap_trim_zero_forwardindex + S (pfp_repeat_index_trim_zero_forward) = (L)) -> (((exists ff_h_pfp_trim_zero_forwardentry. ff_h_pfp_trim_zero_forwardentry + S (0) = S ((S (pfp_repeat_index_trim_zero_forward)) * c)) /\ exists ff_q_pfp_trim_zero_forwardentry. b = ff_q_pfp_trim_zero_forwardentry * S ((S (pfp_repeat_index_trim_zero_forward)) * c) + (0))))) /\ (((forall pfp_repeat_index_trim_zero_backward. (exists pfa_gap_trim_zero_backwardindex. pfa_gap_trim_zero_backwardindex + S (pfp_repeat_index_trim_zero_backward) = (L)) -> (((exists ff_h_pfp_trim_zero_backwardentry. ff_h_pfp_trim_zero_backwardentry + S (0) = S ((S (pfp_repeat_index_trim_zero_backward)) * c)) /\ exists ff_q_pfp_trim_zero_backwardentry. b = ff_q_pfp_trim_zero_backwardentry * S ((S (pfp_repeat_index_trim_zero_backward)) * c) + (0)))) -> M=0)))Constructive proof overview
Generated structural guide
For an actual trim, empty output and an all-zero input prefix are constructively equivalent.
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
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
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–9
02Separate the logical casesL10–10
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L10
split
03Fix variables and assumptionsL11–11
Work with arbitrary variables or the premises of the current implication.
- L11
intro hz
04Use earlier factsL12–21
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L12
specialize prime_field_polynomial_trim_zero_of_empty (p) - L13
specialize prime_field_polynomial_trim_zero_of_empty (b) - L14
specialize prime_field_polynomial_trim_zero_of_empty (c) - L15
specialize prime_field_polynomial_trim_zero_of_empty (L) - L16
specialize prime_field_polynomial_trim_zero_of_empty (t) - L17
specialize prime_field_polynomial_trim_zero_of_empty (d) - L18
specialize prime_field_polynomial_trim_zero_of_empty (e) - L19
specialize prime_field_polynomial_trim_zero_of_empty (M) - L20
apply prime_field_polynomial_trim_zero_of_empty - L21
exact h
05Use earlier factsL22–22
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L22
exact hz
06Fix variables and assumptionsL23–23
Work with arbitrary variables or the premises of the current implication.
- L23
intro hz
07Use earlier factsL24–33
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L24
specialize prime_field_polynomial_trim_empty_of_zero (p) - L25
specialize prime_field_polynomial_trim_empty_of_zero (b) - L26
specialize prime_field_polynomial_trim_empty_of_zero (c) - L27
specialize prime_field_polynomial_trim_empty_of_zero (L) - L28
specialize prime_field_polynomial_trim_empty_of_zero (t) - L29
specialize prime_field_polynomial_trim_empty_of_zero (d) - L30
specialize prime_field_polynomial_trim_empty_of_zero (e) - L31
specialize prime_field_polynomial_trim_empty_of_zero (M) - L32
apply prime_field_polynomial_trim_empty_of_zero - L33
exact h
08Use earlier factsL34–34
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L34
exact hz
Original exact command ledger · 34 lines
- 0001
intro p - 0002
intro b - 0003
intro c - 0004
intro L - 0005
intro t - 0006
intro d - 0007
intro e - 0008
intro M - 0009
intro h - 0010
split - 0011
intro hz - 0012
specialize prime_field_polynomial_trim_zero_of_empty (p) - 0013
specialize prime_field_polynomial_trim_zero_of_empty (b) - 0014
specialize prime_field_polynomial_trim_zero_of_empty (c) - 0015
specialize prime_field_polynomial_trim_zero_of_empty (L) - 0016
specialize prime_field_polynomial_trim_zero_of_empty (t) - 0017
specialize prime_field_polynomial_trim_zero_of_empty (d) - 0018
specialize prime_field_polynomial_trim_zero_of_empty (e) - 0019
specialize prime_field_polynomial_trim_zero_of_empty (M) - 0020
apply prime_field_polynomial_trim_zero_of_empty - 0021
exact h - 0022
exact hz - 0023
intro hz - 0024
specialize prime_field_polynomial_trim_empty_of_zero (p) - 0025
specialize prime_field_polynomial_trim_empty_of_zero (b) - 0026
specialize prime_field_polynomial_trim_empty_of_zero (c) - 0027
specialize prime_field_polynomial_trim_empty_of_zero (L) - 0028
specialize prime_field_polynomial_trim_empty_of_zero (t) - 0029
specialize prime_field_polynomial_trim_empty_of_zero (d) - 0030
specialize prime_field_polynomial_trim_empty_of_zero (e) - 0031
specialize prime_field_polynomial_trim_empty_of_zero (M) - 0032
apply prime_field_polynomial_trim_empty_of_zero - 0033
exact h - 0034
exact hz