Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cv_rep_add and use [cv_rep] annotation instead #1419

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/num/theories/cv_compute/automation/cv_memLib.sig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ sig
val cv_inline_thms : unit -> thm list
val cv_from_to_thms : unit -> thm list

val cv_rep_add : thm -> unit
val cv_pre_add : thm -> unit
val cv_inline_add : thm -> unit
val cv_from_to_add : thm -> unit
Expand Down
2 changes: 1 addition & 1 deletion src/num/theories/cv_compute/automation/cv_memLib.sml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fun prepare th = let
*--------------------------------------------------------------------------*)

fun insert_cv_rep th = prepare th;
val (cv_rep_thms, cv_rep_add) = register_ThmSetData_list "cv_rep" insert_cv_rep;
val (cv_rep_thms, _) = register_ThmSetData_list "cv_rep" insert_cv_rep;

fun insert_cv_pre th = (
cv_print Verbose "\ncv_pre:\n\n";
Expand Down
2 changes: 1 addition & 1 deletion src/num/theories/cv_compute/automation/cv_transLib.sml
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ fun cv_trans_deep_embedding eval_conv th =
val _ = DefnBase.register_defn {tag="user", thmname=eq_name}
val num_0 = cvSyntax.mk_cv_num (numSyntax.term_of_int 0)
val cv_trans_thm = defn_thm |> INST [x |-> num_0] |> SYM
val _ = cv_memLib.cv_rep_add cv_trans_thm
val _ = save_thm(nm ^ "_cv_thm[cv_rep]",cv_trans_thm)
in () end

(*--------------------------------------------------------------------------*
Expand Down