diff options
| author | Clément Pit-Claudel | 2018-11-30 10:57:39 -0500 |
|---|---|---|
| committer | Clément Pit-Claudel | 2018-11-30 10:57:39 -0500 |
| commit | 6cafa55b58054da0b7366bea4e10a06147640eee (patch) | |
| tree | b94e3086e6681c05720f7d50e2dda545a50f7aee /doc/sphinx/addendum/program.rst | |
| parent | ea5207f2b13862408fd67cfac8d3a079ed80a087 (diff) | |
| parent | f1fa3386a01f06884fe7f71796a558eae3bb3e00 (diff) | |
Merge PR #9105: Add indexes for coercion / substructure symbol :>.
Diffstat (limited to 'doc/sphinx/addendum/program.rst')
| -rw-r--r-- | doc/sphinx/addendum/program.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/sphinx/addendum/program.rst b/doc/sphinx/addendum/program.rst index cc8870e2e4..e153c7cbe2 100644 --- a/doc/sphinx/addendum/program.rst +++ b/doc/sphinx/addendum/program.rst @@ -102,7 +102,7 @@ Syntactic control over equalities To give more control over the generation of equalities, the type checker will fall back directly to |Coq|’s usual typing of dependent -pattern matching if a return or in clause is specified. Likewise, the +pattern matching if a ``return`` or ``in`` clause is specified. Likewise, the if construct is not treated specially by |Program| so boolean tests in the code are not automatically reflected in the obligations. One can use the :g:`dec` combinator to get the correct hypotheses as in: @@ -118,8 +118,9 @@ use the :g:`dec` combinator to get the correct hypotheses as in: else S (pred n). The :g:`let` tupling construct :g:`let (x1, ..., xn) := t in b` does not -produce an equality, contrary to the let pattern construct :g:`let ’(x1, -..., xn) := t in b`. Also, :g:`term :>` explicitly asks the system to +produce an equality, contrary to the let pattern construct +:g:`let '(x1,..., xn) := t in b`. +Also, :g:`term :>` explicitly asks the system to coerce term to its support type. It can be useful in notations, for example: |
