Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').Inductive conv_hn_inv : env -> term -> term -> Prop :=
    | chi_srt : forall (e : env) (s : sort), conv_hn_inv e (Srt s) (Srt s)
    | chi_ref : forall (e : env) (n : nat), conv_hn_inv e (Ref n) (Ref n)
    | chi_abs :
        forall (e : env) (A A' M M' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) M M' -> conv_hn_inv e (Abs A M) (Abs A' M')
    | chi_app :
        forall (e : env) (u u' v v' : term),
        conv R e u u' -> conv R e v v' -> conv_hn_inv e (App u v) (App u' v')
    | chi_prod :
        forall (e : env) (A A' B B' : term),
        conv R e A A' ->
        conv R (Ax A' :: e) B B' -> conv_hn_inv e (Prod A B) (Prod A' B').

Lemma inv_conv_conv : forall (e : env) (x y : term), conv_hn_inv e x y -> conv R e x y.