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_all_zeroinput. (exists fom_gap_pfp_trim_all_zeroinput_index_bound. fom_gap_pfp_trim_all_zeroinput_index_bound + S (fom_index_pfp_trim_all_zeroinput) = L) -> exists fom_value_pfp_trim_all_zeroinput. ((((exists fom_beta_height_pfp_trim_all_zeroinput_entry. fom_beta_height_pfp_trim_all_zeroinput_entry + S (fom_value_pfp_trim_all_zeroinput) = S ((S (fom_index_pfp_trim_all_zeroinput)) * c)) /\ exists fom_beta_quotient_pfp_trim_all_zeroinput_entry. b = fom_beta_quotient_pfp_trim_all_zeroinput_entry * S ((S (fom_index_pfp_trim_all_zeroinput)) * c) + (fom_value_pfp_trim_all_zeroinput))) /\ (exists fom_gap_pfp_trim_all_zeroinput_value_bound. fom_gap_pfp_trim_all_zeroinput_value_bound + S (fom_value_pfp_trim_all_zeroinput) = p))) /\ (((forall pfp_repeat_index_trim_all_zeroremoved. (exists pfa_gap_trim_all_zeroremovedindex. pfa_gap_trim_all_zeroremovedindex + S (pfp_repeat_index_trim_all_zeroremoved) = (t)) -> (((exists ff_h_pfp_trim_all_zeroremovedentry. ff_h_pfp_trim_all_zeroremovedentry + S (0) = S ((S (pfp_repeat_index_trim_all_zeroremoved)) * c)) /\ exists ff_q_pfp_trim_all_zeroremovedentry. b = ff_q_pfp_trim_all_zeroremovedentry * S ((S (pfp_repeat_index_trim_all_zeroremoved)) * c) + (0)))) /\ (((forall pftrim_index_trim_all_zerosuffix pftrim_value_trim_all_zerosuffix. (exists pfa_gap_trim_all_zerosuffixbound. pfa_gap_trim_all_zerosuffixbound + S (pftrim_index_trim_all_zerosuffix) = (M)) -> (((exists ff_h_pfp_trim_all_zerosuffixsource. ff_h_pfp_trim_all_zerosuffixsource + S (pftrim_value_trim_all_zerosuffix) = S ((S ((t)+pftrim_index_trim_all_zerosuffix)) * c)) /\ exists ff_q_pfp_trim_all_zerosuffixsource. b = ff_q_pfp_trim_all_zerosuffixsource * S ((S ((t)+pftrim_index_trim_all_zerosuffix)) * c) + (pftrim_value_trim_all_zerosuffix))) -> (((exists ff_h_pfp_trim_all_zerosuffixoutput. ff_h_pfp_trim_all_zerosuffixoutput + S (pftrim_value_trim_all_zerosuffix) = S ((S (pftrim_index_trim_all_zerosuffix)) * e)) /\ exists ff_q_pfp_trim_all_zerosuffixoutput. d = ff_q_pfp_trim_all_zerosuffixoutput * S ((S (pftrim_index_trim_all_zerosuffix)) * e) + (pftrim_value_trim_all_zerosuffix)))) /\ (((M)=0 \/ (exists pftrim_leading_trim_all_zeronormal. ((((exists ff_h_pfp_trim_all_zeronormalentry. ff_h_pfp_trim_all_zeronormalentry + S (pftrim_leading_trim_all_zeronormal) = S ((S (0)) * e)) /\ exists ff_q_pfp_trim_all_zeronormalentry. d = ff_q_pfp_trim_all_zeronormalentry * S ((S (0)) * e) + (pftrim_leading_trim_all_zeronormal))) /\ ((~(pftrim_leading_trim_all_zeronormal=0))))))))))))))) -> (forall pfp_repeat_index_trim_all_zero_input. (exists pfa_gap_trim_all_zero_inputindex. pfa_gap_trim_all_zero_inputindex + S (pfp_repeat_index_trim_all_zero_input) = (L)) -> (((exists ff_h_pfp_trim_all_zero_inputentry. ff_h_pfp_trim_all_zero_inputentry + S (0) = S ((S (pfp_repeat_index_trim_all_zero_input)) * c)) /\ exists ff_q_pfp_trim_all_zero_inputentry. b = ff_q_pfp_trim_all_zero_inputentry * S ((S (pfp_repeat_index_trim_all_zero_input)) * c) + (0)))) -> M=0Constructive proof overview
Generated structural guide
A genuinely all-zero input cannot have a nonempty normalized trim, proved using actual input and output beta values.
The unchanged tactic script uses 4 declared prerequisites and contains 53 exact native proof lines.
Alpha v34 checked-use · first admitted v32 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
eq_decidable Stable theorem; checked-use authorized matrix_recursive_lt_add_left Alpha theorem; checked-use authorized one_le_of_ne_zero Stable theorem; checked-use authorized PQ0025 prime_field_polynomial_trim_leading_source_nonzeroDirect 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 (1)
01Fix variables and assumptionsL1–10
02Establish hML11–14
03Separate the logical casesL15–15
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L15
cases hM
04Use earlier factsL16–16
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L16
exact hM_left
05Establish hcopyL17–18
Establish this local claim before using it. It is not an additional assumption.
- L17
have hcopy : FpPolynomialTrim(p,b,c,L,t,d,e,M)Definitions: FpPolynomialTrim - L18
exact h
06Separate the logical casesL19–22
07Establish htL23–31
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply matrix recursive lt add left.
- L23
have ht : exists pfa_gap_trim_zero_cut_bound. pfa_gap_trim_zero_cut_bound + S (t+0) = (L) - L24
rewrite hcopy_left - L25
specialize matrix_recursive_lt_add_left (0) - L26
specialize matrix_recursive_lt_add_left (M) - L27
specialize matrix_recursive_lt_add_left (t) - L28
apply matrix_recursive_lt_add_left - L29
specialize one_le_of_ne_zero (M) - L30
apply one_le_of_ne_zero - L31
exact hM_right
08Establish hindexL32–34
09Establish hatL35–38
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply hz.
10Separate the logical casesL39–39
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L39
exfalso
11Use earlier factsL40–49
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L40
specialize prime_field_polynomial_trim_leading_source_nonzero (p) - L41
specialize prime_field_polynomial_trim_leading_source_nonzero (b) - L42
specialize prime_field_polynomial_trim_leading_source_nonzero (c) - L43
specialize prime_field_polynomial_trim_leading_source_nonzero (L) - L44
specialize prime_field_polynomial_trim_leading_source_nonzero (t) - L45
specialize prime_field_polynomial_trim_leading_source_nonzero (d) - L46
specialize prime_field_polynomial_trim_leading_source_nonzero (e) - L47
specialize prime_field_polynomial_trim_leading_source_nonzero (M) - L48
specialize prime_field_polynomial_trim_leading_source_nonzero (0) - L49
apply prime_field_polynomial_trim_leading_source_nonzero
12Use earlier factsL50–52
13Calculate and transport equalitiesL53–53
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L53
refl
Original exact command ledger · 53 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
intro hz - 0011
have hM : M=0 \/ ~(M=0) - 0012
specialize eq_decidable (M) - 0013
specialize eq_decidable (0) - 0014
apply eq_decidable - 0015
cases hM - 0016
exact hM_left - 0017
have hcopy : (((L)=(t)+(M)) /\ (((forall fom_index_pfp_trim_zero_copyinput. (exists fom_gap_pfp_trim_zero_copyinput_index_bound. fom_gap_pfp_trim_zero_copyinput_index_bound + S (fom_index_pfp_trim_zero_copyinput) = L) -> exists fom_value_pfp_trim_zero_copyinput. ((((exists fom_beta_height_pfp_trim_zero_copyinput_entry. fom_beta_height_pfp_trim_zero_copyinput_entry + S (fom_value_pfp_trim_zero_copyinput) = S ((S (fom_index_pfp_trim_zero_copyinput)) * c)) /\ exists fom_beta_quotient_pfp_trim_zero_copyinput_entry. b = fom_beta_quotient_pfp_trim_zero_copyinput_entry * S ((S (fom_index_pfp_trim_zero_copyinput)) * c) + (fom_value_pfp_trim_zero_copyinput))) /\ (exists fom_gap_pfp_trim_zero_copyinput_value_bound. fom_gap_pfp_trim_zero_copyinput_value_bound + S (fom_value_pfp_trim_zero_copyinput) = p))) /\ (((forall pfp_repeat_index_trim_zero_copyremoved. (exists pfa_gap_trim_zero_copyremovedindex. pfa_gap_trim_zero_copyremovedindex + S (pfp_repeat_index_trim_zero_copyremoved) = (t)) -> (((exists ff_h_pfp_trim_zero_copyremovedentry. ff_h_pfp_trim_zero_copyremovedentry + S (0) = S ((S (pfp_repeat_index_trim_zero_copyremoved)) * c)) /\ exists ff_q_pfp_trim_zero_copyremovedentry. b = ff_q_pfp_trim_zero_copyremovedentry * S ((S (pfp_repeat_index_trim_zero_copyremoved)) * c) + (0)))) /\ (((forall pftrim_index_trim_zero_copysuffix pftrim_value_trim_zero_copysuffix. (exists pfa_gap_trim_zero_copysuffixbound. pfa_gap_trim_zero_copysuffixbound + S (pftrim_index_trim_zero_copysuffix) = (M)) -> (((exists ff_h_pfp_trim_zero_copysuffixsource. ff_h_pfp_trim_zero_copysuffixsource + S (pftrim_value_trim_zero_copysuffix) = S ((S ((t)+pftrim_index_trim_zero_copysuffix)) * c)) /\ exists ff_q_pfp_trim_zero_copysuffixsource. b = ff_q_pfp_trim_zero_copysuffixsource * S ((S ((t)+pftrim_index_trim_zero_copysuffix)) * c) + (pftrim_value_trim_zero_copysuffix))) -> (((exists ff_h_pfp_trim_zero_copysuffixoutput. ff_h_pfp_trim_zero_copysuffixoutput + S (pftrim_value_trim_zero_copysuffix) = S ((S (pftrim_index_trim_zero_copysuffix)) * e)) /\ exists ff_q_pfp_trim_zero_copysuffixoutput. d = ff_q_pfp_trim_zero_copysuffixoutput * S ((S (pftrim_index_trim_zero_copysuffix)) * e) + (pftrim_value_trim_zero_copysuffix)))) /\ (((M)=0 \/ (exists pftrim_leading_trim_zero_copynormal. ((((exists ff_h_pfp_trim_zero_copynormalentry. ff_h_pfp_trim_zero_copynormalentry + S (pftrim_leading_trim_zero_copynormal) = S ((S (0)) * e)) /\ exists ff_q_pfp_trim_zero_copynormalentry. d = ff_q_pfp_trim_zero_copynormalentry * S ((S (0)) * e) + (pftrim_leading_trim_zero_copynormal))) /\ ((~(pftrim_leading_trim_zero_copynormal=0)))))))))))))) - 0018
exact h - 0019
cases hcopy - 0020
cases hcopy_right - 0021
cases hcopy_right_right - 0022
cases hcopy_right_right_right - 0023
have ht : exists pfa_gap_trim_zero_cut_bound. pfa_gap_trim_zero_cut_bound + S (t+0) = (L) - 0024
rewrite hcopy_left - 0025
specialize matrix_recursive_lt_add_left (0) - 0026
specialize matrix_recursive_lt_add_left (M) - 0027
specialize matrix_recursive_lt_add_left (t) - 0028
apply matrix_recursive_lt_add_left - 0029
specialize one_le_of_ne_zero (M) - 0030
apply one_le_of_ne_zero - 0031
exact hM_right - 0032
have hindex : t+0=t - 0033
simp - 0034
rewrite hindex at ht - 0035
have hat : ((exists ff_h_pfp_trim_zero_cut_entry. ff_h_pfp_trim_zero_cut_entry + S (0) = S ((S (t)) * c)) /\ exists ff_q_pfp_trim_zero_cut_entry. b = ff_q_pfp_trim_zero_cut_entry * S ((S (t)) * c) + (0)) - 0036
specialize hz (t) - 0037
apply hz - 0038
exact ht - 0039
exfalso - 0040
specialize prime_field_polynomial_trim_leading_source_nonzero (p) - 0041
specialize prime_field_polynomial_trim_leading_source_nonzero (b) - 0042
specialize prime_field_polynomial_trim_leading_source_nonzero (c) - 0043
specialize prime_field_polynomial_trim_leading_source_nonzero (L) - 0044
specialize prime_field_polynomial_trim_leading_source_nonzero (t) - 0045
specialize prime_field_polynomial_trim_leading_source_nonzero (d) - 0046
specialize prime_field_polynomial_trim_leading_source_nonzero (e) - 0047
specialize prime_field_polynomial_trim_leading_source_nonzero (M) - 0048
specialize prime_field_polynomial_trim_leading_source_nonzero (0) - 0049
apply prime_field_polynomial_trim_leading_source_nonzero - 0050
exact h - 0051
exact hM_right - 0052
exact hat - 0053
refl