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 "logic/equality.ma".
16 include "nat/compare.ma".
17 include "list/list.ma".
20 (*** useful definitions and lemmas not really related to Fsub ***)
26 |false \Rightarrow m].
28 lemma le_n_max_m_n: \forall m,n:nat. n \le max m n.
32 [simplify.intros.apply le_n
33 |simplify.intros.autobatch
37 lemma le_m_max_m_n: \forall m,n:nat. m \le max m n.
41 [simplify.intro.assumption
42 |simplify.intros.autobatch
46 notation > "hvbox(x ∈ l)"
47 non associative with precedence 30 for @{ 'inlist $x $l }.
48 notation < "hvbox(x \nbsp ∈ \nbsp l)"
49 non associative with precedence 30 for @{ 'inlist $x $l }.
50 interpretation "item in list" 'inlist x l =
51 (cic:/matita/list/in/in_list.ind#xpointer(1/1) _ x l).
53 lemma max_case : \forall m,n.(max m n) = match (leb m n) with
55 | false \Rightarrow m ].
56 intros;elim m;simplify;reflexivity;