Skip to content

Commit 1758af9

Browse files
committed
Style tweaks
1 parent 588a7bc commit 1758af9

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

aya/justfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ test:
1212

1313
doc:
1414
mkdir -p dist
15-
-aya literate.aya.md --pretty-format=html -o dist/literate.aya.html
15+
-aya literate.aya.md --pretty-format=html --pretty-color=emacs --pretty-inline-code-style -o dist/literate.aya.html
16+
# -aya literate.aya.md --pretty-format=markdown --pretty-color=emacs -pretty-inline-code-style -o dist/literate.aya.md

aya/literate.aya.md

+6-23
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Literate Programming in Aya
1+
Literate Programming in Aya
22

33
This is based on (outdated) [Introduction to literate Aya](https://blog.kiva.moe/posts/intro-literate-aya.html) and code snippets from `haskeller-tutorial.aya`.
44

5-
## Defining a type
5+
Defining a type
66

77
```aya
88
open inductive Nat | zero | suc Nat
99
```
1010

11-
## Defining an operation
11+
Defining an operation
1212

1313
```aya
1414
example def infixl <+> Nat Nat : Nat
@@ -21,37 +21,21 @@ overlap def infixl <+> Nat Nat : Nat
2121
| suc m, n => suc (m <+> n)
2222
```
2323

24-
## Meta-variables
24+
Meta-variables
2525

2626
```aya
2727
example def infixl [+] (a n : Nat) : Nat elim a
2828
| 0 ⇒ n
2929
| suc m ⇒ suc {??}
3030
```
3131

32-
## Compilation errors
32+
Compilation errors
3333

3434
```aya
3535
def foo =>
3636
```
3737

38-
```aya
39-
prim I
40-
prim coe (r s : I) (A : I → Type) : A r → A s
41-
prim Path
42-
variable A B : Type
43-
def infix = (a b : A) ⇒ Path (\i ⇒ A) a b
44-
open inductive Bool | true | false
45-
def not Bool : Bool
46-
| true ⇒ false
47-
| false ⇒ true
48-
49-
def id (x : Bool) ⇒ x
50-
51-
def Goal ⇒ id = (fn x ⇒ not (not x))
52-
```
53-
54-
## Math formulas
38+
Math formulas
5539

5640
$$
5741
\begin{align*}
@@ -61,4 +45,3 @@ $$
6145
\mid & \quad \Sigma,\mathrm{decl} \\[-0.3em]
6246
\end{align*}
6347
$$
64-

0 commit comments

Comments
 (0)