Section Confluence_Beta.
Inductive beta_par_red1 : env -> term -> term -> Prop :=
| par_beta :
forall (e : env) (M M' T : term),
beta_par_red1 (Ax T :: e) M M' ->
forall N N' : term,
beta_par_red1 e N N' ->
beta_par_red1 e (App (Abs T M) N) (subst N' M')
| sort_par_red_b :
forall (e : env) (s : sort), beta_par_red1 e (Srt s) (Srt s)
| ref_par_red_b :
forall (e : env) (n : nat), beta_par_red1 e (Ref n) (Ref n)
| abs_par_red_b :
forall (e : env) (M M' T T' : term),
beta_par_red1 (Ax T' :: e) M M' ->
beta_par_red1 e T T' -> beta_par_red1 e (Abs T M) (Abs T' M')
| app_par_red_b :
forall (e : env) (M M' : term),
beta_par_red1 e M M' ->
forall N N' : term,
beta_par_red1 e N N' -> beta_par_red1 e (App M N) (App M' N')
| prod_par_red_b :
forall (e : env) (M M' : term),
beta_par_red1 e M M' ->
forall N N' : term,
beta_par_red1 (Ax M' :: e) N N' ->
beta_par_red1 e (Prod M N) (Prod M' N').
Hint Resolve par_beta sort_par_red_b ref_par_red_b abs_par_red_b
app_par_red_b prod_par_red_b: pts.
simple induction M; auto with arith pts.
Qed.
Hint Resolve refl_beta_par_red1: pts.
simple induction 1; auto with arith pts; intros.
elim H0; auto with arith pts.
Qed.
simple induction 1; intros; auto with arith pts.
red in |- *; red in |- *.
apply rt_trans with (App (Abs T M') N'); auto with arith pts.
change (red beta e0 (App (Abs T M0) N0) (App (Abs T M') N')) in |- *.
auto with arith pts.
Qed.

Lemma beta_par_red1_stable_env : R_stable_env beta_par_red1.