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

Rewriting at the type level
Port a Coq lemma over Z to a similar lemma over nat
Coq fixpoint defintion numerated by natural numbers.(type of (n+1)'s type depends on (n)'s type)
`No more subgoals, but there are non-instantiated existential variables` in Coq proof language?
Simplify assumption
Apply partially instantiated lemma
Using reflexivity in Coq
High-speed calculation of Coq's theorems
Topological Definition of Continuous in Coq
Reference in Coq Lists library not found
Purpose of maximal vs non-maximal implicit arguments
Idris type system properties
How to destruct/generalize over Program's rewritten match statements
Show all axioms Coq
Product Type in Coq
Coq inductive definition for the entailment property

Categories

HOME
maven
multithreading
server
deezer
drivers
json.net
include
electron
framework7
react-redux
amortized-analysis
rubygems
umd
retrofit
yum
bs4
synchronization
basic
amazon-cloudformation
dacpac
kibana-4
percona
clearcase-ucm
seaborn
oracle-coherence
dbext
predix
object-detection
graphicsmagick
css-animations
realex-payments-api
icloud-api
cas
user-interaction
buck
log4js-node
unboundid
madlib
galsim
oracle-fusion-middleware
mpmediaquery
unobtrusive-validation
optix
ruby-on-rails-3.1
unixodbc
apple-news
outlook-2013
osx-mavericks
blogengine.net
mplayer
colorama
nativeapplication
tactic
knpmenubundle
google-web-starter-kit
lttng
python-stackless
system.management
intel-fortran
cartesian-product
wyam
operator-precedence
xc16
angularjs-ng-click
fpml
issuu
neolane
navigationservice
resty-gwt
java.nio.file
ms-project-server-2010
access-rights
flash-builder4.5
interface-orientation
delphi-6
broken-links
first-responder
runas
propertyeditor
tridion-worldserver
dbproviderfactories
php-parser
zpt
hirefire
asp.net-mvc-areas
microsoft-virtualization
swing-app-framework
privilege
putchar

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App