簡體   English   中英

結腸大於標志的結果是什么意思

[英]what does the colon greater than sign mean in coq

例如

Record posreal : Type := mkposreal {pos :> R; cond_pos : 0 < pos}.

“:>”是什么意思? 我希望這不是重復,但很難找到符號。

在這種特殊情況下,它會將一個posrealposreal記錄插入到其field pos 這意味着在大多數情況下,您可以使用Rposreal

嘗試:

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM