]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/Basic_2/reducibility/trf.ma
- transitivity of lenv refinement for atomic arity asignment proved! ...
[helm.git] / matita / matita / contribs / lambda_delta / Basic_2 / reducibility / trf.ma
index ccdf59224fd0ea15abc19dbc17b58d250f0b6e5f..67fcf4b677993b6dc1e404676fd9ae1d69dfdf82 100644 (file)
@@ -17,14 +17,14 @@ include "Basic_2/grammar/term_simple.ma".
 (* CONTEXT-FREE REDUCIBLE AND IRREDUCIBLE TERMS *****************************)
 
 (* reducible terms *)
-inductive trf: term โ†’ Prop โ‰
-| trf_abst_sn: โˆ€V,T.   trf V โ†’ trf (๐•”{Abst} V. T)
-| trf_abst_dx: โˆ€V,T.   trf T โ†’ trf (๐•”{Abst} V. T)
-| trf_appl_sn: โˆ€V,T.   trf V โ†’ trf (๐•”{Appl} V. T)
-| trf_appl_dx: โˆ€V,T.   trf T โ†’ trf (๐•”{Appl} V. T)
-| trf_abbr   : โˆ€V,T.           trf (๐•”{Abbr} V. T)
-| trf_cast   : โˆ€V,T.           trf (๐•”{Cast} V. T)
-| trf_beta   : โˆ€V,W,T. trf (๐•”{Appl} V. ๐•”{Abst} W. T)
+inductive trf: predicate term โ‰
+| trf_abst_sn: โˆ€V,T.   trf V โ†’ trf (โ“›V. T)
+| trf_abst_dx: โˆ€V,T.   trf T โ†’ trf (โ“›V. T)
+| trf_appl_sn: โˆ€V,T.   trf V โ†’ trf (โ“V. T)
+| trf_appl_dx: โˆ€V,T.   trf T โ†’ trf (โ“V. T)
+| trf_abbr   : โˆ€V,T.           trf (โ““V. T)
+| trf_cast   : โˆ€V,T.           trf (โ“ฃV. T)
+| trf_beta   : โˆ€V,W,T. trf (โ“V. โ“›W. T)
 .
 
 interpretation
@@ -32,8 +32,7 @@ interpretation
    'Reducible T = (trf T).
 
 (* irreducible terms *)
-definition tif: term โ†’ Prop โ‰
-   ฮปT. โ„[T] โ†’ False.
+definition tif: predicate term โ‰ ฮปT. โ„[T] โ†’ False.
 
 interpretation
    "context-free irreducibility (term)"
@@ -41,7 +40,7 @@ interpretation
 
 (* Basic inversion lemmas ***************************************************)
 
-fact trf_inv_atom_aux: โˆ€I,T. โ„[T] โ†’ T =  ๐•’{I} โ†’ False.
+fact trf_inv_atom_aux: โˆ€I,T. โ„[T] โ†’ T =  โ“ช{I} โ†’ False.
 #I #T * -T
 [ #V #T #_ #H destruct
 | #V #T #_ #H destruct
@@ -53,13 +52,13 @@ fact trf_inv_atom_aux: โˆ€I,T. โ„[T] โ†’ T =  ๐•’{I} โ†’ False.
 ]
 qed.
 
-lemma trf_inv_atom: โˆ€I. โ„[๐•’{I}] โ†’ False.
-/2/ qed-.
+lemma trf_inv_atom: โˆ€I. โ„[โ“ช{I}] โ†’ False.
+/2 width=4/ qed-.
 
-fact trf_inv_abst_aux: โˆ€W,U,T. โ„[T] โ†’ T =  ๐•”{Abst} W. U โ†’ โ„[W] โˆจ โ„[U].
+fact trf_inv_abst_aux: โˆ€W,U,T. โ„[T] โ†’ T =  โ“›W. U โ†’ โ„[W] โˆจ โ„[U].
 #W #U #T * -T
