{"id":48959202,"url":"https://github.com/gcomneno/pet","last_synced_at":"2026-04-18T01:06:55.996Z","repository":{"id":343508473,"uuid":"1176799850","full_name":"gcomneno/pet","owner":"gcomneno","description":"Python CLI and research playground for representing integers as recursive prime-exponent trees.","archived":false,"fork":false,"pushed_at":"2026-04-15T16:33:46.000Z","size":15374,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T18:29:16.650Z","etag":null,"topics":["cli","integer-representation","mathematics","number-theory","prime-factorization","python","recursive-data-structure","recursive-structures","research-tool"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcomneno.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-09T11:45:01.000Z","updated_at":"2026-04-15T11:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gcomneno/pet","commit_stats":null,"previous_names":["gcomneno/pet"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gcomneno/pet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcomneno%2Fpet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcomneno%2Fpet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcomneno%2Fpet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcomneno%2Fpet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcomneno","download_url":"https://codeload.github.com/gcomneno/pet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcomneno%2Fpet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","integer-representation","mathematics","number-theory","prime-factorization","python","recursive-data-structure","recursive-structures","research-tool"],"created_at":"2026-04-18T01:06:54.411Z","updated_at":"2026-04-18T01:06:55.870Z","avatar_url":"https://github.com/gcomneno.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PET — Prime Exponent Tree\n\n[![CI](https://github.com/gcomneno/pet/actions/workflows/ci.yml/badge.svg)](https://github.com/gcomneno/pet/actions/workflows/ci.yml)\n[![Release](https://img.shields.io/github/v/release/gcomneno/pet)](https://github.com/gcomneno/pet/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)\n\nPET is a Python CLI and research lab for representing integers as recursive prime-exponent trees.\n\nIt treats an integer not only as a value, but also as a structured multiplicative object.\nThe project studies that structure at three levels:\n\n- **PET-Base** — canonical recursive representation\n- **PET-Metrics** — structural observation and comparison\n- **PET-METICA** — rewrite geometry on canonical PET shapes\n\nPET is not presented as a replacement for classical arithmetic and not as a claimed solution to a major open problem.\nIt is best understood as a structural and experimental framework for studying integers.\n\n## Why this is interesting\n\nPET gives you a way to explore integers through their recursive prime-factorization structure.\n\nIt is useful as:\n\n- a canonical representation of integers based on prime factorization\n- a CLI for inspecting structural properties and metrics\n- a reproducible lab for scans, queries, summaries, and empirical reports\n- a rewrite-geometric playground for studying paths, asymmetries, and families of PET shapes\n\n## Try it in 30 seconds\n\n### Install locally\n\n```bash\npip install -e .\n```\n\n### Inspect a number\n\n```bash\npet encode 72\n```\n\nOutput:\n\n```text\nN = 72\n[\n  {\n    \"p\": 2,\n    \"e\": [\n      {\n        \"p\": 3,\n        \"e\": null\n      }\n    ]\n  },\n  {\n    \"p\": 3,\n    \"e\": [\n      {\n        \"p\": 2,\n        \"e\": null\n      }\n    ]\n  }\n]\ndecoded = 72\n```\n\n### Inspect structural metrics\n\n```bash\npet metrics 256\n```\n\nOutput:\n\n```text\nN = 256\nnode_count = 3\nleaf_count = 1\nheight = 3\nmax_branching = 1\nbranch_profile = [1, 1, 1]\nrecursive_mass = 2\naverage_leaf_depth = 3.0\nleaf_depth_variance = 0.0\n```\n\n### Run a small bounded scan\n\n```bash\npet scan 2 1000 --jsonl artifacts/scan-2-1000.jsonl\n```\n\n### Query the scan\n\n```bash\npet query filter artifacts/scan-2-1000.jsonl --where \"height=2\" --limit 5\n```\n\n## What is stable today\n\n### Stable / core\n- recursive encoding based on prime factorization\n- canonical representation\n- invertibility / roundtrip behavior\n- machine-facing JSON representation\n- CLI-based inspection and dataset generation\n\n### Active observational layer\n- PET-derived structural metrics\n- structural comparison across families\n- scan / query / atlas-style workflows\n\n### Live research line\n- PET-METICA as rewrite geometry on canonical PET shapes\n- local rewrite moves such as `NEW`, `DROP`, `INC`, `DEC`\n- shortest paths, canonical paths, asymmetries, and rewrite friction\n- empirical family behavior in explored ranges\n\n### Still exploratory\n- broad mathematical generalization beyond explored ranges\n- shape algebra and related experimental operations\n- partial PET and hybrid reconstruction frontiers\n\n## Project map\n\nStart here depending on what you need:\n\n- [docs/README.md](docs/README.md) — documentation entry point\n- [docs/VISION.md](docs/VISION.md) — project vision and layer structure\n- [docs/STATUS.md](docs/STATUS.md) — what is stable, empirical, or exploratory\n- [docs/PET-METICA.md](docs/PET-METICA.md) — current rewrite-geometric research line\n- [docs/reference/SPEC.md](docs/reference/SPEC.md) — formal PET-Base specification\n- [docs/reference/CLI.md](docs/reference/CLI.md) — command-line usage\n- [docs/reports/README.md](docs/reports/README.md) — reports, generated summaries, and report data\n- [docs/research/README.md](docs/research/README.md) — research notes, experiments, workflows, and datasets\n- [docs/paper/README.md](docs/paper/README.md) — paper-oriented material\n- [ROADMAP.md](ROADMAP.md) — current priorities and next directions\n- [CHANGELOG.md](CHANGELOG.md) — public release history\n- [CONTRIBUTING.md](CONTRIBUTING.md) — contribution guide\n\n## Typical workflow\n\nA small practical PET workflow looks like this:\n\n1. encode or inspect specific integers\n2. compute structural metrics\n3. generate a bounded JSONL scan\n4. query or group the scan\n5. summarize the dataset with report tooling\n6. explore rewrite neighborhoods and paths where relevant\n\n## Current scope\n\nPET is currently best understood as:\n\n- a small Python CLI\n- a reproducible research/tooling lab\n- a project for studying structural properties of integers through PET representations\n- an emerging rewrite-geometric framework through PET-METICA\n\nIt is not yet a polished end-user product.\n\n## Development\n\nThe project targets Python 3.10+.\n\nLocal install:\n\n```bash\npip install -e .\n```\n\nRun tests:\n\n```bash\npytest -q\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcomneno%2Fpet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcomneno%2Fpet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcomneno%2Fpet/lists"}