1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* This file was automatically generated: do not edit *********************)
19 (* $Id: Max_AbsIR.v,v 1.13 2004/04/23 10:01:04 lcf Exp $ *)
21 (*#* printing Max %\ensuremath{\max}% *)
23 (*#* printing Min %\ensuremath{\min}% *)
25 include "reals/CauchySeq.ma".
35 (*#* ** Maximum, Minimum and Absolute Value
38 Let [x] and [y] be reals
39 (we will define the maximum of [x] and [y]).
43 alias id "x" = "cic:/CoRN/reals/Max_AbsIR/Maximum/Max_function/x.var".
45 alias id "y" = "cic:/CoRN/reals/Max_AbsIR/Maximum/Max_function/y.var".
47 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_seq.con".
49 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_seq_char.con".
51 inline procedural "cic:/CoRN/reals/Max_AbsIR/Cauchy_Max_seq.con".
53 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_CauchySeq.con".
55 inline procedural "cic:/CoRN/reals/Max_AbsIR/MAX.con".
58 Constructively, the elementary properties of the maximum function are:
61 - [z [<] Max(x,y) -> z [<] x or z [<] y].
63 (This can be more concisely expressed as
64 [z [<] Max(x,y) Iff z [<] x or z [<] y]).
65 From these elementary properties we can prove all other properties, including
66 strong extensionality.
67 With strong extensionality, we can make the binary operation [Max].
68 (So [Max] is [MAX] coupled with some proofs.)
71 inline procedural "cic:/CoRN/reals/Max_AbsIR/lft_leEq_MAX.con".
73 inline procedural "cic:/CoRN/reals/Max_AbsIR/rht_leEq_MAX.con".
75 inline procedural "cic:/CoRN/reals/Max_AbsIR/less_MAX_imp.con".
81 inline procedural "cic:/CoRN/reals/Max_AbsIR/MAX_strext.con".
83 inline procedural "cic:/CoRN/reals/Max_AbsIR/MAX_wd.con".
86 Section properties_of_Max
91 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max.con".
93 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_wd_unfolded.con".
95 inline procedural "cic:/CoRN/reals/Max_AbsIR/lft_leEq_Max.con".
97 inline procedural "cic:/CoRN/reals/Max_AbsIR/rht_leEq_Max.con".
99 inline procedural "cic:/CoRN/reals/Max_AbsIR/less_Max_imp.con".
101 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_leEq.con".
103 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_less.con".
105 inline procedural "cic:/CoRN/reals/Max_AbsIR/equiv_imp_eq_max.con".
107 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_id.con".
109 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_comm.con".
111 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_imp_Max_is_rht.con".
113 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_is_rht_imp_leEq.con".
115 inline procedural "cic:/CoRN/reals/Max_AbsIR/Max_minus_eps_leEq.con".
117 inline procedural "cic:/CoRN/reals/Max_AbsIR/max_one_ap_zero.con".
119 inline procedural "cic:/CoRN/reals/Max_AbsIR/pos_max_one.con".
121 inline procedural "cic:/CoRN/reals/Max_AbsIR/x_div_Max_leEq_x.con".
124 End properties_of_Max
132 Hint Resolve Max_id: algebra.
141 The minimum is defined by the formula
142 [Min(x,y) [=] [--]Max( [--]x,[--]y)].
145 inline procedural "cic:/CoRN/reals/Max_AbsIR/MIN.con".
147 inline procedural "cic:/CoRN/reals/Max_AbsIR/MIN_wd.con".
149 inline procedural "cic:/CoRN/reals/Max_AbsIR/MIN_strext.con".
151 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min.con".
153 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_wd_unfolded.con".
155 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_strext_unfolded.con".
157 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_leEq_lft.con".
159 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_leEq_rht.con".
161 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_less_imp.con".
163 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_Min.con".
165 inline procedural "cic:/CoRN/reals/Max_AbsIR/less_Min.con".
167 inline procedural "cic:/CoRN/reals/Max_AbsIR/equiv_imp_eq_min.con".
169 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_id.con".
171 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_comm.con".
173 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_imp_Min_is_lft.con".
175 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_is_lft_imp_leEq.con".
177 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_Min_plus_eps.con".
179 alias id "a" = "cic:/CoRN/reals/Max_AbsIR/Minimum/a.var".
181 alias id "b" = "cic:/CoRN/reals/Max_AbsIR/Minimum/b.var".
183 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_leEq_Max.con".
185 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_leEq_Max'.con".
187 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min3_leEq_Max3.con".
189 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_less_Max.con".
191 inline procedural "cic:/CoRN/reals/Max_AbsIR/ap_imp_Min_less_Max.con".
193 inline procedural "cic:/CoRN/reals/Max_AbsIR/Min_less_Max_imp_ap.con".
199 (*#**********************************)
205 (*#**********************************)
207 (*#* *** Absolute value *)
209 inline procedural "cic:/CoRN/reals/Max_AbsIR/ABSIR.con".
211 inline procedural "cic:/CoRN/reals/Max_AbsIR/ABSIR_strext.con".
213 inline procedural "cic:/CoRN/reals/Max_AbsIR/ABSIR_wd.con".
215 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR.con".
217 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_wd.con".
219 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_wdl.con".
221 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_wdr.con".
223 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIRz_isz.con".
225 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_nonneg.con".
227 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_pos.con".
229 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_cancel_ap_zero.con".
231 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_resp_ap_zero.con".
233 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_AbsIR.con".
235 inline procedural "cic:/CoRN/reals/Max_AbsIR/inv_leEq_AbsIR.con".
237 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsSmall_e.con".
239 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsSmall_imp_AbsIR.con".
241 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_eq_AbsSmall.con".
243 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_imp_AbsSmall.con".
245 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsSmall_transitive.con".
247 inline procedural "cic:/CoRN/reals/Max_AbsIR/zero_less_AbsIR_plus_one.con".
249 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_inv.con".
251 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_minus.con".
253 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_eq_x.con".
255 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_eq_inv_x.con".
257 inline procedural "cic:/CoRN/reals/Max_AbsIR/less_AbsIR.con".
259 inline procedural "cic:/CoRN/reals/Max_AbsIR/leEq_distr_AbsIR.con".
261 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_approach_zero.con".
263 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_eq_zero.con".
265 inline procedural "cic:/CoRN/reals/Max_AbsIR/Abs_Max.con".
267 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_str_bnd.con".
269 inline procedural "cic:/CoRN/reals/Max_AbsIR/AbsIR_bnd.con".
276 Hint Resolve AbsIRz_isz: algebra.
280 Section Part_Function_Max
283 (*#* *** Functional Operators
285 The existence of these operators allows us to lift them to functions. We will define the maximum, minimum and absolute value of two partial functions.
288 Let [F,G:PartIR] and denote by [P] and [Q] their respective domains.
292 alias id "F" = "cic:/CoRN/reals/Max_AbsIR/Part_Function_Max/F.var".
294 alias id "G" = "cic:/CoRN/reals/Max_AbsIR/Part_Function_Max/G.var".
298 inline procedural "cic:/CoRN/reals/Max_AbsIR/Part_Function_Max/P.con" "Part_Function_Max__".
300 inline procedural "cic:/CoRN/reals/Max_AbsIR/Part_Function_Max/Q.con" "Part_Function_Max__".
304 inline procedural "cic:/CoRN/reals/Max_AbsIR/part_function_Max_strext.con".
306 inline procedural "cic:/CoRN/reals/Max_AbsIR/FMax.con".
309 End Part_Function_Max
313 Section Part_Function_Abs
316 alias id "F" = "cic:/CoRN/reals/Max_AbsIR/Part_Function_Abs/F.var".
318 alias id "G" = "cic:/CoRN/reals/Max_AbsIR/Part_Function_Abs/G.var".
322 inline procedural "cic:/CoRN/reals/Max_AbsIR/Part_Function_Abs/P.con" "Part_Function_Abs__".
324 inline procedural "cic:/CoRN/reals/Max_AbsIR/Part_Function_Abs/Q.con" "Part_Function_Abs__".
328 inline procedural "cic:/CoRN/reals/Max_AbsIR/FMin.con".
330 inline procedural "cic:/CoRN/reals/Max_AbsIR/FAbs.con".
336 inline procedural "cic:/CoRN/reals/Max_AbsIR/FMin_char.con".
342 inline procedural "cic:/CoRN/reals/Max_AbsIR/FAbs_char.con".
345 End Part_Function_Abs
349 Hint Resolve FAbs_char: algebra.
352 inline procedural "cic:/CoRN/reals/Max_AbsIR/FAbs_char'.con".
354 inline procedural "cic:/CoRN/reals/Max_AbsIR/FAbs_nonneg.con".
357 Hint Resolve FAbs_char': algebra.
364 alias id "F" = "cic:/CoRN/reals/Max_AbsIR/Inclusion/F.var".
366 alias id "G" = "cic:/CoRN/reals/Max_AbsIR/Inclusion/G.var".
370 inline procedural "cic:/CoRN/reals/Max_AbsIR/Inclusion/P.con" "Inclusion__".
372 inline procedural "cic:/CoRN/reals/Max_AbsIR/Inclusion/Q.con" "Inclusion__".
377 %\begin{convention}% Let [R:IR->CProp].
381 alias id "R" = "cic:/CoRN/reals/Max_AbsIR/Inclusion/R.var".
383 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMax.con".
385 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMax'.con".
387 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMax''.con".
389 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMin.con".
391 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMin'.con".
393 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FMin''.con".
395 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FAbs.con".
397 inline procedural "cic:/CoRN/reals/Max_AbsIR/included_FAbs'.con".
404 Hint Resolve included_FMax included_FMin included_FAbs : included.
408 Hint Immediate included_FMax' included_FMin' included_FAbs'
409 included_FMax'' included_FMin'' : included.