Skip to content
Snippets Groups Projects
Commit edbe242a authored by Ralf Jung's avatar Ralf Jung
Browse files

Merge branch 'disj_patterns_style' into 'master'

Add style point on branching patterns

See merge request iris/iris!927
parents 0e532ea5 8d61039e
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,32 @@ so we can add it.
This applies to Context, Implicit Types, and definitions
### Patterns
#### Disjunctions & branches
Always mark the disjuncts when destructuring a disjunctive pattern, even if you don't bind anything, to indicate that the proof branches
**Good:**
```coq
Lemma foo : b : bool, b = true b = false.
Proof.
intros [|].
...
```
**Bad:**
```coq
Lemma foo : b : bool, b = true b = false.
Proof.
intros [].
...
```
#### Uncategorized
**TODO:** Use `"[H1 H2]"` when possible otherwise do `"(H1 & H2 & H3)"`
### Unicode
Always use Unicode variants of forall, exists, ->, <=, >=
......@@ -147,8 +173,6 @@ Definition foo (arg1 arg2 arg3 : name_of_the_type) :=
the body that is very long.
```
**TODO:** Use `"[H1 H2]"` when possible otherwise do `"(H1 & H2 & H3)"`
For tests with output put `Check "theorem name in a string"` before it so that the output from different tests is separated.
For long `t1; t2; t3` and `t; [t1 | t2 | t3]` split them like this, and indent by 2 spaces:
......
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