include "ground/arith/nat_le_plus.ma". include "ground/arith/nat_le_pred.ma". lemma tls_succ_unwind2_rmap_append_closed_Lq_dx (o) (f) (p) (q) (n): q ϵ 𝐂❨o,n❩ → ▶[f]p ≗ ⇂*[↑n]▶[f](p●𝗟◗q). /2 width=2 by tls_succ_plus_unwind2_rmap_push_closed/ qed-. lemma xap_le_unwind2_rmap_append_closed_dx (o) (f) (p) (q) (n): q ϵ 𝐂❨o,n❩ → ∀m. m ≤ n → ▶[f]q@❨m❩ = ▶[f](p●q)@❨m❩. #o #f #p #q #n #Hq elim Hq -q -n [|*: #q #n [ #k #_ ] #_ #IH ] #m #Hm [ <(nle_inv_zero_dx … Hm) -m // | H0 -H0 Ho // Ho // nrplus_inj_dx >nrplus_inj_sn >nsucc_unfold >nplus_succ_dx (xap_unwind2_rmap_append_closed_true_dx_depth f p … Hb) -Hb >(nap_plus_unwind2_rmap_append_closed_Lq_dx_depth … Hq) -Hq // qed-. lemma tls_succ_plus_unwind2_rmap_append_closed_bLq_dx (o) (f) (p) (b) (q) (m) (n): b ϵ 𝐂❨Ⓣ,m❩ → q ϵ 𝐂❨o,n❩ → ▶[f]p ≗ ⇂*[↑(m+n)]▶[f](p●b●𝗟◗q). #o #f #p #b #q #m #n #Hb #Hq >nplus_succ_dx list_append_assoc @(stream_eq_trans … (tls_unwind2_rmap_append_closed_true_dx … Hb)) -Hb /3 width=2 by stream_tls_eq_repl, tls_succ_unwind2_rmap_append_closed_Lq_dx/ qed-.