coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] What's the best way to extract programs that use random numbers?
Chronological Thread
- From: Ilmārs Cīrulis <ilmars.cirulis AT gmail.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] What's the best way to extract programs that use random numbers?
- Date: Mon, 21 Nov 2016 18:31:41 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=ilmars.cirulis AT gmail.com; spf=Pass smtp.mailfrom=ilmars.cirulis AT gmail.com; spf=None smtp.helo=postmaster AT mail-yw0-f173.google.com
- Ironport-phdr: 9a23:88BkBxCa3o2g0NCWhgxeUyQJP3N1i/DPJgcQr6AfoPdwSPT7pcbcNUDSrc9gkEXOFd2CrakV0KyM6OuwAiQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5b75+Ngu6oAveusQVj4ZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9Ryg6JVoByvqR9xzZPKbo6JL/dxZL/RcMkASGZdQspcVSpMCZ68YYsVCOoBOP5VoYr5p1sLqx6+HxKsD/7xxz9JnH/2wKk60+U6EQrb2wEgHtYOsHHOo9XvL6ceS/y6zKjSzTXea/NW2Cz95ZPHchAku/6MXLZwfdDNxkkoEgPIl1OdopHrMTOS0+QCqWmb7+x4WOKujW4nsQBxrSK1yscikInFnoYVykrF9SljzoY1P9u1Q1N4b968CJZcqT2WOo9sTs4hQ2xkojs2x7wbtZKhYSQHypoqyhjCYPKdaYeI+AjsVOOJLDd4mn1lfLW/ig638Ue6y+38UtC40VZEryZZi9XMuG0B2h7d58SdRft9+UCh2TmL1w/N8O1LPUc0la/DJ54gxL4/iIYTvFzdEiPqnEj6lqybe0U+9uS16unrf6/qqoKeOoJ6kg3+N74hms27AeQ2KAgOWG2b9Py91L3n+E32Wq9KjuYsnqbFsZDaP9kbpqq4Aw9OyYsj5BO/AC2n0NQch3UIMFVFeBefg4jzJ17OOOz4Deu4g1m0jDhrwOnGMqT9DZXJM3jMi6zsfa196k5Z0Ao818pT55NSCrEbIfL8QFX9tNLCDkxxDwvhie3gEZB20p4UcWOJGK6Qdq3I+xfc7eU2ZuKIeYU9uTDnKvFj6eS43lEjnlpIXK2sdoEMIFu5BOliIl7RNXvoh94bCiEBvxAjSO3xoFKHWD9XIX21WvRvtXkAFIu6ANKbFciWi7ub0XLjEw==
Big thank you!
Yes, it helps.
It seems that Alea must be ported to Coq 8.5, but that seems easy to do. In progress.
--
Ilmars
On Mon, Nov 21, 2016 at 2:01 PM, Xavier Leroy <Xavier.Leroy AT inria.fr> wrote:
On 11/21/2016 10:59 AM, Ilmārs Cīrulis wrote:
> I am thinking about the best way to use Coq for extracting correct programs
> that uses random numbers? (Preferably, into Haskell.)
> Is there some good library for such purposes? Or, if there's not, what's the
> best literature / articles to get useful insights.
You could certainly program (in Coq) using a probability monad, which
should extract nicely to Haskell or to Caml.
To formally reason about your probabilistic programs, the following
Coq libraries and tools could help:
- Alea https://www.lri.fr/~paulin/ALEA/
- Certicrypt http://certicrypt.gforge.inria.fr/
Hope this helps,
- Xavier Leroy
- [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/21/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/21/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Xavier Leroy, 11/21/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/21/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/22/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/22/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/22/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/22/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/22/2016
- Re: [Coq-Club] What's the best way to extract programs that use random numbers?, Ilmārs Cīrulis, 11/21/2016
Archive powered by MHonArc 2.6.18.