├── .github └── workflows │ └── ci.yml ├── .gitignore ├── Alloy.lean ├── Alloy ├── C.lean ├── C │ ├── Enum.lean │ ├── ExternDef.lean │ ├── ExternImpl.lean │ ├── ExternType.lean │ ├── Grammar.lean │ ├── IR.lean │ ├── Server.lean │ ├── Server │ │ ├── Clangd.lean │ │ ├── Location.lean │ │ ├── SemanticTokens.lean │ │ └── Worker.lean │ ├── Shim.lean │ ├── ShimElab.lean │ ├── Syntax.lean │ └── Translator.lean └── Util │ ├── Binder.lean │ ├── Command.lean │ ├── Extension.lean │ ├── Grammar.lean │ ├── OpaqueType.lean │ ├── Parser.lean │ ├── Server.lean │ ├── Server │ ├── Capabilities.lean │ ├── Extra.lean │ ├── Initialize.lean │ ├── Methods.lean │ └── Worker.lean │ ├── Shim.lean │ ├── ShimElab.lean │ └── Syntax.lean ├── LICENSE ├── Main.lean ├── README.md ├── examples ├── S │ ├── .gitignore │ ├── Main.lean │ ├── S.lean │ ├── Test.lean │ ├── lakefile.lean │ └── test.sh └── my_add │ ├── .gitignore │ ├── Main.lean │ ├── MyAdd.lean │ ├── Test.lean │ ├── lakefile.lean │ └── test.sh ├── lake-manifest.json ├── lakefile.lean ├── lean-toolchain ├── test.sh └── tests ├── compile ├── .gitignore ├── Eval.lean ├── Main.lean ├── Test.lean ├── Test │ ├── Enum.lean │ ├── RawStruct.lean │ └── ScalarStruct.lean ├── lakefile.lean └── test.sh ├── envIncludePath.lean ├── includePath.h └── run ├── elab.lean ├── includePath.lean ├── opaqueType.lean ├── parseLeanH.lean └── trickySyntax.lean /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.lake 2 | -------------------------------------------------------------------------------- /Alloy.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy.lean -------------------------------------------------------------------------------- /Alloy/C.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C.lean -------------------------------------------------------------------------------- /Alloy/C/Enum.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Enum.lean -------------------------------------------------------------------------------- /Alloy/C/ExternDef.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/ExternDef.lean -------------------------------------------------------------------------------- /Alloy/C/ExternImpl.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/ExternImpl.lean -------------------------------------------------------------------------------- /Alloy/C/ExternType.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/ExternType.lean -------------------------------------------------------------------------------- /Alloy/C/Grammar.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Grammar.lean -------------------------------------------------------------------------------- /Alloy/C/IR.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/IR.lean -------------------------------------------------------------------------------- /Alloy/C/Server.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Server.lean -------------------------------------------------------------------------------- /Alloy/C/Server/Clangd.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Server/Clangd.lean -------------------------------------------------------------------------------- /Alloy/C/Server/Location.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Server/Location.lean -------------------------------------------------------------------------------- /Alloy/C/Server/SemanticTokens.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Server/SemanticTokens.lean -------------------------------------------------------------------------------- /Alloy/C/Server/Worker.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Server/Worker.lean -------------------------------------------------------------------------------- /Alloy/C/Shim.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Shim.lean -------------------------------------------------------------------------------- /Alloy/C/ShimElab.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/ShimElab.lean -------------------------------------------------------------------------------- /Alloy/C/Syntax.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Syntax.lean -------------------------------------------------------------------------------- /Alloy/C/Translator.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/C/Translator.lean -------------------------------------------------------------------------------- /Alloy/Util/Binder.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Binder.lean -------------------------------------------------------------------------------- /Alloy/Util/Command.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Command.lean -------------------------------------------------------------------------------- /Alloy/Util/Extension.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Extension.lean -------------------------------------------------------------------------------- /Alloy/Util/Grammar.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Grammar.lean -------------------------------------------------------------------------------- /Alloy/Util/OpaqueType.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/OpaqueType.lean -------------------------------------------------------------------------------- /Alloy/Util/Parser.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Parser.lean -------------------------------------------------------------------------------- /Alloy/Util/Server.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server.lean -------------------------------------------------------------------------------- /Alloy/Util/Server/Capabilities.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server/Capabilities.lean -------------------------------------------------------------------------------- /Alloy/Util/Server/Extra.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server/Extra.lean -------------------------------------------------------------------------------- /Alloy/Util/Server/Initialize.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server/Initialize.lean -------------------------------------------------------------------------------- /Alloy/Util/Server/Methods.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server/Methods.lean -------------------------------------------------------------------------------- /Alloy/Util/Server/Worker.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Server/Worker.lean -------------------------------------------------------------------------------- /Alloy/Util/Shim.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Shim.lean -------------------------------------------------------------------------------- /Alloy/Util/ShimElab.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/ShimElab.lean -------------------------------------------------------------------------------- /Alloy/Util/Syntax.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Alloy/Util/Syntax.lean -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/LICENSE -------------------------------------------------------------------------------- /Main.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/Main.lean -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/README.md -------------------------------------------------------------------------------- /examples/S/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/.gitignore -------------------------------------------------------------------------------- /examples/S/Main.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/Main.lean -------------------------------------------------------------------------------- /examples/S/S.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/S.lean -------------------------------------------------------------------------------- /examples/S/Test.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/Test.lean -------------------------------------------------------------------------------- /examples/S/lakefile.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/lakefile.lean -------------------------------------------------------------------------------- /examples/S/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/S/test.sh -------------------------------------------------------------------------------- /examples/my_add/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/.gitignore -------------------------------------------------------------------------------- /examples/my_add/Main.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/Main.lean -------------------------------------------------------------------------------- /examples/my_add/MyAdd.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/MyAdd.lean -------------------------------------------------------------------------------- /examples/my_add/Test.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/Test.lean -------------------------------------------------------------------------------- /examples/my_add/lakefile.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/lakefile.lean -------------------------------------------------------------------------------- /examples/my_add/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/examples/my_add/test.sh -------------------------------------------------------------------------------- /lake-manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/lake-manifest.json -------------------------------------------------------------------------------- /lakefile.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/lakefile.lean -------------------------------------------------------------------------------- /lean-toolchain: -------------------------------------------------------------------------------- 1 | leanprover/lean4:v4.21.0 2 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/test.sh -------------------------------------------------------------------------------- /tests/compile/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/.gitignore -------------------------------------------------------------------------------- /tests/compile/Eval.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/Eval.lean -------------------------------------------------------------------------------- /tests/compile/Main.lean: -------------------------------------------------------------------------------- 1 | import Test 2 | 3 | def main : IO Unit := do 4 | allTests 5 | -------------------------------------------------------------------------------- /tests/compile/Test.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/Test.lean -------------------------------------------------------------------------------- /tests/compile/Test/Enum.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/Test/Enum.lean -------------------------------------------------------------------------------- /tests/compile/Test/RawStruct.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/Test/RawStruct.lean -------------------------------------------------------------------------------- /tests/compile/Test/ScalarStruct.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/Test/ScalarStruct.lean -------------------------------------------------------------------------------- /tests/compile/lakefile.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/lakefile.lean -------------------------------------------------------------------------------- /tests/compile/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/compile/test.sh -------------------------------------------------------------------------------- /tests/envIncludePath.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/envIncludePath.lean -------------------------------------------------------------------------------- /tests/includePath.h: -------------------------------------------------------------------------------- 1 | #define FOOBAR 1 2 | -------------------------------------------------------------------------------- /tests/run/elab.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/run/elab.lean -------------------------------------------------------------------------------- /tests/run/includePath.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/run/includePath.lean -------------------------------------------------------------------------------- /tests/run/opaqueType.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/run/opaqueType.lean -------------------------------------------------------------------------------- /tests/run/parseLeanH.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/run/parseLeanH.lean -------------------------------------------------------------------------------- /tests/run/trickySyntax.lean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tydeu/lean4-alloy/HEAD/tests/run/trickySyntax.lean --------------------------------------------------------------------------------