Skip to content

Commit 9375e6d

Browse files
Fix typos in tutorial
1 parent 7df0429 commit 9375e6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorial/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Let's start with the simplest rule, Wf-Kind:
116116
wf(G, T, k_star) :- wf(G, T, k_base).
117117
```
118118

119-
Horn clauses are read right to left, so this rule is saying that types that are well-formed at kind base are also well-formed at kind star.
119+
Horn clauses are implications (read right to left), so this rule is saying that types that are well-formed at kind base are also well-formed at kind star.
120120
Identifiers beginning with an uppercase letter are logic programming variables, which are implicitly universally quantified across the entire rule.
121121

122122
Wf-Fun is not too bad to encode either:
@@ -154,7 +154,7 @@ We can then encode the rule for boolean literals:
154154
pred_wf(_G, p_bool(_B), b_bool).
155155
```
156156

157-
The rules for most the other constructs is straightforward:
157+
The rules are straightforward for most of the other constructs:
158158

159159
```
160160
pred_wf(_G, p_int(_I), b_int).
@@ -182,7 +182,7 @@ pred_wf(G, p_ite(P1, P2, P3), T) :-
182182
pred_wf(G, P3, T).
183183
```
184184

185-
The leaves us just handling variables; to do so, we need to define what it means to look up a variable in an environment.
185+
That leaves us just handling variables; to do so, we need to define what it means to look up a variable in an environment.
186186
Formulog's first-order functional programming comes in handy for defining this type of helper function:
187187

188188
```
@@ -772,4 +772,4 @@ As we mentioned earlier, please raise a [GitHub issue](https://github.com/Harvar
772772

773773
[3] Yu Feng, Xinyu Wang, Isil Dillig, and Thomas Dillig. 2015. Bottom-up Context-Sensitive Pointer Analysis for Java. In Proceedings of the 13th Asian Symposium on Programming Languages and Systems. 465–484. https://doi.org/10.1007/978-3-319-26529-2_25
774774

775-
[4] Cristian Cadar, Daniel Dunbar, and Dawson Engler. 2008. KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs. In Proceedings of the 8th USENIX Conference on Operating Systems Design and Implementation. 209–224. https://www.usenix.org/legacy/event/osdi08/tech/full_papers/cadar/cadar.pdf
775+
[4] Cristian Cadar, Daniel Dunbar, and Dawson Engler. 2008. KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs. In Proceedings of the 8th USENIX Conference on Operating Systems Design and Implementation. 209–224. https://www.usenix.org/legacy/event/osdi08/tech/full_papers/cadar/cadar.pdf

0 commit comments

Comments
 (0)