Changeset 268 for Deliverables/D4.1/Matita
- Timestamp:
- Nov 23, 2010, 5:44:42 PM (10 years ago)
- Location:
- Deliverables/D4.1/Matita
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Deliverables/D4.1/Matita/ASM.ma
r264 r268 2 2 include "BitVectorTrie.ma". 3 3 include "String.ma". 4 5 interpretation "Cartesian" 'product A B = (Cartesian A B).6 notation "hvbox(a break ⊎ b)"7 left associative with precedence 508 for @{ 'disjoint_union $a $b }.9 interpretation "Either" 'disjoint_union A B = (Either A B).10 interpretation "Bool" 'or a b = (inclusive_disjunction a b).11 4 12 5 ninductive addressing_mode: Type[0] ≝ -
Deliverables/D4.1/Matita/BitVectorTrie.ma
r260 r268 8 8 | Node: ∀n: Nat. BitVectorTrie A n → BitVectorTrie A n → BitVectorTrie A (S n) 9 9 | Stub: ∀n: Nat. BitVectorTrie A n. 10 11 notation "hvbox(t⌈h ↦ o⌉)"12 with precedence 4513 for @{ match (? : $o=$h) with [ refl ⇒ $t ] }.14 15 notation "⊥" with precedence 9016 for @{ match ? in False with [ ] }.17 10 18 11 nlet rec lookup (A: Type[0]) (n: Nat) -
Deliverables/D4.1/Matita/Bool.ma
r260 r268 44 44 ]. 45 45 46 interpretation "Bool" 'or a b = (inclusive_disjunction a b). 47 46 48 nlet rec negation (b: Bool) on b ≝ 47 49 match b with -
Deliverables/D4.1/Matita/Cartesian.ma
r246 r268 2 2 3 3 nrecord Cartesian (A: Type[0]) (B: Type[0]): Type[0] ≝ 4 { 5 first: A; 4 { first: A; 6 5 second: B 7 6 }. 8 7 9 notation "(l,r)" 10 non associative with precedence 90 11 for @{ 'cartesian $l $r }. 12 13 interpretation "Cartesian product" 'cartesian l r = (mk_Cartesian ? ? l r). 8 interpretation "Cartesian product" 'pair l r = (mk_Cartesian ? ? l r). 9 interpretation "Cartesian" 'product A B = (Cartesian A B). -
Deliverables/D4.1/Matita/Connectives.ma
r260 r268 30 30 ninductive Not (A:Prop): Prop ≝ 31 31 nmk: (A → False) → Not A. 32 33 notation "⊥" with precedence 90 34 for @{ match ? in False with [ ] }. 32 35 33 36 interpretation "logical not" 'not x = (Not x). -
Deliverables/D4.1/Matita/Either.ma
r260 r268 7 7 Left: A → Either A B 8 8 | Right: B → Either A B. 9 10 notation "hvbox(a break ⊎ b)" 11 left associative with precedence 50 12 for @{ 'disjoint_union $a $b }. 13 interpretation "Either" 'disjoint_union A B = (Either A B). 9 14 10 15 ndefinition is_left ≝ -
Deliverables/D4.1/Matita/Exponential.ma
r263 r268 5 5 include "Nat.ma". 6 6 7 include " Equality.ma".7 include "Plogic/equality.ma". 8 8 include "Connectives.ma". 9 9 -
Deliverables/D4.1/Matita/Plogic/equality.ma
r260 r268 17 17 ninductive eq (A:Type[2]) (x:A) : A → Prop ≝ 18 18 refl: eq A x x. 19 19 20 notation "hvbox(t⌈h ↦ o⌉)" 21 with precedence 45 22 for @{ match (? : $o=$h) with [ refl ⇒ $t ] }. 23 20 24 interpretation "leibnitz's equality" 'eq t x y = (eq t x y). 21 25 -
Deliverables/D4.1/Matita/Vector.ma
r266 r268 5 5 6 6 include "Util.ma". 7 8 include "Universes.ma".9 7 10 8 include "Nat.ma". … … 133 131 ]. 134 132 //. 133 nqed. 134 135 nlet rec split (A: Type[0]) (n,m: Nat) on m 136 : Vector A (m+n) → (Vector A m) × (Vector A n) 137 ≝ 138 match m return λm. Vector A (m+n) → (Vector A m) × (Vector A n) with 139 [ Z ⇒ λv.〈[[ ]], v〉 140 | S m' ⇒ λv. 141 match v return λl.λ_:Vector A l.l = S (m' + n) → (Vector A (S m')) × (Vector A n) with 142 [ Empty ⇒ λK.⊥ 143 | Cons o he tl ⇒ λK. 144 match split A n m' (tl⌈Vector A (m'+n)↦Vector A o⌉) with 145 [ mk_Cartesian v1 v2 ⇒ 〈he::v1, v2〉 ]] (?: (S (m' + n)) = S (m' + n))]. 146 //; ndestruct; //. 135 147 nqed. 136 148 -
Deliverables/D4.1/Matita/depends
r264 r268 1 1 Arithmetic.ma BitVector.ma Bool.ma Connectives.ma Exponential.ma List.ma Nat.ma Plogic/equality.ma Universes.ma 2 Exponential.ma Connectives.ma Equality.ma Nat.ma2 Exponential.ma Connectives.ma Nat.ma Plogic/equality.ma 3 3 BitVectorTrie.ma BitVector.ma Bool.ma Maybe.ma 4 4 Cartesian.ma Universes.ma … … 7 7 Universes.ma 8 8 ASM.ma BitVectorTrie.ma Either.ma String.ma 9 Vector.ma Cartesian.ma List.ma Maybe.ma Nat.ma Plogic/equality.ma U niverses.ma Util.ma9 Vector.ma Cartesian.ma List.ma Maybe.ma Nat.ma Plogic/equality.ma Util.ma 10 10 Char.ma Universes.ma 11 11 Connectives.ma Plogic/equality.ma … … 20 20 Plogic/equality.ma Universes.ma 21 21 Nat.ma Bool.ma Cartesian.ma Connectives.ma 22 Equality.ma Universes.ma
Note: See TracChangeset
for help on using the changeset viewer.