coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Victor Porton <porton AT narod.ru>
- To: Coq <coq-club AT inria.fr>
- Subject: [Coq-Club] What is the meaning of dependent record conditions?
- Date: Tue, 08 Nov 2011 00:25:30 +0400
- Envelope-from: porton AT yandex.ru
[[[
Class C := {
x: nat;
cond: x = 0
}.
About cond.
]]]
This tells that [cond] is a function which receives an argument of type C.
But what is it meanings? If the argument x is of type C, it is already
verified that [cond x] is true! No need to verify it second time!
Maybe I misunderstand something, but it seems for me that to make sense we
need to automatically define C_Base which would be the record without
conditions:
Class C_Base := {
x: nat
}.
and then have "cond" to accept arguments of type C_Base, not C.
Please comment on my (mis)understanding on how it should work.
--
Victor Porton - http://portonvictor.org
- [Coq-Club] What is the meaning of dependent record conditions?, Victor Porton
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Victor Porton
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
- Message not available
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
- Re: [Coq-Club] What is the meaning of dependent record conditions?, Daniel Schepler
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
- Re: [Coq-Club] What is the meaning of dependent record conditions?, Carlos Simpson
- Message not available
- Re: [Coq-Club] What is the meaning of dependent record conditions?, Alexandre Pilkiewicz
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Victor Porton
- [Coq-Club] Re: What is the meaning of dependent record conditions?, Stefan Monnier
- Re: [Coq-Club] What is the meaning of dependent record conditions?,
Alexandre Pilkiewicz
Archive powered by MhonArc 2.6.16.