-
Notifications
You must be signed in to change notification settings - Fork 1
/
granule-snippets.json
57 lines (46 loc) · 1.16 KB
/
granule-snippets.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"Quantifier for 'a'": {
"prefix": "foralla",
"body": ["forall {a : Type} . $0"]
},
"Quantifier for 'ab'": {
"prefix": "forallab",
"body": ["forall {a : Type, b : Type} . $0"]
},
"Quantifier for 'an'": {
"prefix": "forallan",
"body": ["forall {a : Type, n : Nat} . $0"]
},
"Quantifier for 'n'": {
"prefix": "foralln",
"body": ["forall {n : Nat} . $0"]
},
"Quantifier for 'abn'": {
"prefix": "forallabn",
"body": ["forall {a : Type, b : Type, n : Nat} . $0"]
},
"Quantifier for 'nm'": {
"prefix": "forallnm",
"body": ["forall {n : Nat, m : Nat} . $0"]
},
"Quantifier for 'nk'": {
"prefix": "forallnk",
"body": ["forall {n : Nat, k : Nat} . $0"]
},
"Natural number data type": {
"prefix": "dataN",
"body": ["data N (n : Nat) where\n Z : N 0;\n S : forall {n : Nat} . N n -> N (n+1)\n$0"]
},
"Vector data type": {
"prefix": "dataVec",
"body": ["data Vec (n : Nat) (a : Type) where\n Nil : Vec 0 a;\n Cons : forall {n : Nat} . a -> Vec n a -> Vec (n+1) a\n$0"]
},
"Infinity symbol": {
"prefix": "Inf",
"body": "∞"
},
"Line": {
"prefix": "-l",
"body": ["----------------------------------------"]
}
}