TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A formalization of category theory in Coq

109 pointsby nochalmost 8 years ago

5 comments

solomatovalmost 8 years ago
It&#x27;s actually not very interesting formulation of category theory. You can&#x27;t express a category of categories, with isomorphic categories considered equal in this way. Partially, this can be worked around if we state that everything important preserves equivalence (i.e. if A ~ A` and B ~ B` A x B ~ A` x B`). Though, if you want to express this in full generality, you will need Homotopy Type Theory.<p>But, all in all, even formulating all this and proving theorems was a good exercise. Good job!
评论 #14934933 未加载
评论 #14935354 未加载
评论 #14935894 未加载
runeksalmost 8 years ago
I believe this is what John Wiegley talked about in this Haskell Cast[1] which, as I understand it, should allow translating Haskell into Coq.<p>I’m just beginning to understand all of this category stuff but, as far as I can see, a Haskell function of type<p><pre><code> f :: a -&gt; b </code></pre> should be equivalent to a Coq function of type<p><pre><code> f :: a -&gt; Either SomeException a </code></pre> to account for the Hask category’s “bottom” value.<p>[1] <a href="http:&#x2F;&#x2F;www.haskellcast.com&#x2F;episode&#x2F;013-john-wiegley-on-categories-and-compilers" rel="nofollow">http:&#x2F;&#x2F;www.haskellcast.com&#x2F;episode&#x2F;013-john-wiegley-on-categ...</a> (skip to “compiling to categories”)
评论 #14935011 未加载
评论 #14936922 未加载
SomeStupidPointalmost 8 years ago
Is there a good lecture series on Coq? Or maybe introductory project?<p>I&#x27;ve seen a video intro [0] and poked a little bit around the reference manual [1], but I&#x27;m not sure what&#x27;s &quot;between&quot; basic understanding of the commands and being able to extract a complex verified program.<p>It all seems to be either the theory (which I mostly grok) or completed projects, not a lot about the engineering details.<p>...Or does that just not exist?<p>[0] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ngM2N98ppQE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ngM2N98ppQE</a><p>[1] <a href="https:&#x2F;&#x2F;coq.inria.fr&#x2F;refman&#x2F;" rel="nofollow">https:&#x2F;&#x2F;coq.inria.fr&#x2F;refman&#x2F;</a>
评论 #14934221 未加载
评论 #14933756 未加载
评论 #14933510 未加载
评论 #14933530 未加载
评论 #14934618 未加载
评论 #14934210 未加载
MikkoFinellalmost 8 years ago
A question for those of you here who are into functional programming:<p>Is category theory worth studying if I (coming from c++ background) am looking to get into functional languages like Haskell? How common is it actually among Haskell or Lisp programmers to know and utilize concepts from category theory in their programming?
评论 #14934944 未加载
评论 #14934846 未加载
评论 #14936015 未加载
vfclistsalmost 8 years ago
And I thought he only did Emacs