更新时间:2022-06-24 21:41:59
情况下,它会从 posreal
记录向其字段 pos
插入一个强制。这意味着在大多数情况下,您可以将 posreal
用于 R
。
In this particular case it inserts a Coercion from the posreal
record to its field pos
. This means you can use a posreal
for an R
in most cases.
尝试:
Definition idR (x : R) := x.
Variable (r : posreal).
Compute (idR r).
请参见 https://coq.inria.fr/refman/Reference-Manual021.html#Coercions-and-records