Skip to content

Commit e418965

Browse files
authored
Correct behaviour for -gdv (#52)
* Correct behaviour for the -gdv flag
1 parent a5255ef commit e418965

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎lltolp.ml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,13 @@ let output_term oc phrases _ llp =
10591059
let prooftree = extract_prooftree llp in
10601060
let goal_name = (List.hd llp).name in
10611061
let dkproof = make_proof_term (List.hd goal) prooftree in
1062-
fprintf oc "require open Stdlib.Prop Stdlib.Set Stdlib.Eq Stdlib.FOL \
1063-
Logic.Zenon.Main;\n";
10641062
if !Globals.gdv then
10651063
fprintf oc "\nrule F.%s ↪ " goal_name
1066-
else
1067-
fprintf oc "\nsymbol %s ≔ " goal_name;
1064+
else begin
1065+
fprintf oc "require open Stdlib.Prop Stdlib.Set Stdlib.Eq Stdlib.FOL \
1066+
Logic.Zenon.Main;\n";
1067+
fprintf oc "\nsymbol %s ≔ " goal_name
1068+
end;
10681069
if !Globals.conjecture <> "" then
10691070
fprintf oc "λ __negated_conjecture_proof__,";
10701071
begin

‎lpprint.ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ and print_dk_cst typ o (t, var_context) =
112112
if Mltoll.is_meta s then fprintf o "select (%a)" print_dk_zentype_aux (typ, var_context)
113113
else
114114
begin
115-
fprintf o (if !Globals.gdv then "%s"
115+
fprintf o (if not !Globals.gdv then "%s"
116116
else if is_formula then "F.%s"
117117
else "S.%s")
118118
(escape_name s);

0 commit comments

Comments
 (0)