Skip to content

Commit

Permalink
add renamings for coq output (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Apr 12, 2024
1 parent 598b944 commit 5442fc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions renaming.lp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ builtin "mulmul" ≔ **;
builtin "mulmul_def" ≔ **_def;
builtin "ltle" ≔ <<=;
builtin "ltle_def" ≔ <<=_def;
builtin "mapsto" ≔ vdash>;
builtin "mapsto_def" ≔ vdash>_def;

// Multivariate
builtin "add_c" ≔ +_c;
Expand All @@ -90,3 +88,5 @@ builtin "pow_c" ≔ ^_c;
builtin "pow_c_def" ≔ ^_c_def;
builtin "_at" ≔ at;
builtin "_at_def" ≔ at_def;
builtin "S'" ≔ S;
builtin "pair'" ≔ pair;
2 changes: 1 addition & 1 deletion xlp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let name =
[ "|----", "vdash4"
; "|---", "vdash3"
; "|--", "vdash2"
; "|->", "mapsto"
; "|-", "vdash"
; "|=>", "bar_imp"]
in
Expand Down Expand Up @@ -50,7 +51,6 @@ let name =
|"sequential"|"simplify"|"solve"|"symbol"|"symmetry"|"type"|"TYPE"
|"unif_rule"|"verbose"|"why3"|"with" -> "_" ^ n
(* for Coq *)
| "S" -> "S'"
| "%" -> n
| _ -> Xlib.change_prefixes prefixes (Xlib.replace '%' '_' n)
end
Expand Down

0 comments on commit 5442fc9

Please sign in to comment.