{"id":18584990,"url":"https://github.com/bor0/hoare-hask","last_synced_at":"2026-05-04T07:33:09.487Z","repository":{"id":145916306,"uuid":"332275796","full_name":"bor0/hoare-hask","owner":"bor0","description":"Paper: Tutorial implementation of Hoare logic in Haskell","archived":false,"fork":false,"pushed_at":"2021-12-28T06:52:19.000Z","size":892,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T05:38:32.761Z","etag":null,"topics":["haskell","hoare-logic","latex"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/2101.11320","language":"TeX","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/bor0.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":"2021-01-23T18:05:49.000Z","updated_at":"2021-12-26T19:59:25.000Z","dependencies_parsed_at":"2023-05-02T16:01:09.920Z","dependency_job_id":null,"html_url":"https://github.com/bor0/hoare-hask","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bor0/hoare-hask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bor0%2Fhoare-hask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bor0%2Fhoare-hask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bor0%2Fhoare-hask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bor0%2Fhoare-hask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bor0","download_url":"https://codeload.github.com/bor0/hoare-hask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bor0%2Fhoare-hask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32599062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["haskell","hoare-logic","latex"],"created_at":"2024-11-07T00:29:43.878Z","updated_at":"2026-05-04T07:33:09.461Z","avatar_url":"https://github.com/bor0.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tutorial implementation of Hoare logic in Haskell\n\nThis is the source code repository for my paper `Tutorial implementation of Hoare logic in Haskell`. In the `src` folder you will find:\n\n- `Common.hs`, `PrettyPrinter.hs` - Various utility functions\n- `Gentzen.hs` - Implementation of Propositional calculus\n- `TNT.hs` - Implementation of Typographical Number Theory\n- `Hoare.hs` - Implementation of Hoare logic (on top of Propositional calculus + Number theory)\n- `Imp.hs` - Implementation of a simple imperative programming language (the commands correspond to the rules of Hoare logic)\n\nThe folder `paper` contains the source code of the paper. The built paper can be downloaded from https://arxiv.org/abs/2101.11320.\n\nSee it in action on my mobile phone on [this Tweet](https://twitter.com/BSitnikovski/status/1386738126677291012)\n\n## Prerequisites\n\nMake sure you have the [Haskell Tool Stack](https://haskellstack.org/) installed, or Hugs.\n\n## Running the examples\n\nCheck the files in the `examples` folder - each implementation of the system has a corresponding example file.\n\nFor instance, to run the proof for the `countToB` program defined in the paper, execute the following commands:\n\n- `stack repl examples/ExampleHoare.hs --ghci-options -iexamples --ghci-options -isrc`\n- Once in the REPL mode, evaluate `putStrLn $ pr proof`\n\nFor hugs, while in the `src` folder, run `hugs -F\"cpphs-hugs --noline -D__HUGS__\" ../examples/ExampleHoare.hs`\n\nCopyright 2021, Boro Sitnikovski. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbor0%2Fhoare-hask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbor0%2Fhoare-hask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbor0%2Fhoare-hask/lists"}