coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Sergey Goncharov <sergey.goncharov AT fau.de>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Agda is better
- Date: Sat, 18 Jan 2020 09:33:38 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=sergey.goncharov AT fau.de; spf=Pass smtp.mailfrom=sergey.goncharov AT fau.de; spf=Pass smtp.helo=postmaster AT mx-rz-2.rrze.uni-erlangen.de
- Ironport-phdr: 9a23:V2YwnBwmzMfjuAvXCy+O+j09IxM/srCxBDY+r6Qd2ugSIJqq85mqBkHD//Il1AaPAdyHraoVwLOP7eigATVGvc/a9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMucQam5duJ6I+xhfUv3dFevldyWd0KV6OhRrx6dq88ZB5/yhMp/4t8tNLXLnncag/UbFWFiktPXov5M3suxnDTA+P6WUZX24LjBdGABXL4Q/jUJvpvST0quRy2C+BPc3rVr80Qiit771qSBDzligKMSMy/XzNhcxxiKJbpw+hpwB6zoXJboyZKOZyc6XAdt4cWGFPXNteVzZZD42hcYUPAeoPM+VWoYbzqFQBrwexCBKjBO/z0DJFmmP60KM43uknDArI3BYgH9ULsHnMsdv6Kr0SUe+rw6jI0D7NbvRW2THh54jIaB8hu/aMXaxtesfW0kkgCRnFjlqOpo3lJT+V2eMNs26H4OpgT+2vkWknqx9qrzih3Mgsl5PFiZ8LxV3d8yhy3Yg7Jdq9SEFhYN6kFoNdti6HN4RsRMMiWXxouCcjyr0Ho5K0YC8KyJE/yxHDa/yIaYyI4hf9W+aLOjd0nmlld6y5ih2v8kag0vXxWtS63VpXtCZJj9rBu3MX2xDO98SLUOVx8lq51TqRzQ/f9v9ILEU3mKbGN5Iu37s9m54cvEnNEC/7nUv2ga6We0gm/+Wl6eTqb7vkq5KZKYN5iB/yP6Arl8G8HOs4PA0DUmiH9uii0rDo4Ff3T69QjvIsl6nUqJDaKtofpq6+GwJV14ki5w+lDzanydgUg2MLLEhfeBOGkYflIUzOIPb5DfumnVusijNryOrAPr3uHJrNKGLPn6r/crpl6k5czhQ8zcxH6p5JBLwNPej/VlLyudHbFBM1LhG4z/z5BNlgzo8eXHiAAq6dMKPcq1+I4ecvLvGXZIALojb9JOYq5v70gX82nl8de7Wm3ZsNZ3CiGfRmPV6UYXT2jdccC2sFoxQxQPTwiFKeST5Te2qyX6Uk6z4nD4KmFJ7PSZypgLycxyi2BYZWZ2BDClCUC3jkbYSEW/EWaCKTOMBtiDIEVaLyA7MmgBqprUrxz6dtBuvS4CwR85z5h/Zv4OiGrhwo+jFlR+ua1WqNRntzgCtcXDIs061u50N6zFyD2LJ/ndRWHMEV6/4fAVRyDoLV0+EvU4O6YQnGZNrcEA/3EOXjOik4S5cK+/FLZk98H9u4iRWTjSSjHvkZmu7SXcBmwufnx3H0Yv1F5TPezqBx3VcvX41DOD/+3/Mtx03oH4fM1n6hueOqeKAbh3af8XfG13jL5gdCShx9F7jDXDUSfE/fq9v04AXOQu33BA==
Dear Xuanrui,
On 18/01/2020 08:08, Xuanrui Qi wrote:
In Agda one can reuse names of fields in records, while in Coq that
yields an error
I'm not sure this is always desirable. Shadowing of field names can be
confusing at times so I'd not always call this a "usability
improvement".
Maybe I do misunderstand something, but for example with
--------------------------------
open import Data.Nat
record man (A : Set) : Set where
field
height : A
record woman (A : Set) : Set where
field
height : A
joe : man ℕ
joe = record { height = 180 }
jodie : woman ℕ
jodie = record { height = 175 }
--------------------------------
(man.height joe) and (women.height jodie) work as expected and completely satisfactory to me.
-- Sergey
Meanwhile, I do have my opinion on how Agda is better than Coq, but IMO
it's not due to the design of the theorem provers, but rather the fact
that Agda has more edit-time utilities and tool support. I'd like to
share my Coq Workshop 2019 slides (& accompanying abstract) where I
elaborate on the ergonomics of Coq programming:
https://www.xuanruiqi.com/assets/coqws2019_long.pdf
https://www.xuanruiqi.com/assets/coqws2019_slides.pdf
-Xuanrui
On Fri, 2020-01-17 at 20:33 +0100, Sergey Goncharov wrote:
On 17/01/2020 20:06, Agda Guru wrote:
Agda is better
This looks like a start of a new amusing thread. I am willing to
believe
that Agda is better, but I would be happy if someone helps me to
rationalize this subtle feeling, in particular by going beyond this
list
https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Main.AgdaVsCoq
Let me start. Foundational issues aside, Agda seems to be better
designed, as a programming language, in particular, as a recently
learned:
1. In Agda one can reuse names of fields in records, while in Coq
that
yields an error:
Parameter X : Set.
Record some_record : Set :=
{
field_name : X
}.
Record some_other_record : Set :=
{
field_name : X
}.
----> "Error: field_name already exists."
Cheers,
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- [Coq-Club] Agda is better, Agda Guru, 01/17/2020
- Re: [Coq-Club] Agda is better, Timothy Carstens, 01/17/2020
- Re: [Coq-Club] Agda is better, Agda Guru, 01/17/2020
- Re: [Coq-Club] Agda is better, Sergey Goncharov, 01/17/2020
- Re: [Coq-Club] Agda is better, Xuanrui Qi, 01/18/2020
- Re: [Coq-Club] Agda is better, Sergey Goncharov, 01/18/2020
- Message not available
- Re: [Coq-Club] Agda is better, Xuanrui Qi, 01/18/2020
- Re: [Coq-Club] Agda is better, Kevin Sullivan, 01/18/2020
- Re: [Coq-Club] Agda is better, Xuanrui Qi, 01/18/2020
- Re: [Coq-Club] Agda is better, Xuanrui Qi, 01/18/2020
- Re: [Coq-Club] Agda is better, Timothy Carstens, 01/17/2020
Archive powered by MHonArc 2.6.18.