{"id":13749309,"url":"https://github.com/jieyouxu/propositional-tableau-solver-rs","last_synced_at":"2025-06-12T12:33:51.629Z","repository":{"id":105881689,"uuid":"241618028","full_name":"jieyouxu/propositional-tableau-solver-rs","owner":"jieyouxu","description":"Determines the satisfiability of a propositional formula using the Propositional Tableaux method","archived":false,"fork":false,"pushed_at":"2020-04-25T09:21:26.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-22T22:32:55.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jieyouxu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-19T12:37:14.000Z","updated_at":"2020-09-20T13:09:01.000Z","dependencies_parsed_at":"2024-01-13T01:49:02.792Z","dependency_job_id":"eb982352-18d3-4aed-a01d-666a644787e8","html_url":"https://github.com/jieyouxu/propositional-tableau-solver-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieyouxu%2Fpropositional-tableau-solver-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieyouxu%2Fpropositional-tableau-solver-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieyouxu%2Fpropositional-tableau-solver-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieyouxu%2Fpropositional-tableau-solver-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jieyouxu","download_url":"https://codeload.github.com/jieyouxu/propositional-tableau-solver-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248359437,"owners_count":21090526,"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":"2024-08-03T07:00:59.013Z","updated_at":"2025-04-11T07:46:35.756Z","avatar_url":"https://github.com/jieyouxu.png","language":"Rust","funding_links":[],"categories":["Propositional logic"],"sub_categories":["Libraries"],"readme":"# Propositional Tableaux Solver\n\nA little propositional formula satisfiability solver using the propositional \ntableaux method, written in the [Rust](https://github.com/rust-lang/rust)\nprogramming language!\n\nSee http://www.dis.uniroma1.it/liberato/planning/tableau/tableau.html.\n\n## Syntax of Propositional Formula\n\nThe input to the solver must be a well-formed propositional formula.\n\nIt can be described by the following BNF grammar:\n\n```enbf\n\u003cformula\u003e   ::= \u003cpropositional-variable\u003e\n            |   ( - \u003cformula\u003e )             # negation\n            |   ( \u003cformula\u003e ^ \u003cformula\u003e  )  # conjunction\n            |   ( \u003cformula\u003e | \u003cformula\u003e  )  # disjunction\n            |   ( \u003cformula\u003e -\u003e \u003cformula\u003e  ) # implication\n            |   ( \u003cformula\u003e \u003c-\u003e \u003cformula\u003e ) # bi-implication\n```\n\nWhitespaces are stripped and ignored, and a `\u003cpropositional-variable\u003e` can be\nany sequence of alphanumeric characters `[a-zA-Z][a-zA-Z0-9]*` that begin with\na alphabet character. Cases are respected and `aaa` is a different\npropositional variable from `AAA`.\n\n## Running via Cargo\n\n### Mode\n\nThe CLI supports both `satisfiability` mode and `validity` mode checking for a\ngiven propositional formula.\n\nUse the `-m` mode switch:\n\n1. Validity mode: `-m v`.\n2. Satisfiability mode (default): `-m s`.\n\n### Input\n\nTwo ways to supply the propositional formula exist, with the `-c` switch method\ntaking precedence:\n\n1. CLI argument switch `-c \u003cinput_string\u003e`\n2. IO redirection\n\n#### Command-line String\n\nUsing the `-c \u003cinput_string\u003e`\n\n```bash\n$ cargo run -c \"(a^b)\"\n```\n\n#### IO Redirection\n\nAlternatively, redirect the standard input `stdin` to the solver to supply the\npropositional formula.\n\n```bash\n$ cat input.txt \u003e cargo run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjieyouxu%2Fpropositional-tableau-solver-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjieyouxu%2Fpropositional-tableau-solver-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjieyouxu%2Fpropositional-tableau-solver-rs/lists"}