Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
afp-devel
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
isa-afp
afp-devel
Commits
b336fcbd
Commit
b336fcbd
authored
1 week ago
by
Kevin Kappelmann
Browse files
Options
Downloads
Patches
Plain Diff
feat(ML_Unification/priorities) add doubling of prios
parent
a66e8d92
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
thys/ML_Unification/ML_Utils/Priorities/priority.ML
+3
-1
3 additions, 1 deletion
thys/ML_Unification/ML_Utils/Priorities/priority.ML
with
3 additions
and
1 deletion
thys/ML_Unification/ML_Utils/Priorities/priority.ML
+
3
−
1
View file @
b336fcbd
...
...
@@ -16,6 +16,7 @@
val
between
:
prio
*
prio
->
prio
val
halve
:
prio
->
prio
val
double
:
prio
->
prio
val
inc
:
prio
->
prio
val
dec
:
prio
->
prio
...
...
@@ -51,6 +52,7 @@
fun
between
(
p1
,
p2
)
=
Prio
((
dest_prio
p1
+
dest_prio
p2
)
/
two_rat
)
fun
halve
p
=
between
(
BOTTOM_EXCLUSIVE
,
p
)
fun
double
p
=
Prio
(
dest_prio
p
*
two_rat
)
(*assumption: BOTTOM_EXCLUSIVE = 0*)
val
epsilon
=
Rat
.
make
(
1
,
100
)
fun
inc
p
=
Prio
(
dest_prio
p
+
epsilon
)
...
...
@@ -78,4 +80,4 @@
>>
prio_from_code
)
end
end
\ No newline at end of file
end
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