summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Schulze <contact@haschu.me>2026-06-12 19:00:37 +0200
committerHannes Schulze <contact@haschu.me>2026-06-12 19:00:37 +0200
commit4b53e65306cdafff989dbfe58cf03311ad325118 (patch)
tree55b46156769e0fd418e20352a7bb4822dac14f57
initial commit
-rw-r--r--.gitignore1
-rw-r--r--SymbolicModalLogic.lean0
-rw-r--r--flake.lock61
-rw-r--r--flake.nix24
-rw-r--r--lake-manifest.json96
-rw-r--r--lakefile.toml11
-rw-r--r--lean-toolchain1
7 files changed, 194 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bfb30ec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.lake
diff --git a/SymbolicModalLogic.lean b/SymbolicModalLogic.lean
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/SymbolicModalLogic.lean
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..8d188c5
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1781229721,
+ "narHash": "sha256-ORvqDbb/LYxiJljGIejapjkc/kJbVote2N1WSb9W45I=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "173d0ad7a974f8543a9ab01d2271b2e290341b33",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..7c3fc42
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+ description = "Symbolic Modal Logic in Lean4";
+ inputs = {
+ nixpkgs = {
+ url = "github:nixos/nixpkgs/nixpkgs-unstable";
+ };
+ flake-utils = {
+ url = "github:numtide/flake-utils";
+ };
+ };
+ outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ lean-shell = pkgs.mkShell {
+ name = "Lean";
+ packages = [ pkgs.lean4 ];
+ };
+ in {
+ devShells = {
+ default = lean-shell;
+ lean = lean-shell;
+ };
+ });
+}
diff --git a/lake-manifest.json b/lake-manifest.json
new file mode 100644
index 0000000..190adef
--- /dev/null
+++ b/lake-manifest.json
@@ -0,0 +1,96 @@
+{"version": "1.2.0",
+ "packagesDir": ".lake/packages",
+ "packages":
+ [{"url": "https://github.com/leanprover-community/mathlib4",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "c5ea00351c28e24afc9f0f84379aa41082b1188f",
+ "name": "mathlib",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v4.30.0",
+ "inherited": false,
+ "configFile": "lakefile.lean"},
+ {"url": "https://github.com/leanprover-community/plausible",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "a456461b368b71d2accd95234832cd9c174b5437",
+ "name": "plausible",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "main",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/LeanSearchClient",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "c5d5b8fe6e5158def25cd28eb94e4141ad97c843",
+ "name": "LeanSearchClient",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "main",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/import-graph",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "515cf9d0c00ece5e661f6de4326a53dedc1e8ea1",
+ "name": "importGraph",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "main",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/ProofWidgets4",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "a84b3e2475d5c5ab979567b1ad8aea21b764bcf8",
+ "name": "proofwidgets",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v0.0.99",
+ "inherited": true,
+ "configFile": "lakefile.lean"},
+ {"url": "https://github.com/leanprover-community/aesop",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "558915ae105bfd8074e22d597613d1961822adc2",
+ "name": "aesop",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v4.30.0",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/quote4",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "a6e6c34c4ef182f83b219a3a5a385f51f44bdc4c",
+ "name": "Qq",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v4.30.0",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/batteries",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "32dc18cde3684679f3c003de608743b57498c56f",
+ "name": "batteries",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "main",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover/lean4-cli",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover",
+ "rev": "6b907cf12b2e445ccb7c24bc208ef04a1f39e84c",
+ "name": "Cli",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v4.30.0",
+ "inherited": true,
+ "configFile": "lakefile.toml"}],
+ "name": "SymbolicModalLogic",
+ "lakeDir": ".lake",
+ "fixedToolchain": false}
diff --git a/lakefile.toml b/lakefile.toml
new file mode 100644
index 0000000..d6fcfd6
--- /dev/null
+++ b/lakefile.toml
@@ -0,0 +1,11 @@
+name = "SymbolicModalLogic"
+version = "0.1.0"
+defaultTargets = ["SymbolicModalLogic"]
+
+[[require]]
+name = "mathlib"
+scope = "leanprover-community"
+rev = "v4.30.0"
+
+[[lean_lib]]
+name = "SymbolicModalLogic"
diff --git a/lean-toolchain b/lean-toolchain
new file mode 100644
index 0000000..af9e5d3
--- /dev/null
+++ b/lean-toolchain
@@ -0,0 +1 @@
+leanprover/lean4:v4.30.0