私はchapter 4 of the reference manual of Coqを読んでいます。参考文献に記載されているタイピング規則によれば、用語fun x: nat => x
のタイプはforall x: nat, nat
である。 I Check
Coqのことで、この用語は、それがnat -> nat
入力されしかしCoqの矢印は普遍的な定量のエイリアスですか?
Assume that E is [nat: Set].
... ...
------------------------------ Prod-Set ------------------- Var
E[] ⊢ forall x: nat, nat : Set E[x: nat] ⊢ x : nat
------------------------------------------------------------ Lam
E[] ⊢ fun x: nat => x : forall x: nat, nat
、。
Welcome to Coq 8.5pl2 (July 2016)
Coq < Check fun x: nat => x.
fun x : nat => x
: nat -> nat
これらの2つのタイプは同じですか?その場合、矢印にはバインドされた変数の名前が隠されていますか?
あなたの用語のタイプをチェックする前に 'Unset Printing Notations'を試してください。 –