]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/Basic_2/reducibility/trf.ma
- notation fix for reducible and normal forms
[helm.git] / matita / matita / contribs / lambda_delta / Basic_2 / reducibility / trf.ma
index ccdf59224fd0ea15abc19dbc17b58d250f0b6e5f..3ae5bfd176e142ef0a505e4fa93f4e8d0e1c585d 100644 (file)
 
 include "Basic_2/grammar/term_simple.ma".
 
-(* CONTEXT-FREE REDUCIBLE AND IRREDUCIBLE TERMS *****************************)
+(* CONTEXT-FREE REDUCIBLE 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
    "context-free reducibility (term)"
    'Reducible T = (trf T).
 
-(* irreducible terms *)
-definition tif: term โ†’ Prop โ‰
-   ฮปT. โ„[T] โ†’ False.
-
-interpretation
-   "context-free irreducibility (term)"
-   'NotReducible T = (tif T).
-
 (* 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 +45,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 +60,22 @@ 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 โ†’
-                       โˆจโˆจ โ„[W] | โ„[U] | (๐•Š[U] โ†’ False).
+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 tif_inv_abbr: โˆ€V,T. ๐•€[๐•”{Abbr}V.T] โ†’ False.
-/2/ qed-.
-
-lemma tif_inv_abst: โˆ€V,T. ๐•€[๐•”{Abst}V.T] โ†’ ๐•€[V] โˆง ๐•€[T].
-/4/ 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/
-qed-.
-
-lemma tif_inv_cast: โˆ€V,T. ๐•€[๐•”{Cast}V.T] โ†’ False.
-/2/ qed-.
-
-(* Basic properties *********************************************************)
-
-lemma tif_atom: โˆ€I. ๐•€[๐•’{I}].
-/2/ qed.
-
-lemma tif_abst: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•€[๐•” {Abst}V.T].
-#V #T #HV #HT #H
-elim (trf_inv_abst โ€ฆ H) -H /2/
-qed.
-
-lemma tif_appl: โˆ€V,T. ๐•€[V] โ†’  ๐•€[T] โ†’  ๐•Š[T] โ†’ ๐•€[๐•”{Appl}V.T].
-#V #T #HV #HT #S #H
-elim (trf_inv_appl โ€ฆ H) -H /2/
-qed.
+lemma trf_inv_appl: โˆ€W,U. ๐‘[โ“W.U] โ†’ โˆจโˆจ ๐‘[W] | ๐‘[U] | (๐’[U] โ†’ False).
+/2 width=3/ qed-.