[英]what does the colon greater than sign mean in coq
例如
Record posreal : Type := mkposreal {pos :> R; cond_pos : 0 < pos}.
“:>”是什么意思? 我希望這不是重復,但很難找到符號。
在這種特殊情況下,它會將一個posreal
從posreal
記錄插入到其field pos
。 這意味着在大多數情況下,您可以使用R
的posreal
。
嘗試:
Definition idR (x : R) := x.
Variable (r : posreal).
Compute (idR r).
請參閱https://coq.inria.fr/refman/Reference-Manual021.html#Coercions-and-records
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.