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 set "baseuri" "cic:/matita/LAMBDA-TYPES/Unified/SUB/Switch/defs".
17 (* POLARITY SWITCH RELATION
20 include "SUB/Term/defs.ma".
22 inductive Switch (q1:Bool): Head \to Bool \to Prop \def
23 | switch_bind: \forall q2,p. (p -- q1 == q2) \to
24 \forall r. Switch q1 (bind p r) q2
25 | switch_flat: \forall q2,p. (p -- q1 == q2) \to
26 \forall r. Switch q1 (flat p r) q2