(************************************************************************)
(*         *      The Rocq Prover / The Rocq Development Team           *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)
(** Author: Cristina Cornes From : Constructing Recursion Operators in Type Theory L. Paulson  JSC (1986) 2, 325-355 *)
Section Wf_Disjoint_Union.
Variables A B : Type.
Variable leA : A -> A -> Prop.
Variable leB : B -> B -> Prop.
Notation Le_AsB := (le_AsB A B leA leB).

Lemma acc_B_sum :
well_founded leA -> forall x:B, Acc leB x -> Acc Le_AsB (inr A x).