coq


what does the colon greater than sign mean in coq


For example
Record posreal : Type := mkposreal {pos :> R; cond_pos : 0 < pos}.
what does the ":>" mean?
I hope this isn't a duplicate, but a symbol is hard to search for.
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.
Try:
Definition idR (x : R) := x.
Variable (r : posreal).
Compute (idR r).
See https://coq.inria.fr/refman/Reference-Manual021.html#Coercions-and-records

Related Links

Best way to instantiate nested existential statement in Coq
What is the exactly the term “10” in Coq?
Inversion produces unexpected existT in Coq
Difference between type parameters and indices?
Coq proof of forall a b c: nat, b >= c -> a + b - c = a + (b - c)
Inversion on symmetrical relation becomes circular in Coq
Coq tactic for record equality?
Using remember in induction over proposition gives 'ill-typed' error in Coq
How to create a new hypothesis from apply?
How to end this Proof in Coq
Generalize code matching on constructors of types
Coq auto-simplification similar to Isabelle?
Powerset and ensembles in Coq
Simple graph theory proofs using Coq
a + b = 0 -> a = 0 and b = 0 in Coq
Indicator function and semirings in COQ

Categories

HOME
maven
pandas
ngrx
reserved
comparison
json.net
react-router
q
kalman-filter
analysis
jpeg
alpha
enterprise-library-5
onelogin
constraint-programming
midi
windows-phone-7
decomposition
grails3
zapier
autoconf
web-sql
devops
microsoft-r
icloud-api
shopware
xpages-ssjs
spark-jobserver
url-scheme
assistant
compatibility
frame
binary-data
phpfreechat
environment-modules
scaffold
space-complexity
reportingservices-2005
janrain
http-live-streaming
no-www
.net-4.6.2
segment
qwt
diagnostics
boost-preprocessor
namecoin
pearson
epson
sqldf
color-profile
pintos
word-vba-mac
setuptools
firmata
mikroc
mathematica-frontend
lua-5.1
sdf
bluegiga
wapiti
eclipse-clp
collapse
0xdbe
operator-precedence
nstableviewcell
article
valueconverter
marmalade
intentservice
c18
listings
blending
factory-method
dmoz
jquery-knob
first-responder
cascalog
errai
spring-portlet-mvc
subscript
fireworks
stage
gdlib
floating
zend-translate
gamequery
filtered-index
vc90
sef
uimenucontroller
boost-smart-ptr
simpletest
gacutil
lzh
uiq3

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile