~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to contrib/omega/g_omega.ml4

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(************************************************************************)
 
2
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
 
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
 
4
(*   \VV/  **************************************************************)
 
5
(*    //   *      This file is distributed under the terms of the       *)
 
6
(*         *       GNU Lesser General Public License Version 2.1        *)
 
7
(************************************************************************)
 
8
(**************************************************************************)
 
9
(*                                                                        *)
 
10
(* Omega: a solver of quantifier-free problems in Presburger Arithmetic   *)
 
11
(*                                                                        *)
 
12
(* Pierre Cr�gut (CNET, Lannion, France)                                  *)
 
13
(*                                                                        *)
 
14
(**************************************************************************)
 
15
 
 
16
(*i camlp4deps: "parsing/grammar.cma" i*)
 
17
 
 
18
(* $Id: g_omega.ml4 10028 2007-07-18 22:38:06Z letouzey $ *)
 
19
 
 
20
open Coq_omega
 
21
open Refiner
 
22
 
 
23
let omega_tactic l = 
 
24
  let tacs = List.map 
 
25
    (function  
 
26
       | "nat" -> Tacinterp.interp <:tactic<zify_nat>>
 
27
       | "positive" -> Tacinterp.interp <:tactic<zify_positive>>
 
28
       | "N" -> Tacinterp.interp <:tactic<zify_N>>
 
29
       | "Z" -> Tacinterp.interp <:tactic<zify_op>>
 
30
       | s -> Util.error ("No Omega knowledge base for type "^s))
 
31
    (Util.list_uniquize (List.sort compare l))
 
32
  in 
 
33
  tclTHEN
 
34
    (tclREPEAT (tclPROGRESS (tclTHENLIST tacs)))
 
35
    omega_solver
 
36
 
 
37
 
 
38
TACTIC EXTEND omega
 
39
|  [ "omega" ] -> [ omega_tactic [] ]
 
40
END
 
41
 
 
42
TACTIC EXTEND omega'
 
43
| [ "omega" "with" ne_ident_list(l) ] -> 
 
44
    [ omega_tactic (List.map Names.string_of_id l) ]
 
45
| [ "omega" "with" "*" ] -> [ omega_tactic ["nat";"positive";"N";"Z"] ]
 
46
END
 
47