Skip to content

Commit ae7d5c9

Browse files
authored
lltodk: use signature_name.conjecture (#50)
1 parent 9c1d38d commit ae7d5c9

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ocaml-version: [5.2.0, 5.1.1, 5.0.0, 4.14.1, 4.13.1, 4.12.1, 4.11.2, 4.10.2, 4.09.1, 4.08.1]
11+
ocaml-version: [5.4.1, 5.3.0, 5.2.1, 4.14.2] #5.1.1, 5.0.0, 4.14.2, 4.13.1, 4.12.1, 4.11.2, 4.10.2, 4.09.1, 4.08.1]
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checking out lambdapi repo ...

‎dune-project‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
method, generating Coq, Dedukti or Lambdapi proofs.")
1717
(depends
1818
(ocaml (>= 4.08.0))
19+
ocamlfind
20+
zarith
1921
))

‎lltodk.ml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,17 +1061,19 @@ let output_term oc phrases _ llp =
10611061
let goal_name = (List.hd llp).name in
10621062
let dkproof = make_proof_term (List.hd goal) prooftree in
10631063
fprintf oc "#REQUIRE zenon.\n";
1064-
if !Globals.signature_name <> "" then
1064+
let sig_name = !Globals.signature_name in
1065+
if sig_name <> "" then
10651066
begin
10661067
fprintf oc "#REQUIRE %s.\n" !Globals.signature_name;
10671068
fprintf oc "\n[] %s.%s --> " !Globals.signature_name goal_name
10681069
end
10691070
else fprintf oc "\n[] %s --> " goal_name;
10701071
if !Globals.conjecture <> "" then
10711072
fprintf oc "__negated_conjecture_proof__ : \
1072-
zenon.proof (zenon.not Signature.conjecture) =>\n";
1073+
zenon.proof (zenon.not %slambdapi__conjecture) =>\n"
1074+
(if sig_name <> "" then sig_name^"." else "");
10731075
fprintf oc "zenon.nnpp (%a)\n(%a)"
10741076
print_dk_term dkgoal print_dk_term dkproof;
1075-
if !Globals.signature_name <> "" then fprintf oc ".";
1077+
if sig_name <> "" then fprintf oc ".";
10761078
fprintf oc "\n";
10771079
[]

‎lpprint.ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ and print_dk_cst typ o (t, var_context) =
123123

124124
and print_dk_term_aux o (t, var_context) =
125125
match t with
126-
| Dkvar (v, t) as var ->
126+
| Dkvar (_, t) as var ->
127127
let pvar = (escape_name (get_var_newname var)) in
128128
if not (List.mem pvar var_context)
129129
then fprintf o "select (%a)" print_dk_zentype_aux (t, var_context)

‎main.ml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ open Expr;;
1111
https://tptp.org/cgi-bin/SeeTPTP?Category=Documents&File=SZSOntology
1212
*)
1313
type szs_success =
14-
Success
14+
Success [@warning "-37"]
1515
| Theorem
1616
| Unsatisfiable
1717

1818
type szs_error =
19-
NoSuccess
19+
NoSuccess [@warning "-37"]
2020
| Unknown
2121
| ResourceOut
2222
| GaveUp

‎zenon_modulo.opam‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ bug-reports: "https://github.com/Deducteam/zenon_modulo/issues"
1212
depends: [
1313
"dune" {>= "3.7"}
1414
"ocaml" {>= "4.08.0"}
15-
"odoc" {with-doc}
1615
"ocamlfind"
1716
"zarith"
17+
"odoc" {with-doc}
1818
]
1919
build: [
2020
["dune" "subst"] {dev}

0 commit comments

Comments
 (0)