Question about #REQUIRE
fblanqui opened this issue · comments
Frédéric Blanqui commented
#REQUIRE does not seem necessary and can be ignored. What is it for?
amelieled commented
Same question for #NAME.
fthire commented
#NAME
was deprecated, the time the libraries could be adapted.
#REQUIRE
is not necessary but I know some situations where it is necessary.
Assume I have three modules (dk files):
The first one (X.dk)
def A : Type.
B : Type.
def a : A.
b : B.
The second one (Y.dk)
[] X.A --> X.B.
The third one (Z.dk)
[] X.a --> X.b.
The third one is not well-typed. However, if I add #REQUIRE Y.
in Z.dk
it becomes well-typed.