Section Ordre_de_Normalisation.
Definition value := (env * term)%type.
Inductive subterm : value -> value -> Prop :=
| sbtrm_abs_l :
forall (e : env) (A M : term), subterm (e, A) (e, Abs A M)
| sbtrm_abs_r :
forall (e : env) (A A' M : term),
subterm (Ax A' :: e, M) (e, Abs A M)
| sbtrm_app_l :
forall (e : env) (u v : term), subterm (e, u) (e, App u v)
| sbtrm_app_r :
forall (e : env) (u v : term), subterm (e, v) (e, App u v)
| sbtrm_prod_l :
forall (e : env) (A B : term), subterm (e, A) (e, Prod A B)
| sbtrm_prod_r :
forall (e : env) (A A' B : term),
subterm (Ax A' :: e, B) (e, Prod A B).
Hint Resolve sbtrm_abs_l sbtrm_abs_r sbtrm_app_l sbtrm_app_r sbtrm_prod_l
sbtrm_prod_r: pts.
red in |- *.
simple destruct a.
intros.
generalize e.
elim t; intros; apply Acc_intro; intros.
inversion_clear H.
inversion_clear H.
inversion_clear H1; auto with pts.
inversion_clear H1; auto with pts.
inversion_clear H1; auto with pts.
Qed.
Inductive R_exp : value -> value -> Prop :=
Rex_intro :
forall (e : env) (x y : term), ctxt R e x y -> R_exp (e, y) (e, x).
Hint Resolve Rex_intro: pts.

Lemma commut_subterm_R_exp : commut value subterm R_exp.