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_2/lib/arith.ma".
17 (* APPLICABILITY CONDITION *************************************************)
19 (* applicability condition specification *)
20 record ac: Type[0] ≝ {
21 (* degree of the sort *)
25 (* applicability condition postulates *)
26 record ac_props (a): Prop ≝ {
27 ac_dec: ∀m. Decidable (∃∃n. m ≤ n & appl a n)
30 (* Notable specifications ***************************************************)
32 definition apply_top: predicate nat ≝ λn. ⊤.
34 definition ac_top: ac ≝ mk_ac apply_top.
36 lemma ac_top_props: ac_props ac_top ≝ mk_ac_props ….
37 /3 width=3 by or_introl, ex2_intro/
40 definition ac_eq (k): ac ≝ mk_ac (eq … k).
42 lemma ac_eq_props (k): ac_props (ac_eq k) ≝ mk_ac_props ….
43 #m elim (le_dec m k) #Hm
44 [ /3 width=3 by or_introl, ex2_intro/
45 | @or_intror * #n #Hmn #H destruct /2 width=1 by/