1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "ground/notation/functions/circled_element_e_1.ma".
16 include "ground/notation/functions/oplusright_3.ma".
17 include "ground/lib/relations.ma".
19 (* LISTS ********************************************************************)
21 inductive list (A:Type[0]): Type[0] :=
23 | list_lcons: A → list A → list A
28 'CircledElementE A = (list_empty A).
32 'OPlusRight A hd tl = (list_lcons A hd tl).
34 rec definition list_all A (R:predicate A) (l:list A) on l ≝ match l with
36 | list_lcons hd tl ⇒ ∧∧ R hd & list_all A R tl