]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/preterm.ma
9da0aa838e6f1a9b018063deb566c83d615aa80f
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / preterm.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "delayed_updating/syntax/prototerm.ma".
16 include "delayed_updating/syntax/path_structure.ma".
17 include "delayed_updating/notation/relations/predicate_t_hook_1.ma".
18
19 (* PRETERM ******************************************************************)
20
21 (* Note: different root paths have different structure *)
22 definition structure_injective: predicate prototerm ≝
23            λt. ∀p1,p2. p1 ϵ ▵t → p2 ϵ ▵t → ⊗p1 = ⊗p2 → p1 = p2
24 .
25
26 (* Note: a preterm is a prototerm satislying the conditions above *)
27 record is_preterm (t): Prop ≝
28 {
29   is_pt_injective: structure_injective t
30 }.
31
32 interpretation
33   "preterm condition (prototerm)"
34   'PredicateTHook t = (is_preterm t).