Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Minimum Working Example (MWE)

Jacob A Stark edited this page Apr 29, 2020 · 10 revisions

A minimum working example is a code snippet that can be copied-and-pasted and still have the same features (working) and that does not include unnecessary details (minimum).

Here is the stackoverflow guide to making MWEs.

Please make sure that your code snippet has:

  • correct imports; and
  • all the relevant definitions / theorems.

In particular, you should test this by making a new Lean file, pasting your code snippet into it, and seeing if you get the expected behavior. This is exactly what people who try to help you will do!

If you post a code snippet on Zulip, please make sure it is surrounded in triple backticks.

```
def my_nat : nat := 5
```