]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/ng_assembly/freescale/translation_lemmas.ma
(no commit message)
[helm.git] / helm / software / matita / contribs / ng_assembly / freescale / translation_lemmas.ma
diff --git a/helm/software/matita/contribs/ng_assembly/freescale/translation_lemmas.ma b/helm/software/matita/contribs/ng_assembly/freescale/translation_lemmas.ma
deleted file mode 100755 (executable)
index 18db2df..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-(**************************************************************************)
-(*       ___                                                              *)
-(*      ||M||                                                             *)
-(*      ||A||       A project by Andrea Asperti                           *)
-(*      ||T||                                                             *)
-(*      ||I||       Developers:                                           *)
-(*      ||T||         The HELM team.                                      *)
-(*      ||A||         http://helm.cs.unibo.it                             *)
-(*      \   /                                                             *)
-(*       \ /        This file is distributed under the terms of the       *)
-(*        v         GNU General Public License Version 2                  *)
-(*                                                                        *)
-(**************************************************************************)
-
-(* ********************************************************************** *)
-(*                          Progetto FreeScale                            *)
-(*                                                                        *)
-(*   Sviluppato da: Ing. Cosimo Oliboni, oliboni@cs.unibo.it              *)
-(*   Ultima modifica: 05/08/2009                                          *)
-(*                                                                        *)
-(* ********************************************************************** *)
-
-include "freescale/translation.ma".
-include "num/byte8_lemmas.ma".
-
-(* ******************************************************* *)
-(* TRADUZIONE MCU+OPCODE+MODALITA'+ARGOMENTI → ESADECIMALE *)
-(* ******************************************************* *)
-
-nlemma tbyte8_destruct : ∀m,b1,b2.TByte m b1 = TByte m b2 → b1 = b2.
- #m; #b1; #b2; #H;
- nchange with (match TByte m b2 with [ TByte a ⇒ b1 = a ]);
- nrewrite < H;
- nnormalize;
- napply refl_eq.
-nqed.
-
-nlemma symmetric_eqtbyte8 : ∀m.∀tb1,tb2:t_byte8 m.eq_tbyte8 m tb1 tb2 = eq_tbyte8 m tb2 tb1.
- #m; #tb1; nelim tb1; #b1; #tb2; nelim tb2; #b2;
- nchange with ((eq_b8 b1 b2) = (eq_b8 b2 b1));
- napply (symmetric_eqb8 b1 b2).
-nqed.
-
-nlemma eqtbyte8_to_eq : ∀m.∀tb1,tb2:t_byte8 m.eq_tbyte8 m tb1 tb2 = true → tb1 = tb2.
- #m; #tb1; nelim tb1; #b1; #tb2; nelim tb2; #b2;
- nchange with ((eq_b8 b1 b2 = true) → ?);
- #H;
- nrewrite > (eqb8_to_eq b1 b2 H);
- napply refl_eq.
-nqed.
-
-nlemma eq_to_eqtbyte8 : ∀m.∀tb1,tb2:t_byte8 m.tb1 = tb2 → eq_tbyte8 m tb1 tb2 = true.
- #m; #tb1; nelim tb1; #b1; #tb2; nelim tb2; #b2;
- nchange with (? → (eq_b8 b1 b2 = true));
- #H;
- nrewrite > (tbyte8_destruct m … H);
- nrewrite > (eq_to_eqb8 b2 b2 (refl_eq …));
- napply refl_eq.
-nqed.
-
-nlemma decidable_tbyte8 : ∀m.∀x,y:t_byte8 m.decidable (x = y).
- #m; #x; nelim x; #e1; #y; nelim y; #e2;
- nnormalize;
- napply (or2_elim (? = ?) (? ≠ ?) ? (decidable_b8 e1 e2) …);
- ##[ ##2: #H; napply (or2_intro2 (? = ?) (? ≠ ?) … ); nnormalize; #H1; napply (H (tbyte8_destruct m … H1))
- ##| ##1: #H; nrewrite > H; napply (or2_intro1 (? = ?) (? ≠ ?) (refl_eq …))
- ##]
-nqed.
-
-nlemma neqtbyte8_to_neq : ∀m.∀tb1,tb2:t_byte8 m.(eq_tbyte8 m tb1 tb2 = false) → (tb1 ≠ tb2).
- #m; #tb1; nelim tb1; #b1; #tb2; nelim tb2; #b2;
- nchange with (((eq_b8 b1 b2) = false) → ?);
- #H;
- nnormalize;
- #H1;
- napply (neqb8_to_neq … H);
- napply (tbyte8_destruct m … H1).
-nqed.
-
-nlemma neq_to_neqtbyte8 : ∀m.∀tb1,tb2:t_byte8 m.tb1 ≠ tb2 → eq_tbyte8 m tb1 tb2 = false.
- #m; #tb1; nelim tb1; #b1; #tb2; nelim tb2; #b2;
- #H; nchange with ((eq_b8 b1 b2) = false);
- napply (neq_to_neqb8 b1 b2 ?);
- nnormalize;
- #H1;
- nrewrite > H1 in H:(%); #H;
- napply (H (refl_eq …)).
-nqed.