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
62d5e8b5
Commit
62d5e8b5
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation. Thanks to
@Blaisorblade
.
parent
0c0f84bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/style_guide.md
+15
-0
15 additions, 0 deletions
docs/style_guide.md
with
15 additions
and
0 deletions
docs/style_guide.md
+
15
−
0
View file @
62d5e8b5
...
...
@@ -32,6 +32,21 @@ Typeclasses Opaque join_handle.
This makes sure that the proof mode does not "look into" your definition when it
is used by clients.
## Notations
Notations starting with
`(`
or
`{`
should be left at their default level (
`0`
),
and inner subexpressions that are bracketed by delimiters should be left at
their default level (
`200`
).
Moreover, correct parsing of notations sometimes relies on Coq's automatic
left-factoring, which can require coordinating levels of certain "conflicting"
notations and their subexpressions. For instance, to disambiguate
`(⊢@{ PROP })`
and
`(⊢@{ PROP } P)`
, Coq must factor out a nonterminal for
`⊢@{ PROP }`
, but it
can only do so if all occurrences of
`⊢@{ PROP }`
agree on the precedences for
all subexpressions.
For details, consult
[
the Coq manual
](
https://coq.inria.fr/refman/user-extensions/syntax-extensions.html#simple-factorization-rules
)
.
## Naming conventions for variables/arguments/hypotheses
### small letters
...
...
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