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 "lambda/paths/trace.ma".
17 (* DECOMPOSED TRACE *********************************************************)
19 (* Policy: decomposed trace metavariables: P, Q *)
20 (* Note: this is a binary tree on traces *)
21 inductive dtrace: Type[0] ≝
23 | tree_cons: trace → dtrace → dtrace → dtrace
26 let rec size (P:dtrace) on P ≝ match P with
28 | tree_cons s Q1 Q2 ⇒ size Q2 + size Q1 + |s|
31 interpretation "decomposed trace size" 'card P = (size P).