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

use case: structured data (XML) from Namespace Logic #9

Open
dckc opened this issue Feb 27, 2019 · 0 comments
Open

use case: structured data (XML) from Namespace Logic #9

dckc opened this issue Feb 27, 2019 · 0 comments

Comments

@dckc
Copy link
Collaborator

dckc commented Feb 27, 2019

using

  • rholang syntax for for quoting (@), lift / send and activity / input
  • SLMC syntax for or, (maxfix X F) and forall

we get:


@(maxfix X
     forall m .
        m!(forall n. 0 or n!(X) or (maxfix Y { forall n' . for(n' <- b){ X or Y} }
              or (X | X ) ) ) 

I used KaTex to get:

$\phi_{info} = \q{ \rec{X} {\forall m . \lift{m}{\forall n. 0 \lor \lift{n}{X} \lor \rec{Y}{\forall n' . \act{n'}{b}{(X \lor Y)} } \lor (X | X ) }} }$

macros:

{
    "\\q": "\\ulcorner #1 \\urcorner",
    "\\lift": "#1 \\langle\\lvert #2 \\rvert\\rangle",
"\\act": "\\langle #1 ? #2 \\rangle #3",
 "\\rec": "\\mathrm{rec} #1 . ( #2 )"
}

rendered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant