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 (**************************************************************************)
16 include "Q/ratio/rinv.ma".
18 definition Qinv : Q → Q ≝
21 [ OQ ⇒ OQ (* arbitrary value *)
22 | Qpos r ⇒ Qpos (rinv r)
23 | Qneg r ⇒ Qneg (rinv r)
26 theorem Qinv_Qinv: ∀q. Qinv (Qinv q) = q.