(* This program is free software; you can redistribute it and/or      *)
(* modify it under the terms of the GNU Lesser General Public License *)
(* as published by the Free Software Foundation; either version 2.1   *)
(* of the License, or (at your option) any later version.             *)
(*                                                                    *)
(* This program is distributed in the hope that it will be useful,    *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of     *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      *)
(* GNU General Public License for more details.                       *)
(*                                                                    *)
(* You should have received a copy of the GNU Lesser General Public   *)
(* License along with this program; if not, write to the Free         *)
(* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *)
(* 02110-1301 USA                                                     *)
(** %\subsection*{ support :  cast\_seq\_lengths.v }%*)
Set Implicit Arguments.
Unset Strict Implicit.
Require Export finite.
(** - An important and annoying obstacle when dealing with seqs is that v and w belong to the same setoid only if their types are convertible. This means that v:(seq n A) and w:(seq k A) cannot be compared, even if we have a proof that n=k. We cannot even %{\em state}% the equality because the expression v='w is ill-typed! - In this file we provide tools to convert between sequences (and their indices) of the same length, if only we are given a proof of the fact. Note that these casting-functions get in the way of many useful lemmas, unfortunately... *)
Section MAIN.

(* Specifications: *)
Lemma lt_comp : forall m n n' : Nat, m < n -> n =' n' in _ -> m < n'.
intros.