{"id":16312446,"url":"https://github.com/kiranandcode/othudd","last_synced_at":"2025-04-22T11:53:27.100Z","repository":{"id":112326562,"uuid":"219746543","full_name":"kiranandcode/othudd","owner":"kiranandcode","description":"OCaml Theorem driven development - Tests are for losers.","archived":false,"fork":false,"pushed_at":"2019-11-06T13:55:13.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T14:25:06.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Coq","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/kiranandcode.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":"2019-11-05T13:03:27.000Z","updated_at":"2021-03-13T17:08:03.000Z","dependencies_parsed_at":"2023-05-12T23:45:15.274Z","dependency_job_id":null,"html_url":"https://github.com/kiranandcode/othudd","commit_stats":null,"previous_names":["kiranandcode/othudd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fothudd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fothudd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fothudd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fothudd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiranandcode","download_url":"https://codeload.github.com/kiranandcode/othudd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237800,"owners_count":21397399,"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-10-10T21:48:07.062Z","updated_at":"2025-04-22T11:53:27.078Z","avatar_url":"https://github.com/kiranandcode.png","language":"Coq","readme":"# OThudd - Ocaml Theorem Driven Development\nTemplate for software development workflow using theorems instead of tests.\n\n\u003cTODO add synopsis\u003e\n\n## Requirements\n - Coq - 8.9\n - Ssreflect - 1.9\n - Ocaml\n - Dune\n - Core\n\n## Setup\n1. Clone this repository\n\n```\ngit clone \u003csite-name\u003e/thudd.git\n```\n\n2. Edit dune file to name project to liking.\n\n3. Run make\n\n```\nmake\n```\n\n4. Verify it works with\n\n```\nmake run\n```\n\n## Development Workflow\n\nSee `lib/examplecoq.ml`,`lib/examplecoqinst.ml` for concrete examples of the following.\n\n1. For experimental library stuff, build it first in `src/` and figure out a good abstract interface for the core logic.\n2. Construct an abstract version of this interface in `lib/` in Coq as a Module Type, capturing any pre/postconditions as axioms of the module type.\n3. Implement and prove core logic given the preconditions/postconditions in abstract form,  taking a module conforming to the type specified in 2. as a parameter.\n4. At the end of the file add `Extract \"\u003cfile-name\u003e\" \u003cabstract-module-name\u003e`.\n5. Run `make` to build an ocaml version of the code.\n6. Define a concrete Ocaml module in the `lib/` directory that imports the constructed abstract core logic and instantiates it with a concrete type. \n7. Use verified module in `src/` and repeat.\n\nWill add more if more comes up\n\n## Note: Updates\n If you are reading this from micro$oft's github, then be advised that\n updates will be first pushed to the version hosted on Gitlab, and\n only then, maybe will they be pushed to micro$oft's github.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiranandcode%2Fothudd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiranandcode%2Fothudd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiranandcode%2Fothudd/lists"}