{"id":35206564,"url":"https://github.com/daniyal1249/nd-prover","last_synced_at":"2026-04-01T22:09:13.070Z","repository":{"id":306992445,"uuid":"1027390422","full_name":"daniyal1249/nd-prover","owner":"daniyal1249","description":"Natural deduction proof generator \u0026 checker","archived":false,"fork":false,"pushed_at":"2026-02-27T06:59:46.000Z","size":3168,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T12:56:39.185Z","etag":null,"topics":["fitch","fitch-proofs","logic","math","modal-logic","natural-deduction","proof-checker","prover","python","theorem-prover","theorem-proving"],"latest_commit_sha":null,"homepage":"https://ndprover.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniyal1249.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":null,"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-07-27T23:31:10.000Z","updated_at":"2026-02-27T07:30:34.000Z","dependencies_parsed_at":"2025-07-31T03:15:12.110Z","dependency_job_id":"6f6c74b2-0b1e-4f88-aa7b-e40111a369c3","html_url":"https://github.com/daniyal1249/nd-prover","commit_stats":null,"previous_names":["daniyal1249/proof-checker","daniyal1249/nd-prover"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/daniyal1249/nd-prover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniyal1249%2Fnd-prover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniyal1249%2Fnd-prover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniyal1249%2Fnd-prover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniyal1249%2Fnd-prover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniyal1249","download_url":"https://codeload.github.com/daniyal1249/nd-prover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniyal1249%2Fnd-prover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"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":["fitch","fitch-proofs","logic","math","modal-logic","natural-deduction","proof-checker","prover","python","theorem-prover","theorem-proving"],"created_at":"2025-12-29T14:30:24.654Z","updated_at":"2026-03-27T04:23:35.711Z","avatar_url":"https://github.com/daniyal1249.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ND-Prover\n\nA Fitch-style natural deduction proof generator and checker, implemented in Python.\n\nSupports propositional, first-order, and modal logics (K, T, S4, S5).\n\n![ND-Prover Demo](prover.gif)\n\nTry ND-Prover online at [ndprover.org](https://ndprover.org).\n\n## Installation\n\nND-Prover can be installed using pip:\n\n    pip install nd-prover\n\nor by directly cloning the git repository:\n\n    git clone https://github.com/daniyal1249/nd-prover.git\n\nand running the following in the cloned repo:\n\n    pip install .\n\n\n## Example Usage\n\n```\n$ nd-prover\nSelect logic (TFL, FOL, MLK, MLT, MLS4, MLS5, FOMLK, FOMLT, FOMLS4, FOMLS5): TFL\nEnter premises (separated by \",\" or \";\"), or \"NA\" if none: P -\u003e Q, P\nEnter conclusion: Q\n\n 1 │ P → Q      PR\n   │\n 2 │ P          PR\n   ├───\n\n1 - Add a new line\n2 - Begin a new subproof\n3 - End the current subproof\n4 - End the current subproof and begin a new one\n5 - Delete the last line\n\nSelect edit: 1\nEnter line: Q ; -\u003eE, 1,2\n\n 1 │ P → Q      PR\n   │\n 2 │ P          PR\n   ├───\n 3 │ Q          →E, 1,2\n\nProof complete! 🎉\n```\n\nA proof of the law of excluded middle (LEM) using ND-Prover: \n\n```\nProof of  ∴ P ∨ ¬P\n──────────────────\n\n 1 │ │ ¬(P ∨ ¬P)       AS\n   │ ├───────────      \n 2 │ │ │ P             AS\n   │ │ ├───            \n 3 │ │ │ P ∨ ¬P        ∨I, 2\n   │ │ │               \n 4 │ │ │ ⊥             ¬E, 1,3\n   │ │                 \n 5 │ │ ¬P              ¬I, 2-4\n   │ │                 \n 6 │ │ P ∨ ¬P          ∨I, 5\n   │ │                 \n 7 │ │ ⊥               ¬E, 1,6\n   │                   \n 8 │ P ∨ ¬P            IP, 1-7\n\nProof complete! 🎉\n```\n\nA proof that identity is symmetric: \n\n```\nProof of  ∴ ∀x∀y(x = y → y = x)\n───────────────────────────────\n\n 1 │ │ a = b                  AS\n   │ ├───────                 \n 2 │ │ a = a                  =I\n   │ │                        \n 3 │ │ b = a                  =E, 1,2\n   │                          \n 4 │ a = b → b = a            →I, 1-3\n   │                          \n 5 │ ∀y(a = y → y = a)        ∀I, 4\n   │                          \n 6 │ ∀x∀y(x = y → y = x)      ∀I, 5\n\nProof complete! 🎉\n```\n\nA proof in modal logic S5: \n\n```\nProof of ◇☐A ∴ ☐A\n─────────────────\n\n 1 │ ◇☐A          PR\n   ├─────         \n 2 │ ¬☐¬☐A        Def◇, 1\n   │              \n 3 │ │ ¬☐A        AS\n   │ ├─────       \n 4 │ │ │ ☐        AS\n   │ │ ├───       \n 5 │ │ │ ¬☐A      R5, 3\n   │ │            \n 6 │ │ ☐¬☐A       ☐I, 4-5\n   │ │            \n 7 │ │ ⊥          ¬E, 2,6\n   │              \n 8 │ ☐A           IP, 3-7\n\nProof complete! 🎉\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniyal1249%2Fnd-prover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniyal1249%2Fnd-prover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniyal1249%2Fnd-prover/lists"}