Skip to content

Commit 059edea

Browse files
authored
Merge pull request #875 from LPCIC/doc
fix doc
2 parents 36b893b + ea4d047 commit 059edea

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/doc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
opam install coq-serapi.8.20.0+0.20.0 ./rocq-elpi.opam coq-core.8.20.0
3838
sudo apt-get update
3939
sudo apt-get install python3-pip -y
40-
pip3 install git+https://github.com/cpitclaudel/alectryon.git@c8ab1ec
4140
4241
- name: build doc
4342
run: |

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ examples-stdlib: theories-stdlib/dune
9090

9191
doc: build
9292
@echo "########################## generating doc ##########################"
93+
@python3 -m venv alectryon
94+
@alectryon/bin/pip3 install git+https://github.com/cpitclaudel/alectryon.git@c8ab1ec
9395
@mkdir -p doc
9496
@$(foreach tut,$(wildcard examples/tutorial*$(ONLY)*.v),\
95-
echo ALECTRYON $(tut) && OCAMLPATH=$(shell pwd)/_build/install/default/lib ./etc/alectryon_elpi.py \
97+
echo ALECTRYON $(tut) && OCAMLPATH=$(shell pwd)/_build/install/default/lib alectryon/bin/python3 etc/alectryon_elpi.py \
9698
--frontend coq+rst \
9799
--output-directory doc \
98100
--pygments-style vs \

examples/tutorial_coq_elpi_HOAS.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,16 +578,16 @@ Before the call to :builtin:`coq.typecheck`, :builtin:`coq.sigma.print`
578578
prints nothing interesting, while after the call it also prints the following
579579
syntactic constraint:
580580
581-
.. mquote:: .s(Elpi).msg(suspended on X1)
581+
.. mquote:: .s(Elpi).msg(suspended on X0)
582582
:language: elpi
583583
584-
which indicates that the hole :e:`X1` is linked to a Coq evar
584+
which indicates that the hole :e:`X0` is linked to a Coq evar
585585
and is expected to have type `nat`.
586586
587587
Now the bijective mapping from Coq evars to Elpi's unification variables
588588
is not empty anymore:
589589
590-
.. mquote:: .s(Elpi).msg{Rocq-Elpi mapping:*[?]X11 <-> X1*}
590+
.. mquote:: .s(Elpi).msg{Rocq-Elpi mapping:*[?]X11 <-> X0*}
591591
:language: text
592592
593593
Note that Coq's evar identifiers are of the form `?X<n>`, while the Elpi ones
@@ -603,7 +603,7 @@ the same piece of info.
603603
Naked Elpi unification variables, when passed to Coq's API, are
604604
automatically linked to a Coq evar. We postpone the explanation of the
605605
difference "raw" and "elab" unification variables to the chapter about
606-
tactics, here the second copy of :e:`X1` in the evar constraint plays
606+
tactics, here the second copy of :e:`X0` in the evar constraint plays
607607
no role.
608608
609609
Now, what about the typing context?

0 commit comments

Comments
 (0)