1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| A.Asperti, C.Sacerdoti Coen, *)
8 (* ||A|| E.Tassi, S.Zacchiroli *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU Lesser General Public License Version 2.1 *)
13 (**************************************************************************)
15 include "Q/ratio/rinv.ma".
16 include "Q/fraction/ftimes.ma".
18 definition rtimes : ratio \to ratio \to ratio \def
22 | (frac f) \Rightarrow
24 [one \Rightarrow frac f
25 | (frac g) \Rightarrow ftimes f g]].
27 theorem symmetric_rtimes : symmetric ratio rtimes.
28 change with (\forall r,s:ratio. rtimes r s = rtimes s r).
35 simplify.apply symmetric2_ftimes.
38 variant sym_rtimes : ∀x,y:ratio. rtimes x y = rtimes y x ≝ symmetric_rtimes.
40 theorem rtimes_rinv: \forall r:ratio. rtimes r (rinv r) = one.
43 simplify.apply ftimes_finv.