summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-09-19 13:03:48 +0200
committerHannes Schulze <haschu0103@outlook.de>2025-09-19 13:03:48 +0200
commitc92169d23ec70e453bf1b84c82b224997065e0ff (patch)
tree11ffd45cfdd005a98277e4d164fbb10f6d4caa86
initial commit
-rw-r--r--.gitignore1
-rw-r--r--Nominal.lean3
-rw-r--r--Nominal/Basic.lean1
-rw-r--r--flake.lock61
-rw-r--r--flake.nix24
-rw-r--r--lake-manifest.json95
-rw-r--r--lakefile.toml11
-rw-r--r--lean-toolchain1
8 files changed, 197 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/Nominal.lean b/Nominal.lean
new file mode 100644
index 0000000..a3f0848
--- /dev/null
+++ b/Nominal.lean
@@ -0,0 +1,3 @@
+-- This module serves as the root of the `Nominal` library.
+-- Import modules here that should be built as part of the library.
+import Nominal.Basic
diff --git a/Nominal/Basic.lean b/Nominal/Basic.lean
new file mode 100644
index 0000000..99415d9
--- /dev/null
+++ b/Nominal/Basic.lean
@@ -0,0 +1 @@
+def hello := "world"
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..6650c8f
--- /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": 1758213207,
+ "narHash": "sha256-rqoqF0LEi+6ZT59tr+hTQlxVwrzQsET01U4uUdmqRtM=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "f4b140d5b253f5e2a1ff4e5506edbf8267724bde",
+ "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..0f3c0db
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+ description = "Nominal Sets 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..e793730
--- /dev/null
+++ b/lake-manifest.json
@@ -0,0 +1,95 @@
+{"version": "1.1.0",
+ "packagesDir": ".lake/packages",
+ "packages":
+ [{"url": "https://github.com/leanprover-community/mathlib4",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "37df177aaa770670452312393d4e84aaad56e7b6",
+ "name": "mathlib",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v4.23.0",
+ "inherited": false,
+ "configFile": "lakefile.lean"},
+ {"url": "https://github.com/leanprover-community/plausible",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "a22e7c1fa7707fb7ea75f2f9fd6b14de2b7b87a9",
+ "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": "99657ad92e23804e279f77ea6dbdeebaa1317b98",
+ "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": "7fca1d4a190761bac0028848f73dc9a59fcb4957",
+ "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": "6e47cc88cfbf1601ab364e9a4de5f33f13401ff8",
+ "name": "proofwidgets",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "v0.0.71",
+ "inherited": true,
+ "configFile": "lakefile.lean"},
+ {"url": "https://github.com/leanprover-community/aesop",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "247ff80701c76760523b5d7c180b27b7708faf38",
+ "name": "aesop",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "master",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/quote4",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "9b703a545097978aef0e7e243ab8b71c32a9ff65",
+ "name": "Qq",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "master",
+ "inherited": true,
+ "configFile": "lakefile.toml"},
+ {"url": "https://github.com/leanprover-community/batteries",
+ "type": "git",
+ "subDir": null,
+ "scope": "leanprover-community",
+ "rev": "d117e2c28cba42e974bc22568ac999492a34e812",
+ "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": "41c5d0b8814dec559e2e1441171db434fe2281cc",
+ "name": "Cli",
+ "manifestFile": "lake-manifest.json",
+ "inputRev": "main",
+ "inherited": true,
+ "configFile": "lakefile.toml"}],
+ "name": "Nominal",
+ "lakeDir": ".lake"}
diff --git a/lakefile.toml b/lakefile.toml
new file mode 100644
index 0000000..45c09ba
--- /dev/null
+++ b/lakefile.toml
@@ -0,0 +1,11 @@
+name = "Nominal"
+version = "0.1.0"
+defaultTargets = ["Nominal"]
+
+[[require]]
+name = "mathlib"
+scope = "leanprover-community"
+rev = "v4.23.0"
+
+[[lean_lib]]
+name = "Nominal"
diff --git a/lean-toolchain b/lean-toolchain
new file mode 100644
index 0000000..7f254a9
--- /dev/null
+++ b/lean-toolchain
@@ -0,0 +1 @@
+leanprover/lean4:v4.23.0