Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/693343d7-a38c-8012-a67c-11cbed4c0fd9
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== We sketch a small-step operational semantics for an SDELang fragment with Obatala effects. Terms: === <syntaxhighlight>t ::= x | Ξ»x.t | t t | reflect t | bind x β t in u | merge(t,t) | sim t | ... </syntaxhighlight> Typing (informal): if Ξ β’ t : A then Ξ β’ reflect t : O A. Bind types: if Ξ β’ t : O A and Ξ, x:A β’ u : O B then Ξ β’ (bind x β t in u) : O B. Small-step rules (selected): # Reflect intro (value): reflect v is a value of type O A if v is a value. # Bind-reflect: </code>`<code> bind x β (reflect v) in u --> u[x := v] </code>`<code> (left unit law operationalized) # Bind-join (flatten): </code>`<code> bind x β (bind y β m in n) in u --> bind y β m in (bind x β n in u) </code>`<code> (associativity operationalization) # Flatten rule (join): </code>`<code> flatten (reflect v) --> reflect v flatten (flatten m) --> flatten m (idempotence in particular contexts) <syntaxhighlight>5. Simulate: </syntaxhighlight> sim (reflect v) --> sim_leaf(v) -- base simulation of single agent sim (merge m n) --> combine_sim(sim m, sim n) </code>`<code> combine_sim depends on organization coordination semantics. Handler semantics: Handler Ξ± : O A β A reduces bind x β t in Ξ± by interpreting t via Ξ±. This operational semantics respects the monad laws (subject to congruence and beta rules).
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)