r/Coq • • Sep 10 '22

How I feel doing software foundations

56 Upvotes

r/Coq • • Jan 04 '25

I've completely formalized 3 key chapters from Rob's Type Theory and Formal Proof textbook

34 Upvotes

Chapter 11 (Flag-style natural deduction in λD) - NaturalDeduction.v

Chapter 12 (Mathematics in λD: a first attempt) - MathematicsFirstAttempt.v

Chapter 13 (Sets and subsets) - SetsAndSubsets.v

I've turned off Coq Standard Library (-noinit option) and everything is developed from scratch and no inductive types are used. I developed a new Coq dialect which is as close to the textbook as possible.

I'm happy to say that the modern version of Coq (2024) is 100% compatible with the original Calculus of Constructions and λD extension. I bet chapters from 2 to 10 is also possible to formalize, so you can keep it in mind if you would like to learn type theory deeper.

I would like to get some code review and suggestions/corrections. Any feedback is good. https://github.com/kciray8/the-great-formalization-project/pull/2/files

Keep in mind though that I decided to save a bit of time by allowing coq automatically name things for me (H0, H1, H2 etc) and haven't done any code refactoring for readability yet.


r/Coq • • Nov 20 '21

The proposal for a proof assistants StackExchange site

Thumbnail math.andrej.com
31 Upvotes

r/Coq • • Dec 21 '23

Coq name change

28 Upvotes

I didn't see any official announcements anywhere, but it seems like Coq will finally be changing its name to the Rocq Prover.


r/Coq • • Nov 26 '17

Intermediate Coq: "Programming In The Large" Roadmap

28 Upvotes

Between Software Foundations and Adam Chlipala's books, there is an enormous amount of excellent introductory material for "programming in the small" in Coq. On the other hand, whenever I try to write a Coq project of non-trivial size, I run into all sorts of issues. They include:

  • When should I use modules vs. typeclasses?

  • Is using setoids everywhere instead of eq overkill?

  • When should I use reflection?

  • When should I use refine?

  • When should I use Program (Russell)?

  • What options should I set? Implicit Arguments seems to be consensus, are there others?

  • What set of libraries should I default to?

...and, while I'm at it, here are some "coding in the small" things I can't figure out:

  • How do I make coinduction non-painful?

  • How do I use hints properly?

Any insight is greatly appreciated.


r/Coq • • Sep 23 '21

Formal verification manager job at Google - Coq experience a plus

Thumbnail linkedin.com
25 Upvotes

r/Coq • • May 19 '21

This is My First Non-trivial Coq Development

25 Upvotes

I finished reading "To Mock a Mockingbird" by Raymond Smullyan which is an introduction to combinatory logic. I was excited to try my hand at formalizing the proofs using Coq, and this is the result.

Along the way, I even discovered a major, but easily correctible, mistake that Smullyan made. To make certain proofs go through, I also had to prove the Church-Rosser theorem, which seemed to be implicitly taken for granted by Smullyan.

Anyway I just wanted to show off my code here and welcome any suggestions.


r/Coq • • Sep 12 '20

New Software Foundations volume: "Verifiable C" by Appel and Cao

Thumbnail
softwarefoundations.cis.upenn.edu
25 Upvotes

r/Coq • • Feb 19 '25

What happened to renaming Coq?

24 Upvotes

It's been 4 years. I don't use Coq, but am curious as to what happened to the renaming.


r/Coq • • Jan 26 '23

Companies using Coq / Formal Methods

23 Upvotes

I recently finished my undergraduate degree in CS. I was lucky enough to work on some research involving formal verification using the Coq proof assistant. This project was submitted to CoqPL and I was lucky enough to give a talk at CoqPL.

I really want to work in formal verification. I am planning on doing a PhD, but will likely apply this fall, and begin next year. I would ideally like to switch roles (from swe) to something more aligned with PL research. I spend most of my free time using Coq for two research projects with various faculty and PhD students.

Does anyone know some companies doing formal verification or PL research, and open to hiring an undergraduate. Any tips / pointers would be awesome!

TY!!


r/Coq • • Nov 15 '20

Blog post: Untangling mechanized proofs

Thumbnail
plv.csail.mit.edu
23 Upvotes

r/Coq • • Dec 14 '16

Coq 8.6 is out | The Coq Proof Assistant

Thumbnail
coq.inria.fr
23 Upvotes

r/Coq • • Jun 05 '14

Masashi Kikuchi used Coq to find the latest OpenSSL bug

Thumbnail ccsinjection.lepidum.co.jp
23 Upvotes

r/Coq • • Nov 21 '21

Help the Proof Assistants Stack Exchange reach Beta!

Thumbnail
area51.stackexchange.com
22 Upvotes

r/Coq • • Jul 05 '20

Coq trick: (Almost) writing a function of type option α → α

Thumbnail
plv.csail.mit.edu
22 Upvotes

r/Coq • • May 11 '17

Starting a problem-of-the-week blog for Coq

22 Upvotes

Hey everyone,

I'm experimenting with maintaining a blog for weekly(ish?) Coq puzzles here. My intent is these problems will deal will mostly basic mathematics, and that the challenge comes moreso from the angles of constructivism and/or formalization. I don't intend these to be beginner-level/tutorial type problems, but at the same time you shouldn't have to be a Coq wizard to be able to solve these.

The first problem is up, which you can find here. I'll try to post a solution a few days after a problem is posted.

I'd be happy to hear feedback about format, layout, problem difficulty, or suggestions for future problems. Thanks!


r/Coq • • Sep 23 '20

ANSSI released reviewing standards for Coq proofs placing Coq at the highest (EAL7) level for software verification

Thumbnail ssi.gouv.fr
21 Upvotes

r/Coq • • Dec 08 '21

On relational compilation

Thumbnail people.csail.mit.edu
20 Upvotes

r/Coq • • Apr 11 '19

The Dune build system can now build Coq projects

Thumbnail dune.readthedocs.io
20 Upvotes

r/Coq • • Mar 09 '17

Bullets are good for your Coq proofs

Thumbnail prl.ccs.neu.edu
20 Upvotes

r/Coq • • Aug 10 '26

Tree-sitter grammar for (pre-release 0.2.0)

Post image
19 Upvotes

Hi! Me again :]
I'd love to share my progress on tree-sitter-rocq

https://github.com/aruzdh/tree-sitter-rocq

Pre-release 0.2.0 focuses on mirroring some rules from the official reference manual, so anybody who wants to contribute or give it a look can have a better understanding by following the official grammar.

Plus, I'm currently working on (SF) Imp and (SF) Hoare Logic! This will be a great improvement, especially for those who use SF to learn Rocq.

Here is a preview of those features. Any suggestions, comments, or stars on GitHub would mean a lot!


r/Coq • • Oct 08 '19

Coq 8.10.0 is out

Thumbnail
coq.inria.fr
19 Upvotes

r/Coq • • Apr 02 '19

Jupyter Kernel for Coq

Thumbnail
github.com
19 Upvotes

r/Coq • • Dec 29 '17

Coming Soon: Machine-Checked Mathematical Proofs in Everyday Software and Hardware Development

Thumbnail
media.ccc.de
19 Upvotes

r/Coq • • May 15 '17

Coq problem sets for MIT graduate course following FRAP book

Thumbnail
github.com
19 Upvotes