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 B C L t rb rc R. (forall mdr_i_pfp_trim_transport_equal mdr_a_pfp_trim_transport_equal. (exists mdr_gap_pfp_trim_transport_equalb. mdr_gap_pfp_trim_transport_equalb + S (mdr_i_pfp_trim_transport_equal) = (L)) -> (((exists ff_h_mdr_pfp_trim_transport_equalo. ff_h_mdr_pfp_trim_transport_equalo + S (mdr_a_pfp_trim_transport_equal) = S ((S (mdr_i_pfp_trim_transport_equal)) * c)) /\ exists ff_q_mdr_pfp_trim_transport_equalo. b = ff_q_mdr_pfp_trim_transport_equalo * S ((S (mdr_i_pfp_trim_transport_equal)) * c) + (mdr_a_pfp_trim_transport_equal))) -> (((exists ff_h_mdr_pfp_trim_transport_equaln. ff_h_mdr_pfp_trim_transport_equaln + S (mdr_a_pfp_trim_transport_equal) = S ((S (mdr_i_pfp_trim_transport_equal)) * C)) /\ exists ff_q_mdr_pfp_trim_transport_equaln. B = ff_q_mdr_pfp_trim_transport_equaln * S ((S (mdr_i_pfp_trim_transport_equal)) * C) + (mdr_a_pfp_trim_transport_equal)))) -> ((((L)=(t)+(R)) /\ (((forall fom_index_pfp_trim_transport_sourceinput. (exists fom_gap_pfp_trim_transport_sourceinput_index_bound. fom_gap_pfp_trim_transport_sourceinput_index_bound + S (fom_index_pfp_trim_transport_sourceinput) = L) -> exists fom_value_pfp_trim_transport_sourceinput. ((((exists fom_beta_height_pfp_trim_transport_sourceinput_entry. fom_beta_height_pfp_trim_transport_sourceinput_entry + S (fom_value_pfp_trim_transport_sourceinput) = S ((S (fom_index_pfp_trim_transport_sourceinput)) * c)) /\ exists fom_beta_quotient_pfp_trim_transport_sourceinput_entry. b = fom_beta_quotient_pfp_trim_transport_sourceinput_entry * S ((S (fom_index_pfp_trim_transport_sourceinput)) * c) + (fom_value_pfp_trim_transport_sourceinput))) /\ (exists fom_gap_pfp_trim_transport_sourceinput_value_bound. fom_gap_pfp_trim_transport_sourceinput_value_bound + S (fom_value_pfp_trim_transport_sourceinput) = p))) /\ (((forall pfp_repeat_index_trim_transport_sourceremoved. (exists pfa_gap_trim_transport_sourceremovedindex. pfa_gap_trim_transport_sourceremovedindex + S (pfp_repeat_index_trim_transport_sourceremoved) = (t)) -> (((exists ff_h_pfp_trim_transport_sourceremovedentry. ff_h_pfp_trim_transport_sourceremovedentry + S (0) = S ((S (pfp_repeat_index_trim_transport_sourceremoved)) * c)) /\ exists ff_q_pfp_trim_transport_sourceremovedentry. b = ff_q_pfp_trim_transport_sourceremovedentry * S ((S (pfp_repeat_index_trim_transport_sourceremoved)) * c) + (0)))) /\ (((forall pftrim_index_trim_transport_sourcesuffix pftrim_value_trim_transport_sourcesuffix. (exists pfa_gap_trim_transport_sourcesuffixbound. pfa_gap_trim_transport_sourcesuffixbound + S (pftrim_index_trim_transport_sourcesuffix) = (R)) -> (((exists ff_h_pfp_trim_transport_sourcesuffixsource. ff_h_pfp_trim_transport_sourcesuffixsource + S (pftrim_value_trim_transport_sourcesuffix) = S ((S ((t)+pftrim_index_trim_transport_sourcesuffix)) * c)) /\ exists ff_q_pfp_trim_transport_sourcesuffixsource. b = ff_q_pfp_trim_transport_sourcesuffixsource * S ((S ((t)+pftrim_index_trim_transport_sourcesuffix)) * c) + (pftrim_value_trim_transport_sourcesuffix))) -> (((exists ff_h_pfp_trim_transport_sourcesuffixoutput. ff_h_pfp_trim_transport_sourcesuffixoutput + S (pftrim_value_trim_transport_sourcesuffix) = S ((S (pftrim_index_trim_transport_sourcesuffix)) * rc)) /\ exists ff_q_pfp_trim_transport_sourcesuffixoutput. rb = ff_q_pfp_trim_transport_sourcesuffixoutput * S ((S (pftrim_index_trim_transport_sourcesuffix)) * rc) + (pftrim_value_trim_transport_sourcesuffix)))) /\ (((R)=0 \/ (exists pftrim_leading_trim_transport_sourcenormal. ((((exists ff_h_pfp_trim_transport_sourcenormalentry. ff_h_pfp_trim_transport_sourcenormalentry + S (pftrim_leading_trim_transport_sourcenormal) = S ((S (0)) * rc)) /\ exists ff_q_pfp_trim_transport_sourcenormalentry. rb = ff_q_pfp_trim_transport_sourcenormalentry * S ((S (0)) * rc) + (pftrim_leading_trim_transport_sourcenormal))) /\ ((~(pftrim_leading_trim_transport_sourcenormal=0))))))))))))))) -> ((((L)=(t)+(R)) /\ (((forall fom_index_pfp_trim_transport_resultinput. (exists fom_gap_pfp_trim_transport_resultinput_index_bound. fom_gap_pfp_trim_transport_resultinput_index_bound + S (fom_index_pfp_trim_transport_resultinput) = L) -> exists fom_value_pfp_trim_transport_resultinput. ((((exists fom_beta_height_pfp_trim_transport_resultinput_entry. fom_beta_height_pfp_trim_transport_resultinput_entry + S (fom_value_pfp_trim_transport_resultinput) = S ((S (fom_index_pfp_trim_transport_resultinput)) * C)) /\ exists fom_beta_quotient_pfp_trim_transport_resultinput_entry. B = fom_beta_quotient_pfp_trim_transport_resultinput_entry * S ((S (fom_index_pfp_trim_transport_resultinput)) * C) + (fom_value_pfp_trim_transport_resultinput))) /\ (exists fom_gap_pfp_trim_transport_resultinput_value_bound. fom_gap_pfp_trim_transport_resultinput_value_bound + S (fom_value_pfp_trim_transport_resultinput) = p))) /\ (((forall pfp_repeat_index_trim_transport_resultremoved. (exists pfa_gap_trim_transport_resultremovedindex. pfa_gap_trim_transport_resultremovedindex + S (pfp_repeat_index_trim_transport_resultremoved) = (t)) -> (((exists ff_h_pfp_trim_transport_resultremovedentry. ff_h_pfp_trim_transport_resultremovedentry + S (0) = S ((S (pfp_repeat_index_trim_transport_resultremoved)) * C)) /\ exists ff_q_pfp_trim_transport_resultremovedentry. B = ff_q_pfp_trim_transport_resultremovedentry * S ((S (pfp_repeat_index_trim_transport_resultremoved)) * C) + (0)))) /\ (((forall pftrim_index_trim_transport_resultsuffix pftrim_value_trim_transport_resultsuffix. (exists pfa_gap_trim_transport_resultsuffixbound. pfa_gap_trim_transport_resultsuffixbound + S (pftrim_index_trim_transport_resultsuffix) = (R)) -> (((exists ff_h_pfp_trim_transport_resultsuffixsource. ff_h_pfp_trim_transport_resultsuffixsource + S (pftrim_value_trim_transport_resultsuffix) = S ((S ((t)+pftrim_index_trim_transport_resultsuffix)) * C)) /\ exists ff_q_pfp_trim_transport_resultsuffixsource. B = ff_q_pfp_trim_transport_resultsuffixsource * S ((S ((t)+pftrim_index_trim_transport_resultsuffix)) * C) + (pftrim_value_trim_transport_resultsuffix))) -> (((exists ff_h_pfp_trim_transport_resultsuffixoutput. ff_h_pfp_trim_transport_resultsuffixoutput + S (pftrim_value_trim_transport_resultsuffix) = S ((S (pftrim_index_trim_transport_resultsuffix)) * rc)) /\ exists ff_q_pfp_trim_transport_resultsuffixoutput. rb = ff_q_pfp_trim_transport_resultsuffixoutput * S ((S (pftrim_index_trim_transport_resultsuffix)) * rc) + (pftrim_value_trim_transport_resultsuffix)))) /\ (((R)=0 \/ (exists pftrim_leading_trim_transport_resultnormal. ((((exists ff_h_pfp_trim_transport_resultnormalentry. ff_h_pfp_trim_transport_resultnormalentry + S (pftrim_leading_trim_transport_resultnormal) = S ((S (0)) * rc)) /\ exists ff_q_pfp_trim_transport_resultnormalentry. rb = ff_q_pfp_trim_transport_resultnormalentry * S ((S (0)) * rc) + (pftrim_leading_trim_transport_resultnormal))) /\ ((~(pftrim_leading_trim_transport_resultnormal=0)))))))))))))))Constructive proof overview
Generated structural guide
Actual trim witnesses transport under equality of the annotated input prefix, including its zero prefix and genuinely shifted suffix.
The unchanged tactic script uses 5 declared prerequisites and contains 83 exact native proof lines.
Alpha v34 checked-use · first admitted v33 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
matrix_rank_prefix_equality_symmetric Alpha theorem; checked-use authorized prime_field_polynomial_trim_length_bounds Alpha theorem; checked-use authorized matrix_rank_bounded_prefix_transport Alpha theorem; checked-use authorized lt_of_lt_of_le Alpha theorem; checked-use authorized matrix_recursive_lt_add_left Alpha theorem; checked-use authorizedDirect 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.
01Fix variables and assumptionsL1–10
02Fix variables and assumptionsL11–12
03Establish hreverseL13–20
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply matrix rank prefix equality symmetric.
- L13
have hreverse : BetaPrefixEqual(B,C,b,c,L)Definitions: BetaPrefixEqual - L14
specialize matrix_rank_prefix_equality_symmetric (b) - L15
specialize matrix_rank_prefix_equality_symmetric (c) - L16
specialize matrix_rank_prefix_equality_symmetric (B) - L17
specialize matrix_rank_prefix_equality_symmetric (C) - L18
specialize matrix_rank_prefix_equality_symmetric (L) - L19
apply matrix_rank_prefix_equality_symmetric - L20
exact hequal
04Establish hboundsL21–30
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime field polynomial trim length bounds.
- L21
have hbounds : ((exists pfc_gap_trim_transport_cut. pfc_gap_trim_transport_cut+(t)=(L)) /\ ((exists pfc_gap_trim_transport_length. pfc_gap_trim_transport_length+(R)=(L)))) - L22
specialize prime_field_polynomial_trim_length_bounds (p) - L23
specialize prime_field_polynomial_trim_length_bounds (b) - L24
specialize prime_field_polynomial_trim_length_bounds (c) - L25
specialize prime_field_polynomial_trim_length_bounds (L) - L26
specialize prime_field_polynomial_trim_length_bounds (t) - L27
specialize prime_field_polynomial_trim_length_bounds (rb) - L28
specialize prime_field_polynomial_trim_length_bounds (rc) - L29
specialize prime_field_polynomial_trim_length_bounds (R) - L30
apply prime_field_polynomial_trim_length_bounds
05Use earlier factsL31–31
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L31
exact htrim
06Separate the logical casesL32–37
07Use earlier factsL38–38
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L38
exact htrim_left
08Separate the logical casesL39–39
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L39
split
09Use earlier factsL40–48
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L40
specialize matrix_rank_bounded_prefix_transport (b) - L41
specialize matrix_rank_bounded_prefix_transport (c) - L42
specialize matrix_rank_bounded_prefix_transport (B) - L43
specialize matrix_rank_bounded_prefix_transport (C) - L44
specialize matrix_rank_bounded_prefix_transport (L) - L45
specialize matrix_rank_bounded_prefix_transport (p) - L46
apply matrix_rank_bounded_prefix_transport - L47
exact hequal - L48
exact htrim_right_left
10Separate the logical casesL49–49
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L49
split
11Fix variables and assumptionsL50–51
12Use earlier factsL52–61
Instantiate or apply named facts and discharge the corresponding proof obligations.
13Use earlier factsL62–63
14Separate the logical casesL64–64
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L64
split
15Fix variables and assumptionsL65–68
16Use earlier factsL69–75
17Calculate and transport equalitiesL76–76
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L76
rewrite htrim_left
18Use earlier factsL77–83
Instantiate or apply named facts and discharge the corresponding proof obligations.
Original exact command ledger · 83 lines
- 0001
intro p - 0002
intro b - 0003
intro c - 0004
intro B - 0005
intro C - 0006
intro L - 0007
intro t - 0008
intro rb - 0009
intro rc - 0010
intro R - 0011
intro hequal - 0012
intro htrim - 0013
have hreverse : forall mdr_i_pfp_trim_transport_reverse mdr_a_pfp_trim_transport_reverse. (exists mdr_gap_pfp_trim_transport_reverseb. mdr_gap_pfp_trim_transport_reverseb + S (mdr_i_pfp_trim_transport_reverse) = (L)) -> (((exists ff_h_mdr_pfp_trim_transport_reverseo. ff_h_mdr_pfp_trim_transport_reverseo + S (mdr_a_pfp_trim_transport_reverse) = S ((S (mdr_i_pfp_trim_transport_reverse)) * C)) /\ exists ff_q_mdr_pfp_trim_transport_reverseo. B = ff_q_mdr_pfp_trim_transport_reverseo * S ((S (mdr_i_pfp_trim_transport_reverse)) * C) + (mdr_a_pfp_trim_transport_reverse))) -> (((exists ff_h_mdr_pfp_trim_transport_reversen. ff_h_mdr_pfp_trim_transport_reversen + S (mdr_a_pfp_trim_transport_reverse) = S ((S (mdr_i_pfp_trim_transport_reverse)) * c)) /\ exists ff_q_mdr_pfp_trim_transport_reversen. b = ff_q_mdr_pfp_trim_transport_reversen * S ((S (mdr_i_pfp_trim_transport_reverse)) * c) + (mdr_a_pfp_trim_transport_reverse))) - 0014
specialize matrix_rank_prefix_equality_symmetric (b) - 0015
specialize matrix_rank_prefix_equality_symmetric (c) - 0016
specialize matrix_rank_prefix_equality_symmetric (B) - 0017
specialize matrix_rank_prefix_equality_symmetric (C) - 0018
specialize matrix_rank_prefix_equality_symmetric (L) - 0019
apply matrix_rank_prefix_equality_symmetric - 0020
exact hequal - 0021
have hbounds : ((exists pfc_gap_trim_transport_cut. pfc_gap_trim_transport_cut+(t)=(L)) /\ ((exists pfc_gap_trim_transport_length. pfc_gap_trim_transport_length+(R)=(L)))) - 0022
specialize prime_field_polynomial_trim_length_bounds (p) - 0023
specialize prime_field_polynomial_trim_length_bounds (b) - 0024
specialize prime_field_polynomial_trim_length_bounds (c) - 0025
specialize prime_field_polynomial_trim_length_bounds (L) - 0026
specialize prime_field_polynomial_trim_length_bounds (t) - 0027
specialize prime_field_polynomial_trim_length_bounds (rb) - 0028
specialize prime_field_polynomial_trim_length_bounds (rc) - 0029
specialize prime_field_polynomial_trim_length_bounds (R) - 0030
apply prime_field_polynomial_trim_length_bounds - 0031
exact htrim - 0032
cases hbounds - 0033
cases htrim - 0034
cases htrim_right - 0035
cases htrim_right_right - 0036
cases htrim_right_right_right - 0037
split - 0038
exact htrim_left - 0039
split - 0040
specialize matrix_rank_bounded_prefix_transport (b) - 0041
specialize matrix_rank_bounded_prefix_transport (c) - 0042
specialize matrix_rank_bounded_prefix_transport (B) - 0043
specialize matrix_rank_bounded_prefix_transport (C) - 0044
specialize matrix_rank_bounded_prefix_transport (L) - 0045
specialize matrix_rank_bounded_prefix_transport (p) - 0046
apply matrix_rank_bounded_prefix_transport - 0047
exact hequal - 0048
exact htrim_right_left - 0049
split - 0050
intro i - 0051
intro hindex - 0052
specialize hequal (i) - 0053
specialize hequal (0) - 0054
apply hequal - 0055
specialize lt_of_lt_of_le (i) - 0056
specialize lt_of_lt_of_le (t) - 0057
specialize lt_of_lt_of_le (L) - 0058
apply lt_of_lt_of_le - 0059
exact hindex - 0060
exact hbounds_left - 0061
specialize htrim_right_right_left (i) - 0062
apply htrim_right_right_left - 0063
exact hindex - 0064
split - 0065
intro i - 0066
intro a - 0067
intro hindex - 0068
intro hvalue - 0069
specialize htrim_right_right_right_left (i) - 0070
specialize htrim_right_right_right_left (a) - 0071
apply htrim_right_right_right_left - 0072
exact hindex - 0073
specialize hreverse (t+i) - 0074
specialize hreverse (a) - 0075
apply hreverse - 0076
rewrite htrim_left - 0077
specialize matrix_recursive_lt_add_left (i) - 0078
specialize matrix_recursive_lt_add_left (R) - 0079
specialize matrix_recursive_lt_add_left (t) - 0080
apply matrix_recursive_lt_add_left - 0081
exact hindex - 0082
exact hvalue - 0083
exact htrim_right_right_right_right