Skip to content

Commit dcb41f0

Browse files
committed
Better formatting
1 parent a1ee1b6 commit dcb41f0

File tree

3 files changed

+44
-47
lines changed

3 files changed

+44
-47
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths-ignore:
7-
- '**/*.txt'
7+
- '**/*.md'
88
pull_request:
99
branches: [main]
1010

readme.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Test suite for strong β-reduction
2+
3+
We refer to reducers reducing under abstractions as *strong* reducers.
4+
The suite tests for strong β-reduction until normal form and therefore
5+
assumes reduction strategies where such normal form is found.
6+
(e.g. normal-order, leftmost-outermost, commonly referred to as
7+
Call-by-Need)
8+
9+
Languages may be tested in one of two ways:
10+
11+
- if the language reduces strongly and lazily, translate the tests to
12+
the language and use it to reduce the terms directly
13+
- if not, use a higher order (or NbE) reducer to reduce the terms
14+
15+
Please contribute!
16+
17+
## Tests
18+
19+
The tests are reconstructed from the handwritten test suite of the
20+
bruijn programming language. Currently the suite consists of 3466 tests.
21+
It comprises many different data structures and numeric encodings. Some
22+
of the tests are also quite long and contain redundant terms and
23+
potential for sharing.
24+
25+
Each line in `tests` consists of
26+
`<bruijn term>: <term (blc)> - <nf (blc)>`. The left term is expected to
27+
be α-equivalent to the right term after strong β-reduction.
28+
29+
Any test reducing for more than 5s without reaching a normal form is
30+
deemed to have failed.
31+
32+
## Results
33+
34+
| Test | Passed | Timeout | Failed |
35+
|:---------------|:-------|:--------|:-------|
36+
| Haskell HOAS | 3466 | 0 | 0 |
37+
| Optiscope | 3301 | 164 | 1 |
38+
| Tromp AIT/nf.c | 1935 | 5 | 1526 |
39+
| Your project | ? | ? | ? |
40+
41+
## Effects
42+
43+
- improved optiscope: https://github.com/etiamz/optiscope/issues/5

readme.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)