-
Notifications
You must be signed in to change notification settings - Fork 1
Add completed doc on Iris goals #19
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||||||
| --- | ||||||||||
| title: "The anatomy of an Iris goal" | ||||||||||
| tags: | ||||||||||
| - learn | ||||||||||
| - iris | ||||||||||
| requires: [] | ||||||||||
| provides: | ||||||||||
| - iris_goals | ||||||||||
| eleventyNavigation: | ||||||||||
| order: 202 | ||||||||||
| parent: learn | ||||||||||
| --- | ||||||||||
|
|
||||||||||
| Both the IPM tactics and the `sep` family of tactics work on Iris goals such as the following: | ||||||||||
|
|
||||||||||
| ```rocq | ||||||||||
| n, m : Z | ||||||||||
| H : n + 1 = m | ||||||||||
| -------------------------------------- | ||||||||||
| "HP2" : P2 | ||||||||||
| _ : P1 | ||||||||||
| --------------------------------------□ | ||||||||||
| "HQ1" : Q1 | ||||||||||
| _ : Q2 | ||||||||||
| --------------------------------------∗ | ||||||||||
| R | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| Here, we must prove `R` assuming `P1`, `P2`, `Q1` and `Q2`. | ||||||||||
| Assumption `P1` and `P2` can be duplicated or discarded | ||||||||||
| freely, unlike `Q1` and `Q2`: We say `P1` and `P2` are intuitionistic and form | ||||||||||
| the intuitionistic context, while `Q1` and `Q2` form the spatial context. | ||||||||||
|
|
||||||||||
| Iris assumptions can be named or anonymous. Tactics can use names to act on | ||||||||||
| specific hypotheses, but otherwise names are not meaningful. | ||||||||||
|
Comment on lines
+34
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC,
Comment on lines
+34
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| Sometimes, we might refer to these goals as `Γ ; Γp ; Γs ⊢ Q`, where `Γ` is the | ||||||||||
| Rocq context, `Γp` is the intuitionistic context, `Γs` is the spatial context, | ||||||||||
| and `Q` is the conclusion. | ||||||||||
|
|
||||||||||
| A plain Iris entailment `P ⊢ Q` can be converted via `iStartProof` to the following Iris goal | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like a useful place to cross-link to the Iris tactic documentation. |
||||||||||
|
|
||||||||||
| ```rocq | ||||||||||
| --------------------------------------∗ | ||||||||||
| P -∗ Q | ||||||||||
| ``` | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Many tactics, e.g. |
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.