{"id":28488414,"url":"https://github.com/knowledgeonwebscale/eyelet","last_synced_at":"2025-07-03T07:30:51.651Z","repository":{"id":290450723,"uuid":"972564778","full_name":"KNowledgeOnWebScale/eyelet","owner":"KNowledgeOnWebScale","description":"eye reasoning in prolog","archived":false,"fork":false,"pushed_at":"2025-06-23T21:49:17.000Z","size":2173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-23T22:40:49.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://knowledgeonwebscale.github.io/eyelet/","language":"Prolog","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/KNowledgeOnWebScale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-25T09:32:35.000Z","updated_at":"2025-06-23T21:49:22.000Z","dependencies_parsed_at":"2025-04-28T22:54:16.668Z","dependency_job_id":"a202b4d1-0532-4060-9ccf-ce1aaebccadb","html_url":"https://github.com/KNowledgeOnWebScale/eyelet","commit_stats":null,"previous_names":["eyereasoner/eyelet","eyereasoner/eyewip","knowledgeonwebscale/eyelet"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/KNowledgeOnWebScale/eyelet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KNowledgeOnWebScale%2Feyelet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KNowledgeOnWebScale%2Feyelet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KNowledgeOnWebScale%2Feyelet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KNowledgeOnWebScale%2Feyelet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KNowledgeOnWebScale","download_url":"https://codeload.github.com/KNowledgeOnWebScale/eyelet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KNowledgeOnWebScale%2Feyelet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263282497,"owners_count":23442185,"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","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":[],"created_at":"2025-06-08T05:30:32.799Z","updated_at":"2025-07-03T07:30:51.196Z","avatar_url":"https://github.com/KNowledgeOnWebScale.png","language":"Prolog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eyelet\n\n## eye reasoning in prolog\n\n- besides top-down reasoning with `conclusion :- premise` rules, eyelet also supports bottom-up reasoning with `conclusion :+ premise` rules\n- variables are interpreted universally except for `conclusion :+ premise` conclusion-only variables which are interpreted existentially\n- linear implication is done with `becomes(from_conjunction, to_conjunction)`\n- bottom-up reasoning can use `stable(n)` to fail if the deductive closure at level `n` is not yet stable\n- bottom-up reasoning steps are performed as `step((conclusion :+ premise), premise_inst, conclusion_inst)`\n- queries are posed as `true :+ premise` and answered as `answer(premise_inst)`\n- inference fuses are defined as `false :+ premise` and blown as `fuse(premise_inst)` with return code 2\n\n## Rationale for bottom-up reasoning\n\n- conclusion can be a conjunction\n- conclusion can be `false` to blow an inference fuse\n- conclusion can be `true` to pose a query\n- conclusion-only variables are existentials\n- performing bottom-up proof steps `step/3`\n- avoiding loops that could occur with top-down reasoning\n\n## Testing\n\n- install [SWI-Prolog](https://www.swi-prolog.org/Download.html)\n- run [./test](./test) to go from [./input/](./input/) to [./output/](./output/)\n\n__or__\n\n- install [Trealla Prolog](https://github.com/trealla-prolog/trealla?tab=readme-ov-file#building)\n- run [./test-trealla](./test-trealla) to go from [./input/](./input/) to [./output-trealla/](./output-trealla/)\n\n__or__\n\n- install [Scryer Prolog](https://github.com/mthom/scryer-prolog?tab=readme-ov-file#installing-scryer-prolog)\n- run [./test-scryer](./test-scryer) to go from [./input/](./input/) to [./output-scryer/](./output-scryer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgeonwebscale%2Feyelet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowledgeonwebscale%2Feyelet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowledgeonwebscale%2Feyelet/lists"}