{"id":32721496,"url":"https://github.com/collapse-logic/collapse","last_synced_at":"2026-05-14T13:32:31.184Z","repository":{"id":319097670,"uuid":"1077567061","full_name":"collapse-logic/collapse","owner":"collapse-logic","description":"Collapse System Logic — deterministic proof collapse (E→Z→1)","archived":false,"fork":false,"pushed_at":"2025-10-16T13:33:07.000Z","size":3914,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T15:37:53.206Z","etag":null,"topics":["collapse","compression","cryptography","csl","determinism","formal-methods","lean4","logic","proof","proofs","python"],"latest_commit_sha":null,"homepage":"https://collapselogic.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/collapse-logic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-16T12:33:46.000Z","updated_at":"2025-10-16T12:46:25.000Z","dependencies_parsed_at":"2025-10-18T03:42:51.491Z","dependency_job_id":null,"html_url":"https://github.com/collapse-logic/collapse","commit_stats":null,"previous_names":["collapse-logic/collapse"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/collapse-logic/collapse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/collapse-logic%2Fcollapse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/collapse-logic%2Fcollapse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/collapse-logic%2Fcollapse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/collapse-logic%2Fcollapse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/collapse-logic","download_url":"https://codeload.github.com/collapse-logic/collapse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/collapse-logic%2Fcollapse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282357608,"owners_count":26656057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-02T02:00:06.609Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collapse","compression","cryptography","csl","determinism","formal-methods","lean4","logic","proof","proofs","python"],"created_at":"2025-11-02T21:00:52.060Z","updated_at":"2025-11-02T21:01:52.044Z","avatar_url":"https://github.com/collapse-logic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSL-Core\n\nThe **Collapse System Logic (CSL)** core repository.  \nThis repo contains the operational Python kernel, certified `.csl` logic modules, and the proof system scaffolding used for CSL compression/expansion.\n\n## Core Directories\n- `CSL-PyKernel/` — Python kernel and proof driver.\n- `.csl` files — minimal logic primitives (e.g., `mini_or.csl`, `mini_neq.csl`).\n- `mathematical_proof_system.py` — primary proof orchestrator.\n\n## Usage\n\n### Proof Compression Flow\n\nEach collapse in the CSL pipeline follows the canonical tri-map:\n| Stage | Operation | Description |\n|--------|------------|--------------|\n| **E** | Expansion | Source code or proof text in its full expressive state. |\n| **Z** | Zipped Canonical Form | Structured compression into `.cslx` (CSL-exchange) format via entropy-minimizing transformation. |\n| **1** | Terminal Collapse | Final certification: a single hash (SHA256/32) validating proof integrity and terminal identity. |\n\n### Typical Commands\n### Notes\n- Every `.cslx` file is verifiable and self-consistent.\n- Collapse certificates are deterministic across systems.\n- CSL aims for **entropy → zero** under valid proof collapse.\n\npython -m py_compile mathematical_proof_system.py\npython csl_any_collapse.py mathematical_proof_system.py --info\npython csl_any_collapse.py mathematical_proof_system.py --pack\npython csl_any_collapse.py mathematical_proof_system.py.cslx --unpack\n/usr/bin/time -l python -u mathematical_proof_system.py\n\n## CSL Kernel Architecture\n\nThe CSL system implements the canonical collapse triad:\n### Implementation Mapping\n| Symbol | Module / File | Functionality |\n|---------|----------------|----------------|\n| **Φ** | `CSL-PyKernel/csl_any_collapse.py` | Performs entropy-reducing collapse via zlib and canonical hashing. |\n| **T** | `mathematical_proof_system.py` | Transforms proofs from expressive to canonical form (`E → Z`). |\n| **Ψ** | `.csl` certified modules | Final verification and terminal identity (`Z → 1`). |\n\n### Operational Flow\n1. **Compile** — Validate syntax and structure (`E` form).  \n2. **Pack** — Collapse to `.cslx` canonical (`Z` form).  \n3. **Unpack** — Expand back for verification.  \n4. **Execute** — Run the proof orchestrator; log results and emit terminal hash.  \n\nEach phase is deterministic: no randomness, no recursion drift, and total entropy collapse to 0 under valid proofs.\n\n\n## Verification and Certification\n\nEvery `.cslx` file produced by the kernel carries a **collapse certificate**:\nThis certificate encodes the **terminal state** of the proof:\n- **Canonical Hash (CERT)** → irreversible identity of the proof content.\n- **Zlib Compression (PACK)** → verified entropy reduction.\n- **Re-expandable (UNPACK)** → structural integrity preserved through collapse.\n\nDouble-collapsing (e.g., `.cslx → .cslx.cslx`) yields identical hashes under valid CSL alignment, confirming deterministic closure.\n\n---\n\n### Validation Rule\nA valid proof satisfies:\n\\[\n\\Phi^2 = 0,\\quad T^2 = T,\\quad \\Psi^2 = \\Psi,\\quad \\Psi \\circ T = 1\n\\]\n\nwhere entropy strictly decreases under Φ.  \nThis is the mathematical guarantee of **Collapse Logic Integrity**.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollapse-logic%2Fcollapse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcollapse-logic%2Fcollapse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollapse-logic%2Fcollapse/lists"}