(* 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                                                     *)
(** * bases_from_generating_sets.v *)
Set Implicit Arguments.
Unset Strict Implicit.
Require Export bases.
Require Export finite_subsets.
Require Export lin_dep_facts.
Section MAIN.
Variable F : field.
Variable V : vectorspace F.
Variable W0 : part_set V.
Variable H : is_finite_subset W0.
Variable H0 : generates W0 (full V).

(** - %\intoc{\bf Theorem 1.9}% in various flavours: *)
Lemma every_finite_generating_set_has_a_subset_that_is_a_basis :
exists W : part_set W0, is_basis (inject_subsets W).