Skip to content

Commit

Permalink
typos (thanks K. Maillard)
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Dec 2, 2020
1 parent 655f3de commit a03579e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/tutorial_elpi_lang.v
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Elpi Query lp:{{

(**
An even harder query is the following one where we ask for two distinct
indivisuals to have the same age.
individuals to have the same age.
*)

Elpi Query lp:{{
Expand All @@ -234,7 +234,7 @@ Elpi Query lp:{{
forces the last choice that was made to be reconsidered,
so "Q" becomes "bob".
Look at the outout of the following instrumented code:
Look at the output of the following instrumented code:
*)

Elpi Query lp:{{
Expand All @@ -251,7 +251,7 @@ Elpi Query lp:{{
In general clauses can have premises, that is conditions necessary in
order to make the predicate hold.
Here we add to our program a clase that defiens what "older P Q" means
Here we add to our program a clase that defines what "older P Q" means
in terms of the "age" of "P" and "Q". Note that ">" is a built-in predicate.
*)
Elpi Accumulate lp:{{
Expand Down Expand Up @@ -320,7 +320,7 @@ Elpi Query lp:{{
symbol or a clause variable (that required the convention of
using capitals for variables).
Functions build using λ-abstraction can be applied
Functions built using λ-abstraction can be applied
to arguments and honor the usual β-reduction rule
(the argument is substituted for the bound variable).
Expand Down Expand Up @@ -963,7 +963,7 @@ Fail Elpi Query lp:{{ sigma Y\ pi x\ Y = x }}.
𝚪 ⊦ λx.f : A → B
on paper, the x being bound can only occur in f (not in 𝚪 or B for example).
Reamrk that in the premise x is still bound, this time not by a λ but by the
Remark that in the premise x is still bound, this time not by a λ but by the
context 𝚪, x : A. In λProlog the context is the set of hypothetical clauses
and pi-quantified variables and is implicitly handled by the runtime of the
programming language.
Expand Down

0 comments on commit a03579e

Please sign in to comment.