{"id":24360609,"url":"https://github.com/tchaumeny/satisfaction","last_synced_at":"2026-04-13T11:31:41.151Z","repository":{"id":271142157,"uuid":"912513589","full_name":"tchaumeny/satisfaction","owner":"tchaumeny","description":"Investigate phase transitions in k-SAT problems","archived":false,"fork":false,"pushed_at":"2025-01-05T19:54:31.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T21:50:34.141Z","etag":null,"topics":["2-sat","3-sat","computer-science","phase-transitions","sat-solver","satisfiability"],"latest_commit_sha":null,"homepage":"","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/tchaumeny.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-05T19:27:17.000Z","updated_at":"2025-01-05T20:09:19.000Z","dependencies_parsed_at":"2025-01-05T20:36:17.718Z","dependency_job_id":null,"html_url":"https://github.com/tchaumeny/satisfaction","commit_stats":null,"previous_names":["tchaumeny/satisfaction"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tchaumeny/satisfaction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchaumeny%2Fsatisfaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchaumeny%2Fsatisfaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchaumeny%2Fsatisfaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchaumeny%2Fsatisfaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tchaumeny","download_url":"https://codeload.github.com/tchaumeny/satisfaction/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchaumeny%2Fsatisfaction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["2-sat","3-sat","computer-science","phase-transitions","sat-solver","satisfiability"],"created_at":"2025-01-18T21:31:58.702Z","updated_at":"2026-04-13T11:31:41.132Z","avatar_url":"https://github.com/tchaumeny.png","language":"Rust","funding_links":[],"categories":["Unclassified"],"sub_categories":["Libraries"],"readme":"# Satisfaction\n#### A Rust tool to investigate [phase transitions](https://en.wikipedia.org/wiki/Phase_transition) in [satisfiability problems](https://en.wikipedia.org/wiki/Boolean_satisfiability_problem).\n\n**Satisfaction** combines a random generator of formulas in conjunctive normal form (*CNF*) with a custom *SAT solver* to generate plots of the share of satisfiable formulas for different values of $\\alpha$ (the ratio of *clauses* to *variables*).\n\n\u003e I can't get no satisfaction  \n\u003e 'Cause I try and I try and I try and I try  \n\u003e — \u003ccite\u003eThe Rolling Stones\u003c/cite\u003e\n\n### Examples\n\n```console\nsatisfaction -k 3 -n 50 -s 1000\n```\n\n![3-SAT phase transition](./examples/3-sat-n-50-1000-s-p-p.png)\n\nHere we see the transition, at $\\alpha_C \\approx 4.3$, for 3-SAT problems with $n = 50$ variables.\n\n```console\nsatisfaction -k 2 -n 1000 -s 1000 --alpha-start 0 --alpha-end 3 --alpha-steps 30\n```\n\n![2-SAT phase transition](./examples/2-sat-n-1000-1000-s-p-p.png)\n\nIn the case of 2-SAT, the solver algorithm is efficient and we can investigate sharper transitions like this one with $n = 1000$ variables.\n\n### Help\n\n```console\n$ satisfaction --help\n\nInvestigate phase transition in k-SAT problems\n\nUsage: satisfaction [OPTIONS]\n\nOptions:\n  -k, --k \u003cK\u003e                      The number k of literals per clause (e.g. 3 for 3-SAT) [default: 3]\n  -n, --n \u003cN\u003e                      The number n of available variables [default: 25]\n  -s, --samples \u003cSAMPLES\u003e          The number of generated samples per point (s.p.p.) [default: 100]\n      --alpha-start \u003cALPHA_START\u003e  Lower bound for values of alpha [default: 0]\n      --alpha-end \u003cALPHA_END\u003e      Upper bound for values of alpha [default: 10]\n      --alpha-steps \u003cALPHA_STEPS\u003e  Number of values for alpha [default: 100]\n      --verbose                    Verbosity (when turned on, the computed values are displayed)\n  -h, --help                       Print help\n  -V, --version                    Print version\n```\n\n### Resources\n\n* *Computing Science: Can't Get No Satisfaction*, \u003chttps://www.jstor.org/stable/27856726\u003e\n* *Phase transitions and complexity in computer science: an overview of the statistical physics approach to the random satisfiability problem*, \u003chttps://www.phys.ens.psl.eu/~cocco/Articles/a14.pdf\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchaumeny%2Fsatisfaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftchaumeny%2Fsatisfaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchaumeny%2Fsatisfaction/lists"}