-[ #V #T #HV #H destruct -V T /2/
-| #V #T #HT #H destruct -V T /2/
+[ #V #T #HV #H destruct /2 width=1/
+| #V #T #HT #H destruct /2 width=1/
 | #V #T #_ #H destruct
 | #V #T #_ #H destruct
 | #V #T #H destruct
@@ -68,52 +67,52 @@ fact trf_inv_abst_aux: โˆ€W,U,T. โ„[T] โ†’ T =  ๐•”{Abst} W. U โ†’ โ„[W] โˆจ
 ]
 qed.
 
-lemma trf_inv_abst: โˆ€V,T. โ„[๐•”{Abst}V.T] โ†’ โ„[V] โˆจ โ„[T].
-/2/ qed-.
+lemma trf_inv_abst: โˆ€V,T. โ„[โ“›V.T] โ†’ โ„[V] โˆจ โ„[T].
+/2 width=3/ qed-.
 
-fact trf_inv_appl_aux: โˆ€W,U,T. โ„[T] โ†’ T =  ๐•”{Appl} W. U โ†’
+fact trf_inv_appl_aux: โˆ€W,U,T. โ„[T] โ†’ T =  โ“W. U โ†’
                        โˆจโˆจ โ„[W] | โ„[U] | (๐•Š[U] โ†’ False).
 #W #U #T * -T
 [ #V #T #_ #H destruct
 | #V #T #_ #H destruct
-| #V #T #HV #H destruct -V T /2/
-| #V #T #HT #H destruct -V T /2/
+| #V #T #HV #H destruct /2 width=1/
+| #V #T #HT #H destruct /2 width=1/
 | #V #T #H destruct
 | #V #T #H destruct
-| #V #W0 #T #H destruct -V U
+| #V #W0 #T #H destruct
   @or3_intro2 #H elim (simple_inv_bind โ€ฆ H)
 ]
 qed.
 
-lemma trf_inv_appl: โˆ€W,U. โ„[๐•”{Appl}W.U] โ†’ โˆจโˆจ โ„[W] | โ„[U] | (๐•Š[U] โ†’ False).
-/2/ qed-.
+lemma trf_inv_appl: โˆ€W,U. โ„[โ“W.U] โ†’ โˆจโˆจ โ„[W] | โ„[U] | (๐•Š[U] โ†’ False).
+/2 width=3/ qed-.
 
-lemma tif_inv_abbr: โˆ€V,T. ๐•€[๐•”{Abbr}V.T] โ†’ False.
-/2/ qed-.
+lemma tif_inv_abbr: โˆ€V,T. ๐•€[โ““V.T] โ†’ False.
+/2 width=1/ qed-.
 
-lemma tif_inv_abst: โˆ€V,T. ๐•€[๐•”{Abst}V.T] โ†’ ๐•€[V] โˆง ๐•€[T].
-/4/ qed-.
+lemma tif_inv_abst: โˆ€V,T. ๐•€[โ“›V.T] โ†’ ๐•€[V] โˆง ๐•€[T].
+/4 width=1/ qed-.
 
-lemma tif_inv_appl: โˆ€V,T. ๐•€[๐•”{Appl}V.T] โ†’ โˆงโˆง ๐•€[V] & ๐•€[T] & ๐•Š[T].
-#V #T #HVT @and3_intro /3/
-generalize in match HVT -HVT; elim T -T //
-* // * #U #T #_ #_ #H elim (H ?) -H /2/
+lemma tif_inv_appl: โˆ€V,T. ๐•€[โ“V.T] โ†’ โˆงโˆง ๐•€[V] & ๐•€[T] & ๐•Š[T].
+#V #T #HVT @and3_intro /3 width=1/
+generalize in match HVT; -HVT elim T -T //
+* // * #U #T #_ #_ #H elim (H ?) -H /2 width=1/
 qed-.
 
-lemma tif_inv_cast: โˆ€V,T. ๐•€[๐•”{Cast}V.T] โ†’ False.
-/2/ qed-.
+lemma tif_inv_cast: โˆ€V,T. ๐•€[โ“ฃV.T] โ†’ False.
+/2 width=1/ qed-.
 
 (* Basic properties *********************************************************)
 
-lemma tif_atom: โˆ€I. ๐•€[๐•’{I}].
-/2/ qed.
+lemma tif_atom: โˆ€I. ๐•€[โ“ช{I}].
+/2 width=4/ qed.
 
-lemma tif_abst: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•€[๐•” {Abst}V.T].
+lemma tif_abst: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•€[โ“›V.T].
 #V #T #HV #HT #H
-elim (trf_inv_abst โ€ฆ H) -H /2/
+elim (trf_inv_abst โ€ฆ H) -H /2 width=1/
 qed.
 
-lemma tif_appl: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•Š[T] โ†’ ๐•€[๐•”{Appl}V.T].
+lemma tif_appl: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•Š[T] โ†’ ๐•€[โ“V.T].
 #V #T #HV #HT #S #H
-elim (trf_inv_appl โ€ฆ H) -H /2/
+elim (trf_inv_appl โ€ฆ H) -H /2 width=1/
 qed.