]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/ng_assembly/common/ascii_lemmas1.ma
freescale porting, work in progress
[helm.git] / helm / software / matita / contribs / ng_assembly / common / ascii_lemmas1.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 (* ********************************************************************** *)
16 (*                          Progetto FreeScale                            *)
17 (*                                                                        *)
18 (*   Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it              *)
19 (*   Ultima modifica: 05/08/2009                                          *)
20 (*                                                                        *)
21 (* ********************************************************************** *)
22
23 include "common/ascii.ma".
24
25 (* ************************** *)
26 (* DEFINIZIONE ASCII MINIMALE *)
27 (* ************************** *)
28
29 ndefinition ascii_destruct_aux ≝
30 Πc1,c2.ΠP:Prop.c1 = c2 →
31  match eq_ascii c1 c2 with [ true ⇒ P → P | false ⇒ P ].
32
33 nlemma ascii_destruct : ascii_destruct_aux.
34  #c1; #c2; #P; #H;
35  nrewrite < H;
36  nelim c1;
37  nnormalize;
38  napply (λx.x).
39 nqed.