Skip to content

Commit 92f8f1d

Browse files
author
Ikko Ashimine
authored
RequirementMachine: Fix typo
arbitary -> arbitrary
1 parent 6af7324 commit 92f8f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/RequirementMachine/RequirementMachine.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3053,7 +3053,7 @@ \chapter{The Requirement Machine}\label{requirementmachine}
30533053

30543054
\section{Generic Parameters}\label{genericparamsym}
30553055
\index{generic parameter symbol}
3056-
So far, I've only shown you how to build rewrite rules from requirements in the requirement signature of some protocol $\proto{P}$. When lowering a type parameter, the protocol $\genericparam{Self}$ type lowers to the protocol symbol $\protosym{P}$. Once such a rewrite system is built, queries can be performed against the protocol generic signature $\gensig{\genericparam{Self}}{\genericparam{Self}\colon\proto{P}}$. When lowering parameters and requirements in an arbitary generic signature, generic parameter types instead become generic parameter symbols.
3056+
So far, I've only shown you how to build rewrite rules from requirements in the requirement signature of some protocol $\proto{P}$. When lowering a type parameter, the protocol $\genericparam{Self}$ type lowers to the protocol symbol $\protosym{P}$. Once such a rewrite system is built, queries can be performed against the protocol generic signature $\gensig{\genericparam{Self}}{\genericparam{Self}\colon\proto{P}}$. When lowering parameters and requirements in an arbitrary generic signature, generic parameter types instead become generic parameter symbols.
30573057

30583058
Generic parameter symbols should only ever appear as the initial symbol in a term. While the rewrite system would have no trouble with terms where generic parameter symbols appear elsewhere in the abstract, they don't actually make sense semantically, since they do not correspond to valid Swift type parameter types.
30593059

0 commit comments

Comments
 (0)