Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Yixuan Chen
Iris
Commits
f8710e19
Commit
f8710e19
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add logically atomic triples
parent
b60fbd73
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tex/iris.sty
+24
-0
24 additions, 0 deletions
tex/iris.sty
tex/test.tex
+16
-0
16 additions, 0 deletions
tex/test.tex
with
40 additions
and
0 deletions
tex/iris.sty
+
24
−
0
View file @
f8710e19
...
@@ -362,6 +362,30 @@
...
@@ -362,6 +362,30 @@
\end{aligned}
}
%
\end{aligned}
}
%
}
}
%% Logical atomicity
%Limit bracket width to 2ex
\newcommand
{
\anglebracket
}
[1]
{{
\scaleleftright
[2ex]
{
\langle
}{
#1
}{
\rangle
}}}
\NewDocumentCommand
\ahoare
{
m m m O
{}}{
\anglebracket
{
#1
}
\spac
#2
\spac
\anglebracket
{
#3
}_{
#4
}
%
}
\NewDocumentCommand
\ahoareV
{
O
{
c
}
m m m O
{}}{
{
\begin{aligned}
[#1]
&
\anglebracket
{
#2
}
\\
&
\quad
{
#3
}
\\
&{
\anglebracket
{
#4
}}_{
#5
}
\end{aligned}
}
%
}
\NewDocumentCommand
\ahoareHV
{
O
{
c
}
m m m O
{}}{
{
\begin{aligned}
[#1]
&
\anglebracket
{
#2
}
\;
{
#3
}
\\
&{
\anglebracket
{
#4
}}_{
#5
}
\end{aligned}
}
%
}
%% Some commonly used identifiers
%% Some commonly used identifiers
\newcommand
{
\inhabited
}
[1]
{
\textlog
{
inhabited
}
(#1)
}
\newcommand
{
\inhabited
}
[1]
{
\textlog
{
inhabited
}
(#1)
}
...
...
This diff is collapsed.
Click to expand it.
tex/test.tex
+
16
−
0
View file @
f8710e19
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
Here we put a bunch of uses of the macros in
\texttt
{
iris.sty
}
that we can visually test to ensure they still work when those macros are changed.
Here we put a bunch of uses of the macros in
\texttt
{
iris.sty
}
that we can visually test to ensure they still work when those macros are changed.
\begin{mathpar}
{
\hoare
{
P
}{
\expr
}{
Q
}
}
{
\ahoare
{
P
}{
\expr
}{
Q
}
}
\end{mathpar}
{
{
\newcommand
{
\mapstoDisk
}{
\mapsto
_
d
}
\newcommand
{
\mapstoDisk
}{
\mapsto
_
d
}
\newcommand
{
\mapstoOp
}{
\mapsto
_{
\mathit
{
op
}}}
\newcommand
{
\mapstoOp
}{
\mapsto
_{
\mathit
{
op
}}}
...
@@ -27,6 +33,16 @@ Here we put a bunch of uses of the macros in \texttt{iris.sty} that we can visua
...
@@ -27,6 +33,16 @@ Here we put a bunch of uses of the macros in \texttt{iris.sty} that we can visua
{
\left
(
\Sep
_{
(a,o)
\in
m
}
a
\mapstoDisk
o
\right
)
\lor
{
\left
(
\Sep
_{
(a,o)
\in
m
}
a
\mapstoDisk
o
\right
)
\lor
\left
(
\Sep
_{
(a,o')
\in
m'
}
a
\mapstoDisk
o'
\right
)
}
\left
(
\Sep
_{
(a,o')
\in
m'
}
a
\mapstoDisk
o'
\right
)
}
\end{align*}
\end{align*}
\begin{align*}
\ahoareV
{
\begin{aligned}
&
\dom
(m) =
\dom
(m') *
{}
\\
&
\left
(
\Sep
_{
(a,o)
\in
m
}
a
\mapstoLftd
o
\right
) *
%
\left
(
\Sep
_{
(a,o')
\in
m'
}
a
\mapstoOp
o'
\right
)
\end{aligned}
}
%
{
\mathit
{
op
}
.
\texttt
{
Commit
}
()
}
%
{
\left
(
\Sep
_{
(a,o)
\in
m
}
a
\mapstoDisk
o
\right
)
\lor
\left
(
\Sep
_{
(a,o')
\in
m'
}
a
\mapstoDisk
o'
\right
)
}
\end{align*}
}
}
\end{document}
\end{document}
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