Algaett
🦠 An experimental elaborator for dependent type theory using effects and handlers
Install / Use
/learn @RedPRL/AlgaettREADME
🦠 algaett’s not algaeff
This development is an experiment with the following goals:
- Adopt smalltt and related techniques into the cubical world.
- Show how various OCaml packages of ours fit together.
- Write natural grammars without neccesarily conforming to LR(k).
- Use lots of Unicode emojis.
Try It Out!
opam pin git+https://github.com/RedPRL/bantorra
opam pin git+https://github.com/RedPRL/algaett
cat tests/example.ag
algaett tests/example.ag
The last line should not have an output, which means it type checks!
Important Ideas
Ideas from Smalltt
The core NbE algorithm closely follows András Kovács’s smalltt. Here are some notable differences:
- We intentionally do not implement unification.
- The universe itself (as a term) is not inferable, which means that the checking might have to be redone with the type unfolded.
The type inference from the universe 🌌 will fail, and then the type checking will be redone with 😄 unfolded to 🌌 🆙 1️⃣.📌 😄 : 🌌 🆙 2️⃣ 👉 🌌 🆙 1️⃣ 📌 _ 👉 🌌 : 😄 - The conversion checker is generalized to handle subtyping generated by cumulativity.
Modular Development
- algaeff: reusable effects-based components
- asai: error messages (not actively used yet)
- bantorra: unit resolution (not actively used yet)
- bwd: backward lists
- mugen: universe levels
- yuujinchou: namespaces and name modifier
Parser beyond LR
We are using the Earley’s parsing algorithm which can handle all context-free grammars.
Documentation
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
