Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
4ad94e14
Commit
4ad94e14
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[interpretation] Declare only logic symbols relative to classifiers and vectors.
parent
31beca91
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interpretation.ml
+6
-3
6 additions, 3 deletions
src/interpretation.ml
src/language.ml
+2
-0
2 additions, 0 deletions
src/language.ml
src/language.mli
+2
-0
2 additions, 0 deletions
src/language.mli
with
10 additions
and
3 deletions
src/interpretation.ml
+
6
−
3
View file @
4ad94e14
...
...
@@ -526,11 +526,14 @@ let interpret_task ~cwd env task =
let
f
=
CRE
.
normalize
~
limit
:
Int
.
max_value
engine
Term
.
Mvs
.
empty
f
in
let
_
,
task
=
Task
.
task_separate_goal
task
in
let
task
=
(* Declare
all
logic symbols
related to the introduced [caisar_op]
. *)
(* Declare logic symbols
introduced for classifiers and vectors
. *)
Term
.
Hls
.
fold
(
fun
ls
_
task
->
let
decl
=
Decl
.
create_param_decl
ls
in
Task
.
add_decl
task
decl
)
if
Language
.
mem_vector
ls
||
Language
.
mem_nn_classifier
ls
then
let
decl
=
Decl
.
create_param_decl
ls
in
Task
.
add_decl
task
decl
else
task
)
caisar_env
.
caisar_op_of_ls
task
in
let
task
=
Task
.(
add_prop_decl
task
Pgoal
g
f
)
in
...
...
This diff is collapsed.
Click to expand it.
src/language.ml
+
2
−
0
View file @
4ad94e14
...
...
@@ -183,6 +183,7 @@ let create_vector =
ls
))
let
lookup_vector
=
Term
.
Hls
.
find_opt
vectors
let
mem_vector
=
Term
.
Hls
.
mem
vectors
(* -- Classifier *)
...
...
@@ -263,3 +264,4 @@ let create_onnx_classifier =
ls
))
let
lookup_nn_classifier
=
Term
.
Hls
.
find_opt
nn_classifiers
let
mem_nn_classifier
=
Term
.
Hls
.
mem
nn_classifiers
This diff is collapsed.
Click to expand it.
src/language.mli
+
2
−
0
View file @
4ad94e14
...
...
@@ -69,6 +69,7 @@ type vector = Term.lsymbol
val
create_vector
:
Env
.
env
->
int
->
vector
val
lookup_vector
:
vector
->
int
option
val
mem_vector
:
vector
->
bool
(** -- Classifier *)
...
...
@@ -86,3 +87,4 @@ type nn_classifier = Term.lsymbol
val
create_nnet_classifier
:
Env
.
env
->
string
->
nn_classifier
val
create_onnx_classifier
:
Env
.
env
->
string
->
nn_classifier
val
lookup_nn_classifier
:
nn_classifier
->
nn
option
val
mem_nn_classifier
:
nn_classifier
->
bool
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment