SZL kernel publisher commited on
Commit ·
ac1ee8c
1
Parent(s): 1d65493
Publish szl-lambda-gate v1 from szl-holdings/szl-lambda-gate@4eeca8bea140c1407dcf6e8c15be20d1ede543a2
Browse filesSource: https://github.com/szl-holdings/szl-lambda-gate/tree/4eeca8bea140c1407dcf6e8c15be20d1ede543a2
Publisher: scripts/szl_kernel_publish.py (https://github.com/szl-holdings/szl-lambda-gate/actions/runs/43810070610)
- README.md +11 -2
- SZL_KERNEL_SOURCE.json +17 -17
- build/torch-cpu/metadata.json +6 -6
- build/torch-cpu/szl_lambda_gate/__init__.py +8 -8
- build/torch-cpu/szl_lambda_gate/_lambda.py +15 -14
- build/torch-cpu/szl_lambda_gate/_v1.py +1 -1
- build/torch-cpu/szl_lambda_gate/governed_norm/__init__.py +1 -1
- build/torch-cpu/szl_lambda_gate/layers.py +1 -1
- build/torch-universal/metadata.json +6 -6
- build/torch-universal/szl_lambda_gate/__init__.py +8 -8
- build/torch-universal/szl_lambda_gate/_lambda.py +15 -14
- build/torch-universal/szl_lambda_gate/_v1.py +1 -1
- build/torch-universal/szl_lambda_gate/governed_norm/__init__.py +1 -1
- build/torch-universal/szl_lambda_gate/layers.py +1 -1
- reference/szl_lambda_v1.py +1 -1
- spec/szl.lambda.v1.json +1 -1
README.md
CHANGED
|
@@ -11,6 +11,9 @@ tags:
|
|
| 11 |
- doi:10.5281/zenodo.19944926
|
| 12 |
---
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# szl-lambda-gate
|
| 15 |
|
| 16 |
**Λ, a governance aggregator, as a pure-PyTorch (noarch) kernel.** A differentiable,
|
|
@@ -71,7 +74,7 @@ do not resolve here.
|
|
| 71 |
Λ(x) = ∏ xᵢ^wᵢ with Σ wᵢ = 1, wᵢ > 0. It is a non-compensatory, ADVISORY roll-up: any
|
| 72 |
zero (or, in the legacy entry, non-finite) axis drives the aggregate to 0. A gate pass is
|
| 73 |
an advisory signal that the host must enforce; it is not proven trust. Λ uniqueness
|
| 74 |
-
remains **Conjecture 1
|
| 75 |
inputs, not a proof.
|
| 76 |
|
| 77 |
## API
|
|
@@ -101,9 +104,11 @@ in GitHub Actions for the source commit.
|
|
| 101 |
## License and citation
|
| 102 |
|
| 103 |
Apache-2.0. Copyright 2026 SZL Holdings. Concept DOI
|
| 104 |
-
[10.5281/zenodo.
|
| 105 |
the GitHub repository.
|
| 106 |
|
|
|
|
|
|
|
| 107 |
## Card completeness (2026-11-12)
|
| 108 |
|
| 109 |
This section adds required card sections the card above did not have. It states only what files in this repository and the estate's own receipt datasets show; nothing here is a new result.
|
|
@@ -111,3 +116,7 @@ This section adds required card sections the card above did not have. It states
|
|
| 111 |
### Benchmarks
|
| 112 |
|
| 113 |
Not yet benchmarked. As of 2026-11-12 this repository has no benchmark results (latency, throughput or correctness-vs-reference timings). Published builds: `torch-cpu`, `torch-universal`. No GPU build is published, so no GPU performance claim is made.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
- doi:10.5281/zenodo.19944926
|
| 12 |
---
|
| 13 |
|
| 14 |
+
<p><img src="https://raw.githubusercontent.com/szl-holdings/szl-brand/27d12e77fc0f9f1a0e5fae8b34adf2380d51d070/kit/logos/orbit-v2/suite/szl-icon-32.svg" alt="SZL Holdings" width="40" height="40" /></p>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
# szl-lambda-gate
|
| 18 |
|
| 19 |
**Λ, a governance aggregator, as a pure-PyTorch (noarch) kernel.** A differentiable,
|
|
|
|
| 74 |
Λ(x) = ∏ xᵢ^wᵢ with Σ wᵢ = 1, wᵢ > 0. It is a non-compensatory, ADVISORY roll-up: any
|
| 75 |
zero (or, in the legacy entry, non-finite) axis drives the aggregate to 0. A gate pass is
|
| 76 |
an advisory signal that the host must enforce; it is not proven trust. Λ uniqueness
|
| 77 |
+
remains **Conjecture 1, machine-checked false as stated**. The A1-A4 self-checks are empirical evidence on sampled
|
| 78 |
inputs, not a proof.
|
| 79 |
|
| 80 |
## API
|
|
|
|
| 104 |
## License and citation
|
| 105 |
|
| 106 |
Apache-2.0. Copyright 2026 SZL Holdings. Concept DOI
|
| 107 |
+
[10.5281/zenodo.24239896](https://doi.org/10.5281/zenodo.24239896); see `CITATION.cff` in
|
| 108 |
the GitHub repository.
|
| 109 |
|
| 110 |
+
Artwork: SZL Orbit · © 2026 SZL Holdings / Stephen Lutar · [CC BY 4.0](https://github.com/szl-holdings/szl-brand/blob/27d12e77fc0f9f1a0e5fae8b34adf2380d51d070/kit/LICENSE) · [Trademark notice](https://github.com/szl-holdings/szl-brand/blob/27d12e77fc0f9f1a0e5fae8b34adf2380d51d070/NOTICE).
|
| 111 |
+
|
| 112 |
## Card completeness (2026-11-12)
|
| 113 |
|
| 114 |
This section adds required card sections the card above did not have. It states only what files in this repository and the estate's own receipt datasets show; nothing here is a new result.
|
|
|
|
| 116 |
### Benchmarks
|
| 117 |
|
| 118 |
Not yet benchmarked. As of 2026-11-12 this repository has no benchmark results (latency, throughput or correctness-vs-reference timings). Published builds: `torch-cpu`, `torch-universal`. No GPU build is published, so no GPU performance claim is made.
|
| 119 |
+
|
| 120 |
+
## Provenance
|
| 121 |
+
|
| 122 |
+
The SZLHOLDINGS/szl-governed-norm kernel on the Hugging Face Hub is built from this repository (szl-holdings/szl-lambda-gate), which is its official source. The szl-holdings/szl-governed-norm GitHub repository is archived and is not a build source.
|
SZL_KERNEL_SOURCE.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
| 1 |
{
|
| 2 |
-
"content_sha256": "
|
| 3 |
"files": {
|
| 4 |
"LICENSE": "bc8cef3450d423b046a3ba2b1a03089c8c795302f502cabbdbef055a68f0b1e7",
|
| 5 |
-
"README.md": "
|
| 6 |
"build.toml": "5c5ebbfe83770a898b8b8893e342c2c5547c65cd2b5a96146b14e3abb9411f3b",
|
| 7 |
-
"build/torch-cpu/metadata.json": "
|
| 8 |
-
"build/torch-cpu/szl_lambda_gate/__init__.py": "
|
| 9 |
-
"build/torch-cpu/szl_lambda_gate/_lambda.py": "
|
| 10 |
"build/torch-cpu/szl_lambda_gate/_ops.py": "6adf1dc42e7a9e6da914e304da9720438e59c234104e11f3e5ccaa45ecee23b6",
|
| 11 |
-
"build/torch-cpu/szl_lambda_gate/_v1.py": "
|
| 12 |
-
"build/torch-cpu/szl_lambda_gate/governed_norm/__init__.py": "
|
| 13 |
"build/torch-cpu/szl_lambda_gate/governed_norm/_norm.py": "cf72ace281ec86c504426f75e23eebdb661a1e3a12e4dfcc6c8b9fa634b03942",
|
| 14 |
"build/torch-cpu/szl_lambda_gate/governed_norm/_receipt.py": "0fa2cf7e8c5f4f9b5908868ba6d6ec05e9dfbec26a7656b89ab2bfbdf3d6d870",
|
| 15 |
"build/torch-cpu/szl_lambda_gate/governed_norm/layers.py": "d79c83355cb2332b9d0e9d98584b86434e486532e27d30652df10158b30fc37b",
|
| 16 |
-
"build/torch-cpu/szl_lambda_gate/layers.py": "
|
| 17 |
-
"build/torch-universal/metadata.json": "
|
| 18 |
-
"build/torch-universal/szl_lambda_gate/__init__.py": "
|
| 19 |
-
"build/torch-universal/szl_lambda_gate/_lambda.py": "
|
| 20 |
"build/torch-universal/szl_lambda_gate/_ops.py": "6adf1dc42e7a9e6da914e304da9720438e59c234104e11f3e5ccaa45ecee23b6",
|
| 21 |
-
"build/torch-universal/szl_lambda_gate/_v1.py": "
|
| 22 |
-
"build/torch-universal/szl_lambda_gate/governed_norm/__init__.py": "
|
| 23 |
"build/torch-universal/szl_lambda_gate/governed_norm/_norm.py": "cf72ace281ec86c504426f75e23eebdb661a1e3a12e4dfcc6c8b9fa634b03942",
|
| 24 |
"build/torch-universal/szl_lambda_gate/governed_norm/_receipt.py": "0fa2cf7e8c5f4f9b5908868ba6d6ec05e9dfbec26a7656b89ab2bfbdf3d6d870",
|
| 25 |
"build/torch-universal/szl_lambda_gate/governed_norm/layers.py": "d79c83355cb2332b9d0e9d98584b86434e486532e27d30652df10158b30fc37b",
|
| 26 |
-
"build/torch-universal/szl_lambda_gate/layers.py": "
|
| 27 |
-
"reference/szl_lambda_v1.py": "
|
| 28 |
"spec/lambda_v1_vectors.json": "460bb966ff2bec4fd99e03d267b721f22c5fad731e0667723407a6909bd4dcec",
|
| 29 |
-
"spec/szl.lambda.v1.json": "
|
| 30 |
},
|
| 31 |
"kernel_name": "szl-lambda-gate",
|
| 32 |
"kernel_version": 1,
|
|
@@ -44,6 +44,6 @@
|
|
| 44 |
"repo_id": "SZLHOLDINGS/szl-lambda-gate",
|
| 45 |
"repo_type": "kernel",
|
| 46 |
"schema": "szl.kernel-source-binding/v1",
|
| 47 |
-
"source_commit": "
|
| 48 |
"source_repository": "szl-holdings/szl-lambda-gate"
|
| 49 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"content_sha256": "d12d73829d211cbd6a94bc458e7a39b216c2d3bf7a139c5a5e36da33b61aa920",
|
| 3 |
"files": {
|
| 4 |
"LICENSE": "bc8cef3450d423b046a3ba2b1a03089c8c795302f502cabbdbef055a68f0b1e7",
|
| 5 |
+
"README.md": "a7ebe1298f23dbb807114da99390808c9356035c1162ea4674c03563cfaeedea",
|
| 6 |
"build.toml": "5c5ebbfe83770a898b8b8893e342c2c5547c65cd2b5a96146b14e3abb9411f3b",
|
| 7 |
+
"build/torch-cpu/metadata.json": "ef906ffb685c8831ffd16dac9f0edd86607bcca322788995c95b560f7a19a4bc",
|
| 8 |
+
"build/torch-cpu/szl_lambda_gate/__init__.py": "5753347b03837c99e379266397a20307483d9aa7ea8b33cb3498ec051d0f6dfc",
|
| 9 |
+
"build/torch-cpu/szl_lambda_gate/_lambda.py": "d99f1d0b4324162d8d7294030a8f60db1e1c09ba70630ba360be93d6b528abaf",
|
| 10 |
"build/torch-cpu/szl_lambda_gate/_ops.py": "6adf1dc42e7a9e6da914e304da9720438e59c234104e11f3e5ccaa45ecee23b6",
|
| 11 |
+
"build/torch-cpu/szl_lambda_gate/_v1.py": "81edaed6778961910203688546a0d292a763605191f64e6e02ee5e27654ea124",
|
| 12 |
+
"build/torch-cpu/szl_lambda_gate/governed_norm/__init__.py": "e1cdfc5839550207d582cb5146356753ab05ae5f308cf0af11b3c7f10984b39f",
|
| 13 |
"build/torch-cpu/szl_lambda_gate/governed_norm/_norm.py": "cf72ace281ec86c504426f75e23eebdb661a1e3a12e4dfcc6c8b9fa634b03942",
|
| 14 |
"build/torch-cpu/szl_lambda_gate/governed_norm/_receipt.py": "0fa2cf7e8c5f4f9b5908868ba6d6ec05e9dfbec26a7656b89ab2bfbdf3d6d870",
|
| 15 |
"build/torch-cpu/szl_lambda_gate/governed_norm/layers.py": "d79c83355cb2332b9d0e9d98584b86434e486532e27d30652df10158b30fc37b",
|
| 16 |
+
"build/torch-cpu/szl_lambda_gate/layers.py": "1f3e82383a222b1e57edc70e134d42e0122e5d6e5419c5c2bda0914dae0efb7c",
|
| 17 |
+
"build/torch-universal/metadata.json": "afa64425632df1b28b972a77f02279c490958ca8ad6b7524e0de7bc9f7fd1e8f",
|
| 18 |
+
"build/torch-universal/szl_lambda_gate/__init__.py": "5753347b03837c99e379266397a20307483d9aa7ea8b33cb3498ec051d0f6dfc",
|
| 19 |
+
"build/torch-universal/szl_lambda_gate/_lambda.py": "d99f1d0b4324162d8d7294030a8f60db1e1c09ba70630ba360be93d6b528abaf",
|
| 20 |
"build/torch-universal/szl_lambda_gate/_ops.py": "6adf1dc42e7a9e6da914e304da9720438e59c234104e11f3e5ccaa45ecee23b6",
|
| 21 |
+
"build/torch-universal/szl_lambda_gate/_v1.py": "81edaed6778961910203688546a0d292a763605191f64e6e02ee5e27654ea124",
|
| 22 |
+
"build/torch-universal/szl_lambda_gate/governed_norm/__init__.py": "e1cdfc5839550207d582cb5146356753ab05ae5f308cf0af11b3c7f10984b39f",
|
| 23 |
"build/torch-universal/szl_lambda_gate/governed_norm/_norm.py": "cf72ace281ec86c504426f75e23eebdb661a1e3a12e4dfcc6c8b9fa634b03942",
|
| 24 |
"build/torch-universal/szl_lambda_gate/governed_norm/_receipt.py": "0fa2cf7e8c5f4f9b5908868ba6d6ec05e9dfbec26a7656b89ab2bfbdf3d6d870",
|
| 25 |
"build/torch-universal/szl_lambda_gate/governed_norm/layers.py": "d79c83355cb2332b9d0e9d98584b86434e486532e27d30652df10158b30fc37b",
|
| 26 |
+
"build/torch-universal/szl_lambda_gate/layers.py": "1f3e82383a222b1e57edc70e134d42e0122e5d6e5419c5c2bda0914dae0efb7c",
|
| 27 |
+
"reference/szl_lambda_v1.py": "46aa3b3e71b293183e8ce7dcc7adcff631236fc916fb7d0de3a3bbcbc6fd9c19",
|
| 28 |
"spec/lambda_v1_vectors.json": "460bb966ff2bec4fd99e03d267b721f22c5fad731e0667723407a6909bd4dcec",
|
| 29 |
+
"spec/szl.lambda.v1.json": "add34e13b0088568c15d3fef97b2ab469ee961b4300f66e17a56701df5a2df6f"
|
| 30 |
},
|
| 31 |
"kernel_name": "szl-lambda-gate",
|
| 32 |
"kernel_version": 1,
|
|
|
|
| 44 |
"repo_id": "SZLHOLDINGS/szl-lambda-gate",
|
| 45 |
"repo_type": "kernel",
|
| 46 |
"schema": "szl.kernel-source-binding/v1",
|
| 47 |
+
"source_commit": "4eeca8bea140c1407dcf6e8c15be20d1ede543a2",
|
| 48 |
"source_repository": "szl-holdings/szl-lambda-gate"
|
| 49 |
}
|
build/torch-cpu/metadata.json
CHANGED
|
@@ -5,18 +5,18 @@
|
|
| 5 |
"digest": {
|
| 6 |
"algorithm": "sha256",
|
| 7 |
"files": {
|
| 8 |
-
"szl_lambda_gate/__init__.py": "
|
| 9 |
-
"szl_lambda_gate/_lambda.py": "
|
| 10 |
"szl_lambda_gate/_ops.py": "at8dxC56nm2pFOME2pcgQ45ZwjQQThHz5cyqRezuI7Y=",
|
| 11 |
-
"szl_lambda_gate/_v1.py": "
|
| 12 |
-
"szl_lambda_gate/governed_norm/__init__.py": "
|
| 13 |
"szl_lambda_gate/governed_norm/_norm.py": "z3Ks4oHshsUEQm914j7r22YaHjoS5N/MbIufpjSwOUI=",
|
| 14 |
"szl_lambda_gate/governed_norm/_receipt.py": "D6LPfoxfT5tZCIaLptbsBenfvsJqdla4mrK/vfPW2HA=",
|
| 15 |
"szl_lambda_gate/governed_norm/layers.py": "15yDNVyyMyudDp2YWEuGQ05IZTLifTBlLfEBWLMPw3s=",
|
| 16 |
-
"szl_lambda_gate/layers.py": "
|
| 17 |
}
|
| 18 |
},
|
| 19 |
-
"id": "
|
| 20 |
"kernel-depends": [],
|
| 21 |
"license": "Apache-2.0",
|
| 22 |
"name": "szl-lambda-gate",
|
|
|
|
| 5 |
"digest": {
|
| 6 |
"algorithm": "sha256",
|
| 7 |
"files": {
|
| 8 |
+
"szl_lambda_gate/__init__.py": "V1M0ewODfJnjeSZjl6IDB0g9mqfqizPLNJjsBR0Pbfw=",
|
| 9 |
+
"szl_lambda_gate/_lambda.py": "2Z8dC0MkFi2NcpQDCo9g2x4cCbpwYwujYL6T1rUoq68=",
|
| 10 |
"szl_lambda_gate/_ops.py": "at8dxC56nm2pFOME2pcgQ45ZwjQQThHz5cyqRezuI7Y=",
|
| 11 |
+
"szl_lambda_gate/_v1.py": "ge2u1neJYZECA2iFRqDSkqdjYFGR9k5uAu5eJ2VOoSQ=",
|
| 12 |
+
"szl_lambda_gate/governed_norm/__init__.py": "4c38WDlVAgfVgstRRjVnU6sFrl8wjPCvEbPH8QmEs58=",
|
| 13 |
"szl_lambda_gate/governed_norm/_norm.py": "z3Ks4oHshsUEQm914j7r22YaHjoS5N/MbIufpjSwOUI=",
|
| 14 |
"szl_lambda_gate/governed_norm/_receipt.py": "D6LPfoxfT5tZCIaLptbsBenfvsJqdla4mrK/vfPW2HA=",
|
| 15 |
"szl_lambda_gate/governed_norm/layers.py": "15yDNVyyMyudDp2YWEuGQ05IZTLifTBlLfEBWLMPw3s=",
|
| 16 |
+
"szl_lambda_gate/layers.py": "Hz6CODoiKx5X7ccOE01C4BIuXW5UGcXCvaCRTa4O+3w="
|
| 17 |
}
|
| 18 |
},
|
| 19 |
+
"id": "_szl_lambda_gate_cpu_4eeca8bea140",
|
| 20 |
"kernel-depends": [],
|
| 21 |
"license": "Apache-2.0",
|
| 22 |
"name": "szl-lambda-gate",
|
build/torch-cpu/szl_lambda_gate/__init__.py
CHANGED
|
@@ -31,13 +31,13 @@ Load from the Hub:
|
|
| 31 |
WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
| 32 |
Λ is the weighted-geometric-mean aggregator — a non-compensatory, ADVISORY
|
| 33 |
way to roll axis scores in [0,1] into one number (any zeroed axis zeroes the
|
| 34 |
-
aggregate). It is NOT "proven trust" and NOT a closed theorem:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 39 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 40 |
-
DOI 10.5281/zenodo.
|
| 41 |
"""
|
| 42 |
from typing import Optional
|
| 43 |
|
|
@@ -99,7 +99,7 @@ __all__ = [
|
|
| 99 |
# emit_receipt, receipt_* helpers, selfcheck, layers) lives under
|
| 100 |
# ``szl_lambda_gate.governed_norm``. These are a DIFFERENT kernel family from Λ
|
| 101 |
# (normalization, not the Λ aggregator); Λ itself remains Conjecture 1
|
| 102 |
-
# (advisory,
|
| 103 |
rms_norm = governed_norm.rms_norm
|
| 104 |
layer_norm = governed_norm.layer_norm
|
| 105 |
fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
@@ -107,15 +107,15 @@ fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
| 107 |
__version__ = "0.2.0"
|
| 108 |
DOCTRINE_FOOTER = (
|
| 109 |
"SZL Holdings · Λ = Conjecture 1 (ADVISORY, weighted geometric mean) · "
|
| 110 |
-
"
|
| 111 |
)
|
| 112 |
PROVENANCE = {
|
| 113 |
"lean_repo": "szl-holdings/lutar-lean",
|
| 114 |
"lean_declarations": 749,
|
| 115 |
"lean_axioms": 14,
|
| 116 |
"lean_tracked_sorries": 163,
|
| 117 |
-
"doi_lutar_lean": "10.5281/zenodo.
|
| 118 |
-
"lambda_status": "Conjecture 1
|
| 119 |
}
|
| 120 |
|
| 121 |
|
|
|
|
| 31 |
WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
| 32 |
Λ is the weighted-geometric-mean aggregator — a non-compensatory, ADVISORY
|
| 33 |
way to roll axis scores in [0,1] into one number (any zeroed axis zeroes the
|
| 34 |
+
aggregate). It is NOT "proven trust" and NOT a closed theorem: bare A1-A5
|
| 35 |
+
uniqueness is Conjecture 1, machine-checked false as stated.
|
| 36 |
+
Theorem U is conditional. A gate "pass" is advisory.
|
| 37 |
|
| 38 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 39 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 40 |
+
DOI 10.5281/zenodo.24239654 (lutar-lean). Bare A1-A5 uniqueness is Conjecture 1, machine-checked false as stated. Theorem U is conditional.
|
| 41 |
"""
|
| 42 |
from typing import Optional
|
| 43 |
|
|
|
|
| 99 |
# emit_receipt, receipt_* helpers, selfcheck, layers) lives under
|
| 100 |
# ``szl_lambda_gate.governed_norm``. These are a DIFFERENT kernel family from Λ
|
| 101 |
# (normalization, not the Λ aggregator); Λ itself remains Conjecture 1
|
| 102 |
+
# (advisory, bare statement false as stated; Theorem U conditional) and is never described as proven trust.
|
| 103 |
rms_norm = governed_norm.rms_norm
|
| 104 |
layer_norm = governed_norm.layer_norm
|
| 105 |
fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
|
|
| 107 |
__version__ = "0.2.0"
|
| 108 |
DOCTRINE_FOOTER = (
|
| 109 |
"SZL Holdings · Λ = Conjecture 1 (ADVISORY, weighted geometric mean) · "
|
| 110 |
+
"bare statement false as stated; Theorem U conditional · NOT proven trust · honesty over checklist"
|
| 111 |
)
|
| 112 |
PROVENANCE = {
|
| 113 |
"lean_repo": "szl-holdings/lutar-lean",
|
| 114 |
"lean_declarations": 749,
|
| 115 |
"lean_axioms": 14,
|
| 116 |
"lean_tracked_sorries": 163,
|
| 117 |
+
"doi_lutar_lean": "10.5281/zenodo.24239654",
|
| 118 |
+
"lambda_status": "Conjecture 1 is machine-checked false as stated; Theorem U is conditional; advisory only",
|
| 119 |
}
|
| 120 |
|
| 121 |
|
build/torch-cpu/szl_lambda_gate/_lambda.py
CHANGED
|
@@ -16,9 +16,8 @@ WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
|
| 16 |
combine axis scores in [0,1] into one number. It is ADVISORY governance
|
| 17 |
signal — a conservative roll-up where any single zeroed axis drives the
|
| 18 |
aggregate to 0. It is NOT "proven trust" and NOT a closed theorem. Its
|
| 19 |
-
*uniqueness*
|
| 20 |
-
|
| 21 |
-
CAUCHY_ND step plus a missing symmetry axiom in the Lean development). Do
|
| 22 |
not describe Λ as proven trust anywhere.
|
| 23 |
|
| 24 |
PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
@@ -35,8 +34,8 @@ PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
| 35 |
|
| 36 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 37 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 38 |
-
DOI 10.5281/zenodo.
|
| 39 |
-
|
| 40 |
|
| 41 |
Axioms carried (Lutar/Axioms.lean), available below as runtime self-checks:
|
| 42 |
A1 IsMonotone — Λ is non-decreasing in each axis
|
|
@@ -146,16 +145,18 @@ def _resolve_weights(
|
|
| 146 |
raise ValueError("weights must all be finite (no NaN/Inf)")
|
| 147 |
if bool(torch.any(wf <= 0.0)):
|
| 148 |
raise ValueError("weights must be strictly positive (wᵢ > 0)")
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
|
|
|
| 153 |
# Compiled path stays in tensor-land. Non-positive weights are a misuse;
|
| 154 |
# clamp them away from zero so the graph does not break, then normalize.
|
| 155 |
# This path is outside szl.lambda/v1; _v1.lambda_v1 validates before it
|
| 156 |
# gets here and is not meant to run under torch.compile.
|
| 157 |
wf = torch.where(torch.isfinite(wf), wf, torch.ones_like(wf))
|
| 158 |
wf = torch.clamp(wf, min=torch.finfo(wf.dtype).tiny)
|
|
|
|
| 159 |
return wf / wf.sum()
|
| 160 |
|
| 161 |
|
|
@@ -195,7 +196,7 @@ def lambda_aggregate(
|
|
| 195 |
validated, coded errors use :func:`szl_lambda_gate._v1.lambda_v1`.
|
| 196 |
|
| 197 |
HONESTY: this is a non-compensatory governance roll-up, NOT proven trust.
|
| 198 |
-
Λ-uniqueness is Conjecture 1
|
| 199 |
"""
|
| 200 |
_check_axes(axes)
|
| 201 |
in_dtype = axes.dtype
|
|
@@ -262,7 +263,7 @@ def lambda_gate(
|
|
| 262 |
front rather than silently producing a wrong pass mask.
|
| 263 |
|
| 264 |
HONESTY: a "pass" is an ADVISORY signal only. Λ is the weighted-geometric-
|
| 265 |
-
mean aggregator; its uniqueness is Conjecture 1
|
| 266 |
pass as proven trust or a closed theorem.
|
| 267 |
"""
|
| 268 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
|
@@ -308,7 +309,7 @@ def lambda_gate_batch(
|
|
| 308 |
advisory — always True (NOT proven trust)
|
| 309 |
|
| 310 |
HONESTY: the pass mask is an ADVISORY, non-compensatory signal. A "pass"
|
| 311 |
-
is not proven trust; Λ-uniqueness is Conjecture 1
|
| 312 |
"""
|
| 313 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
| 314 |
_check_axes(candidates)
|
|
@@ -518,7 +519,7 @@ def selfcheck(
|
|
| 518 |
adversarial — {trials, violation} from a random falsification search
|
| 519 |
(violation is None when no violation was found)
|
| 520 |
advisory — always True
|
| 521 |
-
lambda_status — Conjecture 1
|
| 522 |
|
| 523 |
HONESTY: these are EMPIRICAL checks on sampled inputs, NOT a proof of
|
| 524 |
Λ-uniqueness (Conjecture 1, open). A clean run is evidence, not proof.
|
|
@@ -538,7 +539,7 @@ def selfcheck(
|
|
| 538 |
"all_axioms_hold": all(axioms.values()) and violation is None,
|
| 539 |
"adversarial": {"trials": int(trials), "violation": violation},
|
| 540 |
"advisory": True,
|
| 541 |
-
"lambda_status": "Conjecture 1
|
| 542 |
}
|
| 543 |
|
| 544 |
|
|
|
|
| 16 |
combine axis scores in [0,1] into one number. It is ADVISORY governance
|
| 17 |
signal — a conservative roll-up where any single zeroed axis drives the
|
| 18 |
aggregate to 0. It is NOT "proven trust" and NOT a closed theorem. Its
|
| 19 |
+
*uniqueness* under bare A1-A5 is Conjecture 1, machine-checked false as
|
| 20 |
+
stated. Theorem U is conditional. Do
|
|
|
|
| 21 |
not describe Λ as proven trust anywhere.
|
| 22 |
|
| 23 |
PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
|
|
| 34 |
|
| 35 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 36 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 37 |
+
DOI 10.5281/zenodo.24239654 (lutar-lean).
|
| 38 |
+
Bare A1-A5 uniqueness is Conjecture 1, machine-checked false as stated. Theorem U is conditional.
|
| 39 |
|
| 40 |
Axioms carried (Lutar/Axioms.lean), available below as runtime self-checks:
|
| 41 |
A1 IsMonotone — Λ is non-decreasing in each axis
|
|
|
|
| 145 |
raise ValueError("weights must all be finite (no NaN/Inf)")
|
| 146 |
if bool(torch.any(wf <= 0.0)):
|
| 147 |
raise ValueError("weights must be strictly positive (wᵢ > 0)")
|
| 148 |
+
# Positive finite elements can still overflow their unscaled sum.
|
| 149 |
+
# Normalize the scale first so such weights cannot collapse to zero
|
| 150 |
+
# and turn every nonzero axis vector into an advisory score of 1.
|
| 151 |
+
wf = wf / wf.max()
|
| 152 |
+
return wf / wf.sum()
|
| 153 |
# Compiled path stays in tensor-land. Non-positive weights are a misuse;
|
| 154 |
# clamp them away from zero so the graph does not break, then normalize.
|
| 155 |
# This path is outside szl.lambda/v1; _v1.lambda_v1 validates before it
|
| 156 |
# gets here and is not meant to run under torch.compile.
|
| 157 |
wf = torch.where(torch.isfinite(wf), wf, torch.ones_like(wf))
|
| 158 |
wf = torch.clamp(wf, min=torch.finfo(wf.dtype).tiny)
|
| 159 |
+
wf = wf / wf.max()
|
| 160 |
return wf / wf.sum()
|
| 161 |
|
| 162 |
|
|
|
|
| 196 |
validated, coded errors use :func:`szl_lambda_gate._v1.lambda_v1`.
|
| 197 |
|
| 198 |
HONESTY: this is a non-compensatory governance roll-up, NOT proven trust.
|
| 199 |
+
Λ-uniqueness is Conjecture 1, machine-checked false as stated.
|
| 200 |
"""
|
| 201 |
_check_axes(axes)
|
| 202 |
in_dtype = axes.dtype
|
|
|
|
| 263 |
front rather than silently producing a wrong pass mask.
|
| 264 |
|
| 265 |
HONESTY: a "pass" is an ADVISORY signal only. Λ is the weighted-geometric-
|
| 266 |
+
mean aggregator; its uniqueness is Conjecture 1, machine-checked false as stated. Do not treat a
|
| 267 |
pass as proven trust or a closed theorem.
|
| 268 |
"""
|
| 269 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
|
|
|
| 309 |
advisory — always True (NOT proven trust)
|
| 310 |
|
| 311 |
HONESTY: the pass mask is an ADVISORY, non-compensatory signal. A "pass"
|
| 312 |
+
is not proven trust; Λ-uniqueness is Conjecture 1, machine-checked false as stated.
|
| 313 |
"""
|
| 314 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
| 315 |
_check_axes(candidates)
|
|
|
|
| 519 |
adversarial — {trials, violation} from a random falsification search
|
| 520 |
(violation is None when no violation was found)
|
| 521 |
advisory — always True
|
| 522 |
+
lambda_status — Conjecture 1, machine-checked false as stated honesty string
|
| 523 |
|
| 524 |
HONESTY: these are EMPIRICAL checks on sampled inputs, NOT a proof of
|
| 525 |
Λ-uniqueness (Conjecture 1, open). A clean run is evidence, not proof.
|
|
|
|
| 539 |
"all_axioms_hold": all(axioms.values()) and violation is None,
|
| 540 |
"adversarial": {"trials": int(trials), "violation": violation},
|
| 541 |
"advisory": True,
|
| 542 |
+
"lambda_status": "Conjecture 1 is machine-checked false as stated; Theorem U is conditional; advisory only",
|
| 543 |
}
|
| 544 |
|
| 545 |
|
build/torch-cpu/szl_lambda_gate/_v1.py
CHANGED
|
@@ -58,7 +58,7 @@ entry is not meant to run inside ``torch.compile``. The legacy compiled weight
|
|
| 58 |
path in ``_lambda._resolve_weights``, which clamps weights to ``finfo.tiny``,
|
| 59 |
is outside szl.lambda/v1.
|
| 60 |
|
| 61 |
-
Λ is advisory. Λ uniqueness is Conjecture 1
|
| 62 |
"""
|
| 63 |
from __future__ import annotations
|
| 64 |
|
|
|
|
| 58 |
path in ``_lambda._resolve_weights``, which clamps weights to ``finfo.tiny``,
|
| 59 |
is outside szl.lambda/v1.
|
| 60 |
|
| 61 |
+
Λ is advisory. Λ uniqueness is Conjecture 1, machine-checked false as stated. Nothing here depends on it.
|
| 62 |
"""
|
| 63 |
from __future__ import annotations
|
| 64 |
|
build/torch-cpu/szl_lambda_gate/governed_norm/__init__.py
CHANGED
|
@@ -30,7 +30,7 @@ Usage (as a subpackage of the canonical kernel)::
|
|
| 30 |
Honesty: this is a universal (pure-Python) kernel — a correctness reference,
|
| 31 |
not a hand-tuned CUDA speed record. No fabricated benchmarks. Its
|
| 32 |
differentiator is verifiable governance, not raw FLOPs. Λ = Conjecture 1
|
| 33 |
-
(advisory,
|
| 34 |
|
| 35 |
Note on torch.compile: every op is torch.compile(fullgraph=True)-compatible.
|
| 36 |
Receipt emission is an eager-only side effect (it hashes materialized tensor
|
|
|
|
| 30 |
Honesty: this is a universal (pure-Python) kernel — a correctness reference,
|
| 31 |
not a hand-tuned CUDA speed record. No fabricated benchmarks. Its
|
| 32 |
differentiator is verifiable governance, not raw FLOPs. Λ = Conjecture 1
|
| 33 |
+
(advisory, bare statement false as stated; Theorem U conditional) — never described as proven trust anywhere.
|
| 34 |
|
| 35 |
Note on torch.compile: every op is torch.compile(fullgraph=True)-compatible.
|
| 36 |
Receipt emission is an eager-only side effect (it hashes materialized tensor
|
build/torch-cpu/szl_lambda_gate/layers.py
CHANGED
|
@@ -13,7 +13,7 @@ instance it is bound to (set by the host model) and only defines `forward`.
|
|
| 13 |
|
| 14 |
HONESTY: `LambdaGate` emits an ADVISORY governance signal (the weighted
|
| 15 |
geometric mean Λ plus a pass/fail vs threshold). Λ is NOT proven trust; its
|
| 16 |
-
uniqueness is Conjecture 1
|
| 17 |
"""
|
| 18 |
import torch
|
| 19 |
from torch import nn
|
|
|
|
| 13 |
|
| 14 |
HONESTY: `LambdaGate` emits an ADVISORY governance signal (the weighted
|
| 15 |
geometric mean Λ plus a pass/fail vs threshold). Λ is NOT proven trust; its
|
| 16 |
+
uniqueness is Conjecture 1, machine-checked false as stated.
|
| 17 |
"""
|
| 18 |
import torch
|
| 19 |
from torch import nn
|
build/torch-universal/metadata.json
CHANGED
|
@@ -5,18 +5,18 @@
|
|
| 5 |
"digest": {
|
| 6 |
"algorithm": "sha256",
|
| 7 |
"files": {
|
| 8 |
-
"szl_lambda_gate/__init__.py": "
|
| 9 |
-
"szl_lambda_gate/_lambda.py": "
|
| 10 |
"szl_lambda_gate/_ops.py": "at8dxC56nm2pFOME2pcgQ45ZwjQQThHz5cyqRezuI7Y=",
|
| 11 |
-
"szl_lambda_gate/_v1.py": "
|
| 12 |
-
"szl_lambda_gate/governed_norm/__init__.py": "
|
| 13 |
"szl_lambda_gate/governed_norm/_norm.py": "z3Ks4oHshsUEQm914j7r22YaHjoS5N/MbIufpjSwOUI=",
|
| 14 |
"szl_lambda_gate/governed_norm/_receipt.py": "D6LPfoxfT5tZCIaLptbsBenfvsJqdla4mrK/vfPW2HA=",
|
| 15 |
"szl_lambda_gate/governed_norm/layers.py": "15yDNVyyMyudDp2YWEuGQ05IZTLifTBlLfEBWLMPw3s=",
|
| 16 |
-
"szl_lambda_gate/layers.py": "
|
| 17 |
}
|
| 18 |
},
|
| 19 |
-
"id": "
|
| 20 |
"kernel-depends": [],
|
| 21 |
"license": "Apache-2.0",
|
| 22 |
"name": "szl-lambda-gate",
|
|
|
|
| 5 |
"digest": {
|
| 6 |
"algorithm": "sha256",
|
| 7 |
"files": {
|
| 8 |
+
"szl_lambda_gate/__init__.py": "V1M0ewODfJnjeSZjl6IDB0g9mqfqizPLNJjsBR0Pbfw=",
|
| 9 |
+
"szl_lambda_gate/_lambda.py": "2Z8dC0MkFi2NcpQDCo9g2x4cCbpwYwujYL6T1rUoq68=",
|
| 10 |
"szl_lambda_gate/_ops.py": "at8dxC56nm2pFOME2pcgQ45ZwjQQThHz5cyqRezuI7Y=",
|
| 11 |
+
"szl_lambda_gate/_v1.py": "ge2u1neJYZECA2iFRqDSkqdjYFGR9k5uAu5eJ2VOoSQ=",
|
| 12 |
+
"szl_lambda_gate/governed_norm/__init__.py": "4c38WDlVAgfVgstRRjVnU6sFrl8wjPCvEbPH8QmEs58=",
|
| 13 |
"szl_lambda_gate/governed_norm/_norm.py": "z3Ks4oHshsUEQm914j7r22YaHjoS5N/MbIufpjSwOUI=",
|
| 14 |
"szl_lambda_gate/governed_norm/_receipt.py": "D6LPfoxfT5tZCIaLptbsBenfvsJqdla4mrK/vfPW2HA=",
|
| 15 |
"szl_lambda_gate/governed_norm/layers.py": "15yDNVyyMyudDp2YWEuGQ05IZTLifTBlLfEBWLMPw3s=",
|
| 16 |
+
"szl_lambda_gate/layers.py": "Hz6CODoiKx5X7ccOE01C4BIuXW5UGcXCvaCRTa4O+3w="
|
| 17 |
}
|
| 18 |
},
|
| 19 |
+
"id": "_szl_lambda_gate_universal_4eeca8bea140",
|
| 20 |
"kernel-depends": [],
|
| 21 |
"license": "Apache-2.0",
|
| 22 |
"name": "szl-lambda-gate",
|
build/torch-universal/szl_lambda_gate/__init__.py
CHANGED
|
@@ -31,13 +31,13 @@ Load from the Hub:
|
|
| 31 |
WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
| 32 |
Λ is the weighted-geometric-mean aggregator — a non-compensatory, ADVISORY
|
| 33 |
way to roll axis scores in [0,1] into one number (any zeroed axis zeroes the
|
| 34 |
-
aggregate). It is NOT "proven trust" and NOT a closed theorem:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 39 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 40 |
-
DOI 10.5281/zenodo.
|
| 41 |
"""
|
| 42 |
from typing import Optional
|
| 43 |
|
|
@@ -99,7 +99,7 @@ __all__ = [
|
|
| 99 |
# emit_receipt, receipt_* helpers, selfcheck, layers) lives under
|
| 100 |
# ``szl_lambda_gate.governed_norm``. These are a DIFFERENT kernel family from Λ
|
| 101 |
# (normalization, not the Λ aggregator); Λ itself remains Conjecture 1
|
| 102 |
-
# (advisory,
|
| 103 |
rms_norm = governed_norm.rms_norm
|
| 104 |
layer_norm = governed_norm.layer_norm
|
| 105 |
fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
@@ -107,15 +107,15 @@ fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
| 107 |
__version__ = "0.2.0"
|
| 108 |
DOCTRINE_FOOTER = (
|
| 109 |
"SZL Holdings · Λ = Conjecture 1 (ADVISORY, weighted geometric mean) · "
|
| 110 |
-
"
|
| 111 |
)
|
| 112 |
PROVENANCE = {
|
| 113 |
"lean_repo": "szl-holdings/lutar-lean",
|
| 114 |
"lean_declarations": 749,
|
| 115 |
"lean_axioms": 14,
|
| 116 |
"lean_tracked_sorries": 163,
|
| 117 |
-
"doi_lutar_lean": "10.5281/zenodo.
|
| 118 |
-
"lambda_status": "Conjecture 1
|
| 119 |
}
|
| 120 |
|
| 121 |
|
|
|
|
| 31 |
WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
| 32 |
Λ is the weighted-geometric-mean aggregator — a non-compensatory, ADVISORY
|
| 33 |
way to roll axis scores in [0,1] into one number (any zeroed axis zeroes the
|
| 34 |
+
aggregate). It is NOT "proven trust" and NOT a closed theorem: bare A1-A5
|
| 35 |
+
uniqueness is Conjecture 1, machine-checked false as stated.
|
| 36 |
+
Theorem U is conditional. A gate "pass" is advisory.
|
| 37 |
|
| 38 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 39 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 40 |
+
DOI 10.5281/zenodo.24239654 (lutar-lean). Bare A1-A5 uniqueness is Conjecture 1, machine-checked false as stated. Theorem U is conditional.
|
| 41 |
"""
|
| 42 |
from typing import Optional
|
| 43 |
|
|
|
|
| 99 |
# emit_receipt, receipt_* helpers, selfcheck, layers) lives under
|
| 100 |
# ``szl_lambda_gate.governed_norm``. These are a DIFFERENT kernel family from Λ
|
| 101 |
# (normalization, not the Λ aggregator); Λ itself remains Conjecture 1
|
| 102 |
+
# (advisory, bare statement false as stated; Theorem U conditional) and is never described as proven trust.
|
| 103 |
rms_norm = governed_norm.rms_norm
|
| 104 |
layer_norm = governed_norm.layer_norm
|
| 105 |
fused_add_rms_norm = governed_norm.fused_add_rms_norm
|
|
|
|
| 107 |
__version__ = "0.2.0"
|
| 108 |
DOCTRINE_FOOTER = (
|
| 109 |
"SZL Holdings · Λ = Conjecture 1 (ADVISORY, weighted geometric mean) · "
|
| 110 |
+
"bare statement false as stated; Theorem U conditional · NOT proven trust · honesty over checklist"
|
| 111 |
)
|
| 112 |
PROVENANCE = {
|
| 113 |
"lean_repo": "szl-holdings/lutar-lean",
|
| 114 |
"lean_declarations": 749,
|
| 115 |
"lean_axioms": 14,
|
| 116 |
"lean_tracked_sorries": 163,
|
| 117 |
+
"doi_lutar_lean": "10.5281/zenodo.24239654",
|
| 118 |
+
"lambda_status": "Conjecture 1 is machine-checked false as stated; Theorem U is conditional; advisory only",
|
| 119 |
}
|
| 120 |
|
| 121 |
|
build/torch-universal/szl_lambda_gate/_lambda.py
CHANGED
|
@@ -16,9 +16,8 @@ WHAT Λ IS / IS NOT (HONESTY — SZL Holdings doctrine v11):
|
|
| 16 |
combine axis scores in [0,1] into one number. It is ADVISORY governance
|
| 17 |
signal — a conservative roll-up where any single zeroed axis drives the
|
| 18 |
aggregate to 0. It is NOT "proven trust" and NOT a closed theorem. Its
|
| 19 |
-
*uniqueness*
|
| 20 |
-
|
| 21 |
-
CAUCHY_ND step plus a missing symmetry axiom in the Lean development). Do
|
| 22 |
not describe Λ as proven trust anywhere.
|
| 23 |
|
| 24 |
PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
@@ -35,8 +34,8 @@ PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
| 35 |
|
| 36 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 37 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 38 |
-
DOI 10.5281/zenodo.
|
| 39 |
-
|
| 40 |
|
| 41 |
Axioms carried (Lutar/Axioms.lean), available below as runtime self-checks:
|
| 42 |
A1 IsMonotone — Λ is non-decreasing in each axis
|
|
@@ -146,16 +145,18 @@ def _resolve_weights(
|
|
| 146 |
raise ValueError("weights must all be finite (no NaN/Inf)")
|
| 147 |
if bool(torch.any(wf <= 0.0)):
|
| 148 |
raise ValueError("weights must be strictly positive (wᵢ > 0)")
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
|
|
|
| 153 |
# Compiled path stays in tensor-land. Non-positive weights are a misuse;
|
| 154 |
# clamp them away from zero so the graph does not break, then normalize.
|
| 155 |
# This path is outside szl.lambda/v1; _v1.lambda_v1 validates before it
|
| 156 |
# gets here and is not meant to run under torch.compile.
|
| 157 |
wf = torch.where(torch.isfinite(wf), wf, torch.ones_like(wf))
|
| 158 |
wf = torch.clamp(wf, min=torch.finfo(wf.dtype).tiny)
|
|
|
|
| 159 |
return wf / wf.sum()
|
| 160 |
|
| 161 |
|
|
@@ -195,7 +196,7 @@ def lambda_aggregate(
|
|
| 195 |
validated, coded errors use :func:`szl_lambda_gate._v1.lambda_v1`.
|
| 196 |
|
| 197 |
HONESTY: this is a non-compensatory governance roll-up, NOT proven trust.
|
| 198 |
-
Λ-uniqueness is Conjecture 1
|
| 199 |
"""
|
| 200 |
_check_axes(axes)
|
| 201 |
in_dtype = axes.dtype
|
|
@@ -262,7 +263,7 @@ def lambda_gate(
|
|
| 262 |
front rather than silently producing a wrong pass mask.
|
| 263 |
|
| 264 |
HONESTY: a "pass" is an ADVISORY signal only. Λ is the weighted-geometric-
|
| 265 |
-
mean aggregator; its uniqueness is Conjecture 1
|
| 266 |
pass as proven trust or a closed theorem.
|
| 267 |
"""
|
| 268 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
|
@@ -308,7 +309,7 @@ def lambda_gate_batch(
|
|
| 308 |
advisory — always True (NOT proven trust)
|
| 309 |
|
| 310 |
HONESTY: the pass mask is an ADVISORY, non-compensatory signal. A "pass"
|
| 311 |
-
is not proven trust; Λ-uniqueness is Conjecture 1
|
| 312 |
"""
|
| 313 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
| 314 |
_check_axes(candidates)
|
|
@@ -518,7 +519,7 @@ def selfcheck(
|
|
| 518 |
adversarial — {trials, violation} from a random falsification search
|
| 519 |
(violation is None when no violation was found)
|
| 520 |
advisory — always True
|
| 521 |
-
lambda_status — Conjecture 1
|
| 522 |
|
| 523 |
HONESTY: these are EMPIRICAL checks on sampled inputs, NOT a proof of
|
| 524 |
Λ-uniqueness (Conjecture 1, open). A clean run is evidence, not proof.
|
|
@@ -538,7 +539,7 @@ def selfcheck(
|
|
| 538 |
"all_axioms_hold": all(axioms.values()) and violation is None,
|
| 539 |
"adversarial": {"trials": int(trials), "violation": violation},
|
| 540 |
"advisory": True,
|
| 541 |
-
"lambda_status": "Conjecture 1
|
| 542 |
}
|
| 543 |
|
| 544 |
|
|
|
|
| 16 |
combine axis scores in [0,1] into one number. It is ADVISORY governance
|
| 17 |
signal — a conservative roll-up where any single zeroed axis drives the
|
| 18 |
aggregate to 0. It is NOT "proven trust" and NOT a closed theorem. Its
|
| 19 |
+
*uniqueness* under bare A1-A5 is Conjecture 1, machine-checked false as
|
| 20 |
+
stated. Theorem U is conditional. Do
|
|
|
|
| 21 |
not describe Λ as proven trust anywhere.
|
| 22 |
|
| 23 |
PRIOR ART (honest attribution): the weighted geometric mean as a *less-
|
|
|
|
| 34 |
|
| 35 |
PROVENANCE: backed by the Lean 4 formalization szl-holdings/lutar-lean
|
| 36 |
(749 declarations / 14 axioms / 163 tracked sorries),
|
| 37 |
+
DOI 10.5281/zenodo.24239654 (lutar-lean).
|
| 38 |
+
Bare A1-A5 uniqueness is Conjecture 1, machine-checked false as stated. Theorem U is conditional.
|
| 39 |
|
| 40 |
Axioms carried (Lutar/Axioms.lean), available below as runtime self-checks:
|
| 41 |
A1 IsMonotone — Λ is non-decreasing in each axis
|
|
|
|
| 145 |
raise ValueError("weights must all be finite (no NaN/Inf)")
|
| 146 |
if bool(torch.any(wf <= 0.0)):
|
| 147 |
raise ValueError("weights must be strictly positive (wᵢ > 0)")
|
| 148 |
+
# Positive finite elements can still overflow their unscaled sum.
|
| 149 |
+
# Normalize the scale first so such weights cannot collapse to zero
|
| 150 |
+
# and turn every nonzero axis vector into an advisory score of 1.
|
| 151 |
+
wf = wf / wf.max()
|
| 152 |
+
return wf / wf.sum()
|
| 153 |
# Compiled path stays in tensor-land. Non-positive weights are a misuse;
|
| 154 |
# clamp them away from zero so the graph does not break, then normalize.
|
| 155 |
# This path is outside szl.lambda/v1; _v1.lambda_v1 validates before it
|
| 156 |
# gets here and is not meant to run under torch.compile.
|
| 157 |
wf = torch.where(torch.isfinite(wf), wf, torch.ones_like(wf))
|
| 158 |
wf = torch.clamp(wf, min=torch.finfo(wf.dtype).tiny)
|
| 159 |
+
wf = wf / wf.max()
|
| 160 |
return wf / wf.sum()
|
| 161 |
|
| 162 |
|
|
|
|
| 196 |
validated, coded errors use :func:`szl_lambda_gate._v1.lambda_v1`.
|
| 197 |
|
| 198 |
HONESTY: this is a non-compensatory governance roll-up, NOT proven trust.
|
| 199 |
+
Λ-uniqueness is Conjecture 1, machine-checked false as stated.
|
| 200 |
"""
|
| 201 |
_check_axes(axes)
|
| 202 |
in_dtype = axes.dtype
|
|
|
|
| 263 |
front rather than silently producing a wrong pass mask.
|
| 264 |
|
| 265 |
HONESTY: a "pass" is an ADVISORY signal only. Λ is the weighted-geometric-
|
| 266 |
+
mean aggregator; its uniqueness is Conjecture 1, machine-checked false as stated. Do not treat a
|
| 267 |
pass as proven trust or a closed theorem.
|
| 268 |
"""
|
| 269 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
|
|
|
| 309 |
advisory — always True (NOT proven trust)
|
| 310 |
|
| 311 |
HONESTY: the pass mask is an ADVISORY, non-compensatory signal. A "pass"
|
| 312 |
+
is not proven trust; Λ-uniqueness is Conjecture 1, machine-checked false as stated.
|
| 313 |
"""
|
| 314 |
threshold = _resolve_threshold(threshold, stacklevel=2)
|
| 315 |
_check_axes(candidates)
|
|
|
|
| 519 |
adversarial — {trials, violation} from a random falsification search
|
| 520 |
(violation is None when no violation was found)
|
| 521 |
advisory — always True
|
| 522 |
+
lambda_status — Conjecture 1, machine-checked false as stated honesty string
|
| 523 |
|
| 524 |
HONESTY: these are EMPIRICAL checks on sampled inputs, NOT a proof of
|
| 525 |
Λ-uniqueness (Conjecture 1, open). A clean run is evidence, not proof.
|
|
|
|
| 539 |
"all_axioms_hold": all(axioms.values()) and violation is None,
|
| 540 |
"adversarial": {"trials": int(trials), "violation": violation},
|
| 541 |
"advisory": True,
|
| 542 |
+
"lambda_status": "Conjecture 1 is machine-checked false as stated; Theorem U is conditional; advisory only",
|
| 543 |
}
|
| 544 |
|
| 545 |
|
build/torch-universal/szl_lambda_gate/_v1.py
CHANGED
|
@@ -58,7 +58,7 @@ entry is not meant to run inside ``torch.compile``. The legacy compiled weight
|
|
| 58 |
path in ``_lambda._resolve_weights``, which clamps weights to ``finfo.tiny``,
|
| 59 |
is outside szl.lambda/v1.
|
| 60 |
|
| 61 |
-
Λ is advisory. Λ uniqueness is Conjecture 1
|
| 62 |
"""
|
| 63 |
from __future__ import annotations
|
| 64 |
|
|
|
|
| 58 |
path in ``_lambda._resolve_weights``, which clamps weights to ``finfo.tiny``,
|
| 59 |
is outside szl.lambda/v1.
|
| 60 |
|
| 61 |
+
Λ is advisory. Λ uniqueness is Conjecture 1, machine-checked false as stated. Nothing here depends on it.
|
| 62 |
"""
|
| 63 |
from __future__ import annotations
|
| 64 |
|
build/torch-universal/szl_lambda_gate/governed_norm/__init__.py
CHANGED
|
@@ -30,7 +30,7 @@ Usage (as a subpackage of the canonical kernel)::
|
|
| 30 |
Honesty: this is a universal (pure-Python) kernel — a correctness reference,
|
| 31 |
not a hand-tuned CUDA speed record. No fabricated benchmarks. Its
|
| 32 |
differentiator is verifiable governance, not raw FLOPs. Λ = Conjecture 1
|
| 33 |
-
(advisory,
|
| 34 |
|
| 35 |
Note on torch.compile: every op is torch.compile(fullgraph=True)-compatible.
|
| 36 |
Receipt emission is an eager-only side effect (it hashes materialized tensor
|
|
|
|
| 30 |
Honesty: this is a universal (pure-Python) kernel — a correctness reference,
|
| 31 |
not a hand-tuned CUDA speed record. No fabricated benchmarks. Its
|
| 32 |
differentiator is verifiable governance, not raw FLOPs. Λ = Conjecture 1
|
| 33 |
+
(advisory, bare statement false as stated; Theorem U conditional) — never described as proven trust anywhere.
|
| 34 |
|
| 35 |
Note on torch.compile: every op is torch.compile(fullgraph=True)-compatible.
|
| 36 |
Receipt emission is an eager-only side effect (it hashes materialized tensor
|
build/torch-universal/szl_lambda_gate/layers.py
CHANGED
|
@@ -13,7 +13,7 @@ instance it is bound to (set by the host model) and only defines `forward`.
|
|
| 13 |
|
| 14 |
HONESTY: `LambdaGate` emits an ADVISORY governance signal (the weighted
|
| 15 |
geometric mean Λ plus a pass/fail vs threshold). Λ is NOT proven trust; its
|
| 16 |
-
uniqueness is Conjecture 1
|
| 17 |
"""
|
| 18 |
import torch
|
| 19 |
from torch import nn
|
|
|
|
| 13 |
|
| 14 |
HONESTY: `LambdaGate` emits an ADVISORY governance signal (the weighted
|
| 15 |
geometric mean Λ plus a pass/fail vs threshold). Λ is NOT proven trust; its
|
| 16 |
+
uniqueness is Conjecture 1, machine-checked false as stated.
|
| 17 |
"""
|
| 18 |
import torch
|
| 19 |
from torch import nn
|
reference/szl_lambda_v1.py
CHANGED
|
@@ -31,7 +31,7 @@ returns ``(verdict, code)``:
|
|
| 31 |
* GO / None if log Λ > log tau, otherwise NO_GO / BELOW_TAU.
|
| 32 |
|
| 33 |
The compare is in log space on the unrounded value. Λ is advisory. Λ
|
| 34 |
-
uniqueness is Conjecture 1
|
| 35 |
|
| 36 |
Stdlib only. Other implementations port this file; they must agree on every
|
| 37 |
error code and verdict, and on values within each vector's ``value_tol``.
|
|
|
|
| 31 |
* GO / None if log Λ > log tau, otherwise NO_GO / BELOW_TAU.
|
| 32 |
|
| 33 |
The compare is in log space on the unrounded value. Λ is advisory. Λ
|
| 34 |
+
uniqueness is Conjecture 1, machine-checked false as stated. Nothing here depends on it.
|
| 35 |
|
| 36 |
Stdlib only. Other implementations port this file; they must agree on every
|
| 37 |
error code and verdict, and on values within each vector's ``value_tol``.
|
spec/szl.lambda.v1.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"title": "Λ, the weighted geometric mean, as a validated contract",
|
| 4 |
"status": "ADVISORY",
|
| 5 |
"uniqueness": "CONJECTURE_1_NOT_USED",
|
| 6 |
-
"honesty": "Λ is an advisory, non-compensatory roll-up. Λ uniqueness is Conjecture 1
|
| 7 |
"form": "weighted_geometric_mean",
|
| 8 |
"definition": "Λ_w(x) = ∏_k x_k^{w_k}",
|
| 9 |
"algorithm": {
|
|
|
|
| 3 |
"title": "Λ, the weighted geometric mean, as a validated contract",
|
| 4 |
"status": "ADVISORY",
|
| 5 |
"uniqueness": "CONJECTURE_1_NOT_USED",
|
| 6 |
+
"honesty": "Λ is an advisory, non-compensatory roll-up. Λ uniqueness is Conjecture 1, machine-checked false as stated; nothing in this contract depends on it.",
|
| 7 |
"form": "weighted_geometric_mean",
|
| 8 |
"definition": "Λ_w(x) = ∏_k x_k^{w_k}",
|
| 9 |
"algorithm": {
|