Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Copyright (c) 2026 HaiyangLi <quantocean.li@gmail.com>

This repository contains two separately-licensed components:
All components of this repository are licensed under the Apache License,
Version 2.0:

- The Rust implementation under `crates/` is licensed under the
GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
See LICENSE for the full text.
- The Rust implementation under `crates/`. See LICENSE for the full text.
Each `.rs` file carries an SPDX header.

- The Lean formal proofs under `proofs/` are licensed under the
Apache License, Version 2.0. See proofs/LICENSE for the full text.
- The Lean formal proofs under `proofs/`. See proofs/LICENSE for the
full text.

Top-level documentation files (MANIFESTO.md, TCB.md, README.md, COPYRIGHT)
are licensed under Apache-2.0 via SPDX header at the top of each file.
are likewise licensed under Apache-2.0.

"Lion", "Lionrs", and related marks are trademarks of HaiyangLi.
862 changes: 201 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,9 @@

## Licensing

This repository contains two separately-licensed components:

- The **Rust implementation** under [`crates/`](crates/) is licensed under
the **GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later)**.
See [LICENSE](LICENSE) for the full text. Each `.rs` file carries an
SPDX header.
- The **Lean formal proofs** under [`proofs/`](proofs/) are licensed under
the **Apache License, Version 2.0**. See [proofs/LICENSE](proofs/LICENSE)
for the full text. Each `.lean` file carries an Apache notice header.

Top-level documentation files (`MANIFESTO.md`, `TCB.md`, `README.md`,
`COPYRIGHT`) are licensed under **Apache-2.0** so the ideas can be quoted,
cited, and ported freely in research contexts.

For the rationale behind this split, see [COPYRIGHT](COPYRIGHT).
This repository is licensed under the **Apache License, Version 2.0**. See
[LICENSE](LICENSE) for the full text. Each `.rs` file carries an SPDX header,
and each `.lean` file under [`proofs/`](proofs/) carries an Apache notice
header ([proofs/LICENSE](proofs/LICENSE)).

Copyright © 2026 HaiyangLi
2 changes: 1 addition & 1 deletion crates/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ members = [
]

[workspace.package]
version = "0.3.0"
version = "0.4.0"
edition = "2021"
authors = ["HaiyangLi <quantocean.li@gmail.com>"]
license = "AGPL-3.0-or-later"
license = "Apache-2.0"
repository = "https://github.com/ohdearquant/LNkernel"
homepage = "https://github.com/ohdearquant/LNkernel"

Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Cryptographic Operations
//!
//! Corresponds to: Lion/Core/Crypto.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Unified error type for lion-core operations.

/// Unified error type for lion-core operations.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/extract_anchor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Extraction Anchor Module
//!
//! This module exists ONLY for styx-rustc extraction. It defines an "export anchor"
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/kernel.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! High-level Kernel API wrapping the verified state machine.
//!
//! The `Kernel` struct provides an ergonomic interface over the
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core -- production microkernel types, state machine, and kernel API.
//!
//! This crate provides the canonical Rust implementation of the Lion microkernel.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/actor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Actor
//!
//! Corresponds to: Lion/State/Actor.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/kernel.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Kernel
//!
//! Corresponds to: Lion/State/Kernel.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/memory.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Memory
//!
//! Corresponds to: Lion/State/Memory.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Module
//!
//! Complete state machine for the Lion microkernel.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/plugin.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Plugin
//!
//! Corresponds to: Lion/State/Plugin.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/state.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State - Unified Global State
//!
//! Corresponds to: Lion/State/State.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/thread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Thread Control Block and Scheduler State
//!
//! Corresponds to: Lion/State/Thread.lean, Lion/State/Scheduler.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/state/workflow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion State Workflow
//!
//! Corresponds to: Lion/State/Workflow.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/step/authorization.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Step Authorization
//!
//! Corresponds to: Lion/Step/Authorization.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/step/host_call.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Step Host Call (EROS-style 6 operations)
//!
//! Corresponds to: Lion/Step/HostCall/Core.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/step/kernel_op.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Step Kernel Operations
//!
//! Corresponds to: Lion/Step/KernelOp.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/step/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Step Module
//!
//! Step relation and all step constructors for the Lion microkernel state machine.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/step/plugin_internal.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Step Plugin Internal
//!
//! Corresponds to: Lion/Step/PluginInternal.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/capability.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Capability and Crypto Types
//!
//! Corresponds to: Lion/Core/Crypto.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/identifiers.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Identifiers
//!
//! Core identifier types for Lion microkernel.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Types
//!
//! All core types that correspond 1:1 to Lean specifications.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/policy.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Policy
//!
//! Corresponds to: Lion/Core/Policy.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/rights.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Rights algebra for capability-based access control.
//!
//! 10-right system with intersection as combine.
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Lion Core Runtime Types
//!
//! Corresponds to: Lion/Core/RuntimeTrustBundleCore.lean
Expand Down
2 changes: 1 addition & 1 deletion crates/lion-core/src/types/security.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: Apache-2.0
//! Security classification levels forming a lattice.
//!
//! 4-level lattice: Public < Internal < Confidential < Secret.
Expand Down
Loading