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/ratio.ma".
17 (* a rational number is either O or a ratio with a sign *)
18 inductive Q : Set \def
25 match factorize n with
28 | nfa_proper l ⇒ Qpos (frac (nat_fact_to_fraction l))