Skip to content

Commit 29b651e

Browse files
typo Tutorial_Equations_indexed.v
1 parent f789fca commit 29b651e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tutorial_Equations_indexed.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ Arguments vnil {_}.
7171
Arguments vcons {_} _ _ _.
7272

7373
(** The difference between a parameter and an index is that a parameter is
74-
constant accros all the return types of the constructors, whereas an index
74+
constant accross all the return types of the constructors, whereas an index
7575
changes in at least one of the return types.
7676
For instance, in the definition of vectors the type [A] is a parameter
7777
as it is constant across all the return types: [vec A 0] and [vec A (S n)].
7878
However, [n:nat] is an index as it is not constant in the returns types:
79-
in the return type of [vnil] it is fixed to [0], and in the return type of [vcons] it is [S n].
79+
in the return type of [vnil] it is fixed to [0], and in the return type of [vcons] it is [S n].
8080
Indices always appear after the [:] in an inductive type declaration.
8181
8282
Reasoning about indexed inductive types like vectors is a bit more

0 commit comments

Comments
 (0)