1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "delayed_updating/relocation/tr_minus.ma".
16 include "ground/lib/stream_eq.ma".
18 (* RIGHT SUBTRACTION FOR TOTAL RELOCATION MAPS ******************************)
20 (* Constructions with tr_eq *************************************************)
22 corec lemma tr_minus_eq_repl (n):
23 stream_eq_repl … (λf1,f2. f1-n ≗ f2-n).
25 [ #f1 #f2 #Hf -tr_minus_eq_repl //
26 | #q * #p1 #f1 * #p2 #f2 #Hf
27 cases (stream_eq_inv_cons_bi … Hf) -Hf [|*: // ] * #Hf -p2
28 cases tr_minus_cons_inj cases tr_minus_cons_inj