Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Nov 13, 2024
1 parent 42bec5f commit c9bd030
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion doc/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,21 @@ pattern ::= "false"
pattern ::= identifier "(" identifier_list ")"
```

This syntax is used in [Switch (Term)](#switch-term), [Switch (Proof)](#switch-proof),
and [Function (Statement)](#function-statement) via [Pattern List](#pattern-list).


## Pattern List

```
pattern_list ::=
pattern_list ::= pattern
pattern_list ::= pattern "," ident_list
```

A pattern list is a comma-separated sequence of zero or more patterns.


## Pos (Positive Integers)

The type of positive integers `Pos` is defined in `Nat.pf`.
Expand Down Expand Up @@ -1555,7 +1570,7 @@ term ::= "switch" term "{" switch_case* "}"
switch_case ::= "case" pattern "{" term "}"
```

(See the entry for Pattern for the syntax of `pattern`.)
(See the entry for [Pattern](#pattern) for the syntax of `pattern`.)

The subject of the `switch` must be of union type or `bool` (e.g., not
a function). The body of the `switch` must have one `case` for every
Expand Down

0 comments on commit c9bd030

Please sign in to comment.