About
jsCoq Dev Team
Coq Proof Assistant
company-coq
Examples
Infinitude of Primes
Irrationality of
2
🎡 Çoqoban
Software Foundations
open the scratchpad
to start editing
Welcome to the
jsCoq
Interactive Online System!
### Welcome to JsCoq - You can edit this document as you please - Coq will recognize the code snippets as Coq - You will be able to save the document and link to other documents soon We can also add some random math: $$ \sum_i a_i * b_i $$ I *love* random math $x \cdot y \approx y \cdot x$. ```coq From Coq Require Import List. Import ListNotations. ``` ```coq Lemma rev_snoc_cons A : forall (x : A) (l : list A), rev (l ++ [x]) = x :: rev l. Proof. induction l. - reflexivity. - simpl. rewrite IHl. simpl. reflexivity. Qed. ``` Try to update _above_ and **below**: ```coq Theorem rev_rev A : forall (l : list A), rev (rev l) = l. Proof. induction l. - reflexivity. - simpl. rewrite rev_snoc_cons. rewrite IHl. reflexivity. Qed. ``` Please edit your code here!