]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/CoRN-Decl/algebra/Basics.ma
tagged 0.5.0-rc1
[helm.git] / matita / contribs / CoRN-Decl / algebra / Basics.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 (* This file was automatically generated: do not edit *********************)
16
17 set "baseuri" "cic:/matita/CoRN-Decl/algebra/Basics".
18
19 include "CoRN.ma".
20
21 (* $Id: Basics.v,v 1.7 2004/04/09 15:58:31 lcf Exp $ *)
22
23 (*#* printing alpha %\ensuremath{\alpha}% #α# *)
24
25 (*#* printing beta %\ensuremath{\beta}% #β# *)
26
27 (*#* printing delta %\ensuremath{\delta}% #δ# *)
28
29 (*#* printing eps %\ensuremath{\varepsilon}% #ε# *)
30
31 (*#* printing phi %\ensuremath{\phi}% #φ# *)
32
33 (*#* printing eta %\ensuremath{\eta}% #η# *)
34
35 (*#* printing omega %\ensuremath{\omega}% #ω# *)
36
37 (*#* printing nat %\ensuremath{\mathbb N}% #<b>N</b># *)
38
39 (*#* printing Z %\ensuremath{\mathbb Z}% #<b>Z</b># *)
40
41 include "algebra/ListType.ma".
42
43 (*#* *Basics
44 This is random stuff that should be in the Coq basic library.
45 *)
46
47 inline "cic:/CoRN/algebra/Basics/lt_le_dec.con".
48
49 inline "cic:/CoRN/algebra/Basics/lt_z_two.con".
50
51 inline "cic:/CoRN/algebra/Basics/le_pred.con".
52
53 inline "cic:/CoRN/algebra/Basics/lt_mult_right.con".
54
55 inline "cic:/CoRN/algebra/Basics/le_mult_right.con".
56
57 (*#* The power function does not exist in the standard library *)
58
59 inline "cic:/CoRN/algebra/Basics/power.con".
60
61 (*#* Factorial function. Does not exist in Arith.
62 Needed for special operations on polynomials. *)
63
64 inline "cic:/CoRN/algebra/Basics/fac.con".
65
66 inline "cic:/CoRN/algebra/Basics/nat_fac_gtzero.con".
67
68 (* needed for computational behavior of "Inversion" tactic *)
69
70 (* UNEXPORTED
71 Transparent sym_eq.
72 *)
73
74 (* UNEXPORTED
75 Transparent f_equal.
76 *)
77
78 (* NOTATION
79 Notation Pair := (pair (B:=_)).
80 *)
81
82 (* NOTATION
83 Notation Proj1 := (proj1 (B:=_)).
84 *)
85
86 (* NOTATION
87 Notation Proj2 := (proj2 (B:=_)).
88 *)
89
90 (* Following only needed in finite, but tha's now obsolete
91
92 Lemma deMorgan_or_and: (A,B,X:Prop)((A\/B)->X)->(A->X)/\(B->X).
93 Tauto.
94 Qed.
95
96 Lemma deMorgan_and_or: (A,B,X:Prop)(A->X)/\(B->X)->(A\/B->X).
97 Tauto.
98 Qed.
99
100 Lemma deMorgan_ex_all:
101   (A:Set)(P:A->Prop)(X:Prop)((Ex P)->X)->(a:A)(P a)->X.
102 Intros. Apply H; Exists a; Assumption.
103 Qed.
104
105 Lemma deMorgan_all_ex:
106   (A:Set)(P:A->Prop)(X:Prop)((a:A)(P a)->X)->(Ex P)->X.
107 Intros. Elim H0; Assumption.
108 Qed.
109
110 Implicit Arguments Off.
111
112 Three lemmas for proving properties about definitions made with case
113 distinction to a sumbool, i.e. [{A} + {B}].
114
115 Lemma sumbool_rec_or : (A,B:Prop)(S:Set)(l,r:S)(s:{A}+{B})
116                   (sumbool_rec A B [_:{A}+{B}]S [x:A]l [x:B]r s) = l \/
117                   (sumbool_rec A B [_:{A}+{B}]S [x:A]l [x:B]r s) = r.
118 Intros. Elim s.
119 Intros. Left. Reflexivity.
120 Intros. Right. Reflexivity.
121 Qed.
122 *)
123
124 inline "cic:/CoRN/algebra/Basics/not_r_sumbool_rec.con".
125
126 inline "cic:/CoRN/algebra/Basics/not_l_sumbool_rec.con".
127
128 (* begin hide *)
129
130 (* UNEXPORTED
131 Set Implicit Arguments.
132 *)
133
134 (* UNEXPORTED
135 Unset Strict Implicit.
136 *)
137
138 (* end hide *)
139
140 (*#* **Some results about [Z]
141
142 We consider the injection [inject_nat] from [nat] to [Z] as a
143 coercion. *)
144
145 (* begin hide *)
146
147 coercion cic:/Coq/ZArith/BinInt/Z_of_nat.con 0 (* compounds *).
148
149 (* end hide *)
150
151 inline "cic:/CoRN/algebra/Basics/POS_anti_convert.con".
152
153 inline "cic:/CoRN/algebra/Basics/NEG_anti_convert.con".
154
155 inline "cic:/CoRN/algebra/Basics/lt_O_positive_to_nat.con".
156
157 inline "cic:/CoRN/algebra/Basics/anti_convert_pred_convert.con".
158
159 inline "cic:/CoRN/algebra/Basics/p_is_some_anti_convert.con".
160
161 inline "cic:/CoRN/algebra/Basics/convert_is_POS.con".
162
163 inline "cic:/CoRN/algebra/Basics/min_convert_is_NEG.con".
164
165 inline "cic:/CoRN/algebra/Basics/inject_nat_convert.con".
166
167 inline "cic:/CoRN/algebra/Basics/Z_exh.con".
168
169 inline "cic:/CoRN/algebra/Basics/nats_Z_ind.con".
170
171 inline "cic:/CoRN/algebra/Basics/pred_succ_Z_ind.con".
172
173 inline "cic:/CoRN/algebra/Basics/Zmult_minus_distr_r.con".
174
175 inline "cic:/CoRN/algebra/Basics/Zodd_Zeven_min1.con".
176
177 (* begin hide *)
178
179 (* UNEXPORTED
180 Set Implicit Arguments.
181 *)
182
183 (* UNEXPORTED
184 Unset Strict Implicit.
185 *)
186
187 (* end hide *)
188
189 inline "cic:/CoRN/algebra/Basics/caseZ_diff.con".
190
191 (* begin hide *)
192
193 (* UNEXPORTED
194 Set Strict Implicit.
195 *)
196
197 (* UNEXPORTED
198 Unset Implicit Arguments.
199 *)
200
201 (* end hide *)
202
203 inline "cic:/CoRN/algebra/Basics/caseZ_diff_O.con".
204
205 inline "cic:/CoRN/algebra/Basics/caseZ_diff_Pos.con".
206
207 inline "cic:/CoRN/algebra/Basics/caseZ_diff_Neg.con".
208
209 inline "cic:/CoRN/algebra/Basics/proper_caseZ_diff.con".
210
211 inline "cic:/CoRN/algebra/Basics/diff_Z_ind.con".
212
213 inline "cic:/CoRN/algebra/Basics/Zlt_reg_mult_l.con".
214
215 inline "cic:/CoRN/algebra/Basics/Zlt_opp.con".
216
217 inline "cic:/CoRN/algebra/Basics/Zlt_conv_mult_l.con".
218
219 inline "cic:/CoRN/algebra/Basics/Zgt_not_eq.con".
220
221 inline "cic:/CoRN/algebra/Basics/Zmult_absorb.con".
222
223 (* UNEXPORTED
224 Section Well_foundedT
225 *)
226
227 alias id "A" = "cic:/CoRN/algebra/Basics/Well_foundedT/A.var".
228
229 alias id "R" = "cic:/CoRN/algebra/Basics/Well_foundedT/R.var".
230
231 (*#* The accessibility predicate is defined to be non-informative *)
232
233 inline "cic:/CoRN/algebra/Basics/Acc.ind".
234
235 (* UNEXPORTED
236 End Well_foundedT
237 *)
238
239 (* UNEXPORTED
240 Section AccT
241 *)
242
243 alias id "A" = "cic:/CoRN/algebra/Basics/AccT/A.var".
244
245 inline "cic:/CoRN/algebra/Basics/well_founded.con".
246
247 (* UNEXPORTED
248 End AccT
249 *)
250
251 (* UNEXPORTED
252 Implicit Arguments Acc [A].
253 *)
254
255 (* UNEXPORTED
256 Section IndT
257 *)
258
259 alias id "A" = "cic:/CoRN/algebra/Basics/IndT/A.var".
260
261 alias id "R" = "cic:/CoRN/algebra/Basics/IndT/R.var".
262
263 (* UNEXPORTED
264 Section AccIter
265 *)
266
267 alias id "P" = "cic:/CoRN/algebra/Basics/IndT/AccIter/P.var".
268
269 alias id "F" = "cic:/CoRN/algebra/Basics/IndT/AccIter/F.var".
270
271 inline "cic:/CoRN/algebra/Basics/Acc_inv.con".
272
273 inline "cic:/CoRN/algebra/Basics/Acc_iter.con".
274
275 (* UNEXPORTED
276 End AccIter
277 *)
278
279 alias id "Rwf" = "cic:/CoRN/algebra/Basics/IndT/Rwf.var".
280
281 inline "cic:/CoRN/algebra/Basics/well_founded_induction_type.con".
282
283 (* UNEXPORTED
284 End IndT
285 *)
286
287 (* UNEXPORTED
288 Section InductionT
289 *)
290
291 alias id "A" = "cic:/CoRN/algebra/Basics/InductionT/A.var".
292
293 alias id "f" = "cic:/CoRN/algebra/Basics/InductionT/f.var".
294
295 inline "cic:/CoRN/algebra/Basics/ltof.con".
296
297 inline "cic:/CoRN/algebra/Basics/well_founded_ltof.con".
298
299 inline "cic:/CoRN/algebra/Basics/induction_ltof2T.con".
300
301 (* UNEXPORTED
302 End InductionT
303 *)
304
305 (* UNEXPORTED
306 Section InductionTT
307 *)
308
309 inline "cic:/CoRN/algebra/Basics/lt_wf_rect.con".
310
311 (* UNEXPORTED
312 End InductionTT
313 *)
314