Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in-progress redex semantics to repository #324

Draft
wants to merge 56 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1c9e5e7
datatypes rfc
oflatt Dec 1, 2023
3eedb7d
working on semantics
oflatt Dec 8, 2023
bddb323
progress on query semantics
oflatt Dec 11, 2023
ec03e2f
semantics for functions
oflatt Dec 11, 2023
9985a65
started on actions
oflatt Dec 12, 2023
aec4d88
some text about invaiant maintenance
oflatt Dec 15, 2023
59a9b60
some spellings
oflatt Dec 15, 2023
b136dea
small cleanup'
oflatt Dec 15, 2023
340b0e1
get started on redex version
oflatt Dec 24, 2023
b763e1a
big progress with metafunctions
oflatt Dec 26, 2023
6a1e8cb
eval actions and generate pngs
oflatt Dec 26, 2023
e40c9de
todo list
oflatt Dec 26, 2023
20cfa50
semantics.rkt run in make
oflatt Dec 26, 2023
8b9f6e9
env in database
oflatt Dec 26, 2023
ff90ad3
typed judgement
oflatt Dec 27, 2023
e62ee69
add union
oflatt Dec 27, 2023
de88a4f
restore congruence implementation
oflatt Dec 28, 2023
12d5a79
restore congruence works
oflatt Dec 28, 2023
9d3cb4f
move semantics into semantics folder
oflatt Dec 28, 2023
41ad109
add rules to database state
oflatt Dec 28, 2023
0c7550a
use upper case for grammar
oflatt Dec 28, 2023
d442706
typed rules working
oflatt Dec 28, 2023
e14a6d8
add rules to database
oflatt Dec 28, 2023
24c0fa1
rename to typed program
oflatt Dec 29, 2023
70aa587
evaluating rules, need to run queries
oflatt Dec 29, 2023
3206562
add rough draft e-matching
oflatt Dec 29, 2023
c9006ab
Running rules! Does it work? Need more tests
oflatt Dec 29, 2023
a846e5f
fix up eval actions
oflatt Dec 30, 2023
2773fb2
scribble file for semantics doc
oflatt Dec 30, 2023
23d770b
format arrow
oflatt Dec 30, 2023
5f4f1c7
fix up tests again
oflatt Dec 30, 2023
74731dc
style tweak
oflatt Dec 30, 2023
60f10c2
refactor to have a tset literal
oflatt Dec 30, 2023
aae0a3a
add constructor for congr
oflatt Dec 30, 2023
4e2cbf3
some progress on typesetting
oflatt Dec 31, 2023
0bbab80
try to make render function
oflatt Dec 31, 2023
41c7ace
more semantics, render on multiple lines
oflatt Dec 31, 2023
ee98538
experiment with alternate semantics, too slow
oflatt Dec 31, 2023
3c67361
simplify evaluate expr
oflatt Jan 1, 2024
29b2c39
better todo section
oflatt Jan 3, 2024
5e0cedc
found bug in running query
oflatt Jan 3, 2024
4f079dd
working on better query execution
oflatt Jan 3, 2024
3c4fb7d
another try at better e-matching
oflatt Jan 3, 2024
96a10a1
weird error
oflatt Jan 3, 2024
cf6a87f
delete old md file
oflatt Jan 3, 2024
bf372e0
fix new version of valid-subst
oflatt Jan 3, 2024
6d73020
fix several bugs
oflatt Jan 4, 2024
d453c6f
fix up tests
oflatt Jan 4, 2024
c1a6873
formatting fixes
oflatt Jan 4, 2024
bd5bdca
noticed bug in set union typesetting
oflatt Jan 4, 2024
9f7a843
some small fixes
oflatt Jan 7, 2024
5ecbc9e
more formatting sets
oflatt Jan 7, 2024
cd37af7
more set notation fixes
oflatt Jan 8, 2024
fb04491
fix up tests again
oflatt Jan 8, 2024
6cb9cb2
finally congruence looks ok
oflatt Jan 8, 2024
e46aef4
get rid of datatypes rfc for now
oflatt Jan 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ _scratch.egg

# racket
scripts/compiled
semantics/compiled
semantics/*.png
docs
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all web test nits docs serve graphs rm-graphs
.PHONY: all web test nits docs serve graphs rm-graphs semantics

RUST_SRC=$(shell find . -type f -wholename '*/src/*.rs' -or -name 'Cargo.toml')
TESTS=$(shell find tests/ -type f -name '*.egg' -not -name '*repro-*')
Expand All @@ -10,7 +10,7 @@ WEB_SRC=$(wildcard web-demo/static/*)
WASM=web_demo.js web_demo_bg.wasm
DIST_WASM=$(addprefix ${WWW}, ${WASM})

all: test nits web docs
all: test nits web docs semantics

test:
cargo nextest run --release
Expand Down Expand Up @@ -44,6 +44,11 @@ ${DIST_WASM}: ${RUST_SRC}
wasm-pack build web-demo --target no-modules --no-typescript --out-dir ${WWW}
rm -f ${WWW}/{.gitignore,package.json}

semantics:
mkdir -p ./docs
scribble --dest ./docs semantics/*.scrbl
raco test semantics/*.rkt

graphs: $(patsubst %.egg,%.svg,$(filter-out $(wildcard tests/repro-*.egg),$(wildcard tests/*.egg)))

%.svg: %.egg
Expand Down
Loading