Skip to content
Snippets Groups Projects
Commit dd931ed6 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Merge branch 'robbert/issue305' into 'master'

Document `%H` pattern.

Closes #305

See merge request iris/iris!423
parents 8a3bd004 d5b00af7
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,15 @@ _introduction patterns_: ...@@ -228,7 +228,15 @@ _introduction patterns_:
to eliminate nested (separating) conjunctions. to eliminate nested (separating) conjunctions.
- `[ipat1|ipat2]` : disjunction elimination. - `[ipat1|ipat2]` : disjunction elimination.
- `[]` : false elimination. - `[]` : false elimination.
- `%` : move the hypothesis to the pure Coq context (anonymously). - `%H` : move the hypothesis to the pure Coq context, and name it `H`. Support
for the `%H` introduction pattern requires an implementation of the hook
`string_to_ident`. Without an implementation of this hook, the `%H` pattern
will fail. We provide an implementation of the hook using Ltac2, which works
with Coq 8.11, and can be installed with opam; see
[iris/string-ident](https://gitlab.mpi-sws.org/iris/string-ident) for details.
- `%` : move the hypothesis to the pure Coq context (anonymously). Note that if
`%` is followed by an identifier, and not another token, a space is needed
to disambiguate from `%H` above.
- `->` and `<-` : rewrite using a pure Coq equality - `->` and `<-` : rewrite using a pure Coq equality
- `# ipat` : move the hypothesis into the intuitionistic context. The tactic - `# ipat` : move the hypothesis into the intuitionistic context. The tactic
will fail if the hypothesis is not intuitionistic. On success, the tactic will will fail if the hypothesis is not intuitionistic. On success, the tactic will
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment