Skip to content

Commit 53314ea

Browse files
committed
streamline
1 parent 787ae89 commit 53314ea

5 files changed

Lines changed: 112 additions & 36 deletions

File tree

CITATION.cff

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
cff-version: "1.2.0"
2+
type: software
3+
4+
title: "Structural Explainability: Neutral Substrate"
5+
version: "0.1.0"
6+
date-released: "2025-12-23"
7+
8+
authors:
9+
- family-names: Case
10+
given-names: Denise M.
11+
orcid: "https://orcid.org/0000-0001-6165-7389"
12+
13+
repository-code: "https://github.com/civic-interconnect/NeutralSubstrate"
14+
license: MIT
15+
16+
keywords:
17+
- structural-explainability
18+
- accountability
19+
- ontological-neutrality
20+
- formal-ontology
21+
- formal-verification
22+
- theorem-proving
23+
- lean4
24+
25+
message: "If you use this software, please cite it as described in this file."

Main.lean

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
--- Main.lean executable ---
2-
--- REQ: Main entry point for the application ---
1+
-- REQ.EXEC.MAIN:
2+
-- Main entry point for this package.
3+
--
4+
-- WHY:
5+
-- This executable exists solely to ensure that the full
6+
-- formalization compiles end-to-end under CI and local builds.
7+
--
8+
-- OBS:
9+
-- No definitions, theorems, or logic belong here.
10+
-- This file must remain trivial and stable.
11+
-- Any failure here indicates a broken proof or import graph.
12+
313
import StructuralExplainability
414

515
def main : IO Unit :=
6-
IO.println "Structural Explainability: Ontological Neutrality Theorem verified."
7-
--- End of Main.lean ---
16+
IO.println "Structural Explainability: package verified."

README.md

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,36 @@
44
![Build Status](https://github.com/civic-interconnect/NeutralSubstrate/actions/workflows/ci.yml/badge.svg)
55
[![Check Links](https://github.com/civic-interconnect/NeutralSubstrate/actions/workflows/links.yml/badge.svg)](https://github.com/civic-interconnect/NeutralSubstrate/actions/workflows/links.yml)
66

7-
> Lean 4 formalization of the Ontological Neutrality Theorem.
7+
> Lean 4 formalization of foundational constraints required for ontological substrates
8+
> intended to support accountability under persistent interpretive disagreement.
89
9-
## Theorem
10+
## Context
1011

11-
An ontology is neutral if and only if it contains no causal or normative primitives.
12+
Part of the Structural Explainability framework.
1213

13-
```lean
14-
∀ S : Ontology, Neutral S ↔ containsCausalOrNormative S = false
15-
```
16-
17-
## Domain Scope
18-
19-
This formalization applies to substrates optimized for:
20-
21-
- Stability under durable interpretive disagreement
22-
- Accountability across jurisdictions
23-
- Interoperability without semantic consensus
14+
## Scope
2415

25-
## Paper (Submitted)
16+
This repository formalizes structural constraints on ontological substrates that are intended to remain stable across incompatible interpretations, legal regimes, and analytic frameworks.
2617

27-
Case, D. M. (2025). "The Ontological Neutrality Theorem: Why Neutral Ontological Substrates Must Be Pre-Causal and Pre-Normative."
18+
It does not define a concrete ontology or protocol.
19+
It establishes conditions that any such system must satisfy at the substrate level.
2820

29-
## Verify
21+
## Build and Run
3022

3123
```bash
3224
lake update
3325
lake build
34-
lake exe neutralsubstrate
26+
lake exe verify
3527
```
3628

3729
## Documentation
3830

3931
- [Paper to Lean Mapping](./docs/MAPPING.md)
4032
- [Lean 4 Quick Reference](./docs/LEAN.md)
4133

42-
## Project Structure
34+
## Citation
4335

44-
| Item | Value |
45-
| ------------ | ------------------------------------------------ |
46-
| Project name | `NeutralSubstrate` |
47-
| Namespace | `StructuralExplainability` |
48-
| Library | `StructuralExplainability` |
49-
| Executable | `neutralsubstrate` |
50-
| Main proof | `StructuralExplainability/NeutralSubstrate.lean` |
36+
See [CITATION.cff](./CITATION.cff)
5137

5238
## License
5339

StructuralExplainability.lean

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
--- StructuralExplainability.lean ---
2-
--- REQ: Library root, imports all modules ---
1+
-- REQ.LIBRARY.ROOT:
2+
-- Public library root for this package.
3+
--
4+
-- WHY:
5+
-- Downstream users import this module to obtain the package's
6+
-- entire verified surface through a single stable entry point.
7+
--
8+
-- OBS:
9+
-- Imports MUST appear at the beginning of the file (Lean requirement).
10+
-- This file remains thin: it only re-exports submodules.
11+
-- No definitions or theorems belong here.
12+
313
import StructuralExplainability.NeutralSubstrate
14+

lakefile.toml

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,57 @@
1+
# REQ.FILE.PROJECT.IDENTITY
2+
# Declares the externally visible identity and build surface of this package.
3+
# Sections marked CUSTOM are expected to vary by repository.
4+
5+
# ============================================================
6+
# REQUIRED PROJECT IDENTITY (stable structure, custom values)
7+
# ============================================================
8+
9+
# REQ.PROJECT.NAME
10+
# Canonical package name.
11+
# CUSTOM: Must match repository naming.
112
name = "NeutralSubstrate"
13+
14+
# REQ.PROJECT.VERSION
15+
# Semantic version.
16+
# Increment only for externally visible logical changes.
217
version = "0.1.0"
3-
defaultTargets = ["StructuralExplainability"]
4-
keywords = ["ontology", "formal-verification", "structural-explainability"]
18+
19+
# REQ.PROJECT.LICENSE
20+
# Open license permitting reuse of formal artifacts.
521
license = "MIT"
622

23+
# REQ.PROJECT.KEYWORDS
24+
# Discovery metadata for Lean, GitHub, and academic indexing.
25+
# CUSTOM: Adjust to reflect repository scope.
26+
keywords = [
27+
"structural-explainability",
28+
"accountability",
29+
"ontological-neutrality",
30+
"formal-ontology",
31+
"formal-verification",
32+
"theorem-proving",
33+
"lean4"
34+
]
35+
36+
# ============================================================
37+
# REQUIRED BUILD SURFACE (invariant across repos)
38+
# ============================================================
39+
40+
# REQ.BUILD.DEFAULT_TARGETS
41+
# Default build surface.
42+
# MUST include the public library root.
43+
defaultTargets = ["StructuralExplainability"]
44+
45+
# REQ.LIB.PUBLIC
46+
# Public Lean library exported by this package.
47+
# Downstream projects import this by name.
748
[[lean_lib]]
849
name = "StructuralExplainability"
950

51+
# REQ.EXEC.VERIFICATION
52+
# Minimal executable used to verify that the
53+
# formalization compiles end-to-end under CI and local builds.
54+
# Executable MUST remain trivial.
1055
[[lean_exe]]
11-
name = "neutralsubstrate"
12-
root = "Main"
56+
name = "verify"
57+
root = "Main"

0 commit comments

Comments
 (0)