coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Certified insertion
- Date: Sat, 8 Dec 2018 14:52:43 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=adamc AT csail.mit.edu; spf=Pass smtp.mailfrom=adamc AT csail.mit.edu; spf=None smtp.helo=postmaster AT outgoing-stata.csail.mit.edu
- Ironport-phdr: 9a23:cOVO2xzXj9dsFy7XCy+O+j09IxM/srCxBDY+r6Qd1OkXIJqq85mqBkHD//Il1AaPAd2Lraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRH1likHOT43/mLZhMN+g61Uog6uqRNkzo7IY4yYLuZycr/TcN4YQ2dKQ8ZfVzZGAoO5d4YCE/cOMvxdr4LguVYOrR++BQi0BOz1zj9HnGL90Kog3Os8Cw7G2RAvEskSv3TPttr1NaMSXfqwzKnJ0TXPde1Z1irg6IXRdB0qvPKCXapofMbM10UiFBnJg1uMpYD/IT+ZzPoBv3WH4+Z4SO6jlXQrpx9+rzWv3Msgl5XFi4IPxlzZ6Sl13oA4LsCiRkFhe96rCp5QujmaN4RoRsMiRHlluCEnyr0atp67eykKyJIoxxLGcPyHb5KH4g75W+qLPTh4n2hqeLO7hxqo9Eigy/H8WtOq31lXsypJitjMtnYT2BzP8sWLV+Vx80S71TuBywzf8P9ILVoqmabGN5It2rswmYASsUTHEC/2gkL2jKqOe0o+5+en8eHnban9q5CALI97kAD+MqA0lsy6AOQ4LhICUHaG9uShzLHj51H2QK1Wjv0qlanUqIzVJcMCpqKgHwBV1psj5A2kAje90NUYmGEHI0hfdBKGiYjpIVDOL+riAfexmVT/2AtskvvBJ/jqBojHBnnFirboO7hnuGBGzw9m5NxW4tp/CrUAOPv3UwelvdDRCxQROBe9wuKhDdRhkI4SRDTcUeeiLKrOvArQtaoUKO6WadpN4WevG70e//fryEQBtxoYdKit04EQbSnlTP99KkSdJ3/tnpEMHXpY51NiHtyvs0WLVHtoX1j3R7g1v2xpA5mvDIOFQ4GxxrGNwXXjR8AEViV9ElmJVEzQWcCEVvMLM3rAJdJ9nTsFU7fkUJMoyRjovxTzyr4hK+vIvCAUqMC72Q==
On 12/8/18 9:22 AM, Klaus Ostermann wrote:
I'm making a few experiments with using subset types for "certifiedWhat follows is probably not the sort of answer you are looking for, but I think it might nonetheless be the most useful one you receive.
programming".
I'm stuck with a certified variants of the "insert" function as used in
insertion sort, that is,
it's type should say that the input list and output list are sorted and
that the output list
contains both the input list and the element to be inserted.
Could somebody tell me how to do this idiomatically in Coq, preferably
without using
"dependent destruction" and other tactics that require additional
axioms?
It actually isn't idiomatic to program with subset types in Coq! I recommend avoiding explicit dependently typed programming whenever possible. There should be a high standard of justification for any explicit dependent types (which are sometimes the right tool for a job). It tends to be painful to define and reason about such programs. Experts generally avoid it.
- [Coq-Club] Certified insertion, Klaus Ostermann, 12/08/2018
- Re: [Coq-Club] Certified insertion, Jason -Zhong Sheng- Hu, 12/08/2018
- Re: [Coq-Club] Certified insertion, Xuanrui Qi, 12/08/2018
- Re: [Coq-Club] Certified insertion, Adam Chlipala, 12/08/2018
- Re: [Coq-Club] Certified insertion, Klaus Ostermann, 12/08/2018
- Re: [Coq-Club] Certified insertion, Xuanrui Qi, 12/08/2018
- Re: [Coq-Club] Certified insertion, Jonathan Leivent, 12/09/2018
- Re: [Coq-Club] Certified insertion, Klaus Ostermann, 12/08/2018
- Re: [Coq-Club] Certified insertion, David Holland, 12/19/2018
- Re: [Coq-Club] Certified insertion, Jason -Zhong Sheng- Hu, 12/08/2018
Archive powered by MHonArc 2.6.18.