Loading worker... 100%

xxxxxxxxxx
### 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.
β
From Waterproof Require Import Tactics.
```
β
```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!
β
β
Loading worker... 100%