-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExamples.lean
41 lines (37 loc) · 977 Bytes
/
Examples.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import Mathlib.Data.List.Defs
def fano (a b c : Fin 7) :=
List.permutations [a, b, c]
#eval fano 2 5 6
def fano_ell (a b c : Fin 7) : Prop :=
match a with
| 0 => match b with
| 1 => match c with
| 2 => True
| _ => False
| 3 => match c with
| 6 => True
| _ => False
| 5 => match c with
| 4 => True
| _ => False
| _ => False
| 1 => match b with
| 3 => match c with
| 5 => True
| _ => False
| _ => False
| 2 => match b with
| 3 => match c with
| 4 => True
| _ => False
| 6 => match c with
| 5 => True
| _ => False
| _ => False
| 4 => match b with
| 6 => match c with
| 2 => True
| _ => False
| _ => False
| _ => False
#eval fano_ell 5 3 1