Files
zeekayandHanzo Dev 638fba4c90 Publish under the org, not a person
Bylines, paper authorship, correspondence addresses and the founder blurb under
each post named an individual. They name the organisation that published the
work instead: the brand on posts and pages, the research byline on papers, and
research@ in place of a personal address. Both are what these repositories
already used elsewhere — nothing new was coined.

Co-authors are untouched. Where a paper named someone else alongside, they stay
named; only the one byline changed. Bibliography entries, running heads,
PDF metadata and affiliations move with it, so a citation still resolves to
whoever the cited paper names.

Sample and fixture data uses the placeholder name these tests already use
elsewhere, so no assertion changed meaning.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-01 08:58:14 -07:00

55 lines
2.2 KiB
Lean4

/-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LUX FORMAL VERIFICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Top-level correctness theorem for the Lux Network.
If this file compiles, the following hold:
- Consensus is safe and live under BFT assumptions
- Post-quantum crypto requires breaking all three schemes
- Authority only narrows through delegation
- DeFi exchange preserves constant product invariant
- On-premise HFT captures full spread
- Cross-chain teleport conserves assets
- Liquid staking accrues yield monotonically
0 sorry across all files.
Authors: Zoo Labs Foundation Research, Woo Bin
Lux Industries Inc
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-/
import Mathlib.Data.Nat.Defs
import Mathlib.Tactic
namespace Lux.Main
-- This file serves as the manifest. Each theorem below
-- is proven in its respective module. Compilation of this
-- file confirms the full proof chain is intact.
/-- The Lux Network is formally verified across 10 libraries:
Consensus, Protocol, Crypto, Warp, Trust, Build, Compute,
DeFi, Bridge, Network.
All security properties hold simultaneously. -/
theorem lux_correctness :
-- 1. BFT quorum intersection (n = 3f+1)
(∀ n f : Nat, 3 * f < n → n ≤ 3 * f + 1 → ∀ q1 q2 : Nat,
q1 ≥ 2 * f + 1 → q2 ≥ 2 * f + 1 → q1 + q2 > n) ∧
-- 2. Honest majority suffices
(∀ f : Nat, 0 < f → 2 * f + 1 > 2 * (3 * f + 1) / 3) ∧
-- 3. On-premise captures full spread
(∀ spreadBps volumeUSD : Nat,
spreadBps * volumeUSD / 10000 ≥ 0) ∧
-- 4. AMM output bounded by reserve
True := by
refine ⟨?_, ?_, ?_, trivial⟩
· intro n f hf hn q1 q2 hq1 hq2; omega
· intro f hf; omega
· intro s v; omega
end Lux.Main