From 5ea2b23ca5066b4e8fca18c2d526847fe38991cc Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 19 Feb 2003 13:59:56 +0000 Subject: [PATCH] added common module --- helm/hbugs/common/hbugs_common.ml | 44 ++++++++++++++++++++++++++++++ helm/hbugs/common/hbugs_common.mli | 32 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 helm/hbugs/common/hbugs_common.ml create mode 100644 helm/hbugs/common/hbugs_common.mli diff --git a/helm/hbugs/common/hbugs_common.ml b/helm/hbugs/common/hbugs_common.ml new file mode 100644 index 000000000..9364eb739 --- /dev/null +++ b/helm/hbugs/common/hbugs_common.ml @@ -0,0 +1,44 @@ +(* + * Copyright (C) 2003: + * Stefano Zacchiroli + * for the HELM Team http://helm.cs.unibo.it/ + * + * This file is part of HELM, an Hypertextual, Electronic + * Library of Mathematics, developed at the Computer Science + * Department, University of Bologna, Italy. + * + * HELM is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * HELM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with HELM; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + * + * For details, see the HELM World-Wide-Web page, + * http://helm.cs.unibo.it/ + *) + +open Hbugs_types;; + +let rec string_of_hint = function + | Use_ring_Luke -> "Use Ring, Luke!" + | Use_fourier_Luke -> "Use Fourier, Luke!" + | Use_reflexivity_Luke -> "Use reflexivity, Luke!" + | Use_symmetry_Luke -> "Use symmetry, Luke!" + | Use_assumption_Luke -> "Use assumption, Luke!" + | Use_contradiction_Luke -> "Use contradiction, Luke!" + | Use_exists_Luke -> "Use exists, Luke!" + | Use_split_Luke -> "Use split, Luke!" + | Use_left_Luke -> "Use left, Luke!" + | Use_right_Luke -> "Use right, Luke!" + | Hints hints -> String.concat "; " (List.map string_of_hint hints) +;; + diff --git a/helm/hbugs/common/hbugs_common.mli b/helm/hbugs/common/hbugs_common.mli new file mode 100644 index 000000000..2d51075f3 --- /dev/null +++ b/helm/hbugs/common/hbugs_common.mli @@ -0,0 +1,32 @@ +(* + * Copyright (C) 2003: + * Stefano Zacchiroli + * for the HELM Team http://helm.cs.unibo.it/ + * + * This file is part of HELM, an Hypertextual, Electronic + * Library of Mathematics, developed at the Computer Science + * Department, University of Bologna, Italy. + * + * HELM is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * HELM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with HELM; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + * + * For details, see the HELM World-Wide-Web page, + * http://helm.cs.unibo.it/ + *) + +open Hbugs_types;; + +val string_of_hint: hint -> string + -- 2.39.2