coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Emilio Jesús Gallego Arias <e AT x80.org>
- To: Ben Grange <lagrange123 AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Field typeclass?
- Date: Wed, 20 Mar 2019 16:31:54 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=e AT x80.org; spf=Pass smtp.mailfrom=e AT x80.org; spf=Pass smtp.helo=postmaster AT x80.org
- Ironport-phdr: 9a23:ixnngxKL1uVYBVOxy9mcpTZWNBhigK39O0sv0rFitYgeK/nxwZ3uMQTl6Ol3ixeRBMOHsqoC1bSd7PyocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSaxbalzIRi3ognctMYbipZ+J6gszRfEvmFGcPlMy2NyIlKTkRf85sOu85Nm7i9dpfEv+dNeXKvjZ6g3QqBWAzogM2Au+c3krgLDQheV5nsdSWoZjBxFCBXY4R7gX5fxtiz6tvdh2CSfIMb7Q6w4VSik4qx2UxLjljsJOCAl/2HWksxwjbxUoBS9pxxk3oXYZJiZOOdicq/BeN8XQ3dKUMRMWCxbGo6yb5UBAfcGPeZWoYfypVgAohWxCgawH+7v1iNEi2Xq0aEmyeksEwfL1xEgEdIUt3TUqc34OqgXUeC0yKnIzDLDYOtS1zjj84jQaAshrumNU71qdcrRzVcgFwzCjlqItYHlJTKV2f4Ws2OG6OdvS/miimEkpg1tuDSvwd0siobQi48T11vK+yJ5wIMvKt25Tk52ed+kEJ1KtyGbLYR6WM0iQ3twtCkny70GooK0fC8XyJQ93B7QdeaLc4eS4hLkSeaROTF1j29mdrKnnxu+7Eutx+7mWsWqzlpHrzBJnsTOu3wQzRDf98aKRuVl8kqi2DuDzQHe5+NeLU0wj6bWKZosz7gtnZQJq0vDBDX5mEDuga+WaEok/u+o5vzoY7jlupOQLYh0ihvxMqg2m8y/B/o3MhQWUmSG+umx16fv8VPnTLhLlPE6j6vUvI3AKcgGqKO1HRdZ0oM55Ba+Czem3s4YnX4CLF9dZh2KlIfoNlLSLPziCve/mVusnC9xx//aJr3hHonNLn/bnbj9erZ98ldQxxY3zdBC/J1ZEaoBIfL2Wk/prtPUFB45Mwquw+bmEtpxzI0eWXjcSpOeZYnftxen/OspLOTEMIsctyz0LfcovqS1pXA8kF4ZO6Ku2M1ERmq/G6FLJkSdYH3boNoag3w9kQM6SOHlj2qrSz9afD7mUoostml9D5ipW9SQDruxiaCMiX/oVqZdYXpLXxXVSS+xJte0HswUYSfXGfdP1zkNVLyvUYgkhEO+5Fe8zKBofLONpn8o8Kn73d0w3NX90Ako/G0mH5TFlWaXQDMsxz5ad3oNxKl65HdF5BKD3Kx/0q5IRYQV4OlGAF43
- Organization: X80 Heavy Industries
Hi Ben,
Ben Grange
<lagrange123 AT gmail.com>
writes:
> I'm going through a linear algebra book (Linear Algebra Done Wrong, for
> anyone curious), and would like to verify my proofs with Coq. This would
> involve heavy use of matrices, of course.
> I've found the Mathematical Components library, (which has a matrix.v), but
> this seems like overkill for my humble purposes. Initially, I only went
> there because I was curious, "how did they implement this kind of
> polymorphism?"
Personally, I do recommend math-comp; even if a bit steep at the
beginning, getting into it will greatly pay off IMO.
> Indeed, what is the best way to quantify over all field-types? Would
> it be a typeclass? What would be the best way to leverage the existing
> Coq standard library? Hopefully this makes sense.
These are very interesting questions without a definitive answer yet.
I suggest you check recent threads such as [1], but in all cases, this
kind of packaging is a significant amount work.
Thus, using a mature, proven library such as math-comp will allow you to
get things done much quicker (especially when talking about linear
algebra!), and at the same time learn their approach for packaging
mathematical structures [2].
Kind regards,
Emilio
[1]
https://coq.discourse.group/t/how-to-represent-mathematical-structures-in-coq/188/8
[2] https://hal.inria.fr/inria-00368403v1/document
- [Coq-Club] Field typeclass?, Ben Grange, 03/19/2019
- Re: [Coq-Club] Field typeclass?, Emilio Jesús Gallego Arias, 03/20/2019
Archive powered by MHonArc 2.6.18.