]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/syntax/deq_deq.ma
b69e2dc4eb7dbc9facbcc6fad038d7b5db088436
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / syntax / deq_deq.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "basic_2/syntax/deq.ma".
16
17 (* DEGREE-BASED EQUIVALENCE ON TERMS ****************************************)
18
19 (* Main properties **********************************************************)
20
21 theorem deq_trans: ∀h,o. Transitive … (deq h o).
22 #h #o #T1 #T #H elim H -T1 -T
23 [ #s1 #s #d #Hs1 #Hs #X #H
24   elim (deq_inv_sort1_deg … H … Hs) -s /2 width=3 by deq_sort/
25 | #i1 #i #H <(deq_inv_lref1 … H) -H //
26 | #l1 #l #H <(deq_inv_gref1 … H) -H //
27 | #I #V1 #V #T1 #T #_ #_ #IHV #IHT #X #H destruct
28   elim (deq_inv_pair1 … H) -H /3 width=1 by deq_pair/
29 ]
30 qed-.