{"id":22202884,"url":"https://github.com/logsem/mitten_preorder","last_synced_at":"2025-07-27T05:31:57.019Z","repository":{"id":37744670,"uuid":"450414208","full_name":"logsem/mitten_preorder","owner":"logsem","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-17T12:17:39.000Z","size":99,"stargazers_count":26,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-08-12T19:57:02.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logsem.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}},"created_at":"2022-01-21T08:37:40.000Z","updated_at":"2024-03-20T05:30:36.000Z","dependencies_parsed_at":"2023-01-19T18:17:01.174Z","dependency_job_id":null,"html_url":"https://github.com/logsem/mitten_preorder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fmitten_preorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fmitten_preorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fmitten_preorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fmitten_preorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logsem","download_url":"https://codeload.github.com/logsem/mitten_preorder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227763357,"owners_count":17816170,"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-12-02T16:38:40.627Z","updated_at":"2024-12-02T16:38:41.279Z","avatar_url":"https://github.com/logsem.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"## posetal-mitten\n\nAn implementation of MTT with modal dependent products (pi), modal types, dependent sums (sigma),\nnatural numbers, and a cumulative hierarchy. This implementation correctly handles eta for both pi\nand sigma.\n\nThis implementation only permits pre-order mode theories so that there is at most one 2-cell between\nany pair of modalities.\n\nThis implementation has also been extended to include a type checker based on Coquand's semantic\ntype checker. In order to interact with the normalizer, therefore, one can write a file containing a\nlist of definitions and commands to normalize various terms.\n\n## Prerequisites\n\nTested under ocaml 4.07.1 and dune 2.8.5. Sexplib, menhir, ppx_compare and cmdliner libraries need\nto be installed.\n\n## How to use it\n\nBuilding mitten with `make build` or `dune build`. Execute mitten with `dune exec mitten\nPATH/TO/FILE`. If there is no output, everything type checked. The commands `normalize` and\n`normalize def` print the normalized term.\n\n## For example:\n\n```\nlet plus : (x : {idm | Nat}) -\u003e (y : {idm | Nat}) -\u003e Nat @ s =\n    fun m -\u003e\n    fun n -\u003e\n    rec n at x -\u003e Nat with\n    | zero -\u003e m\n    | suc _, p -\u003e suc p\n\nnormalize plus {idm, 2} {idm, 2} at Nat @ s\n\nlet fib : (x : {idm | Nat}) -\u003e Nat @ s =\n    fun n -\u003e\n    let worker : Nat * Nat =\n      rec n at _ -\u003e Nat * Nat with\n      | zero -\u003e pair (1, 0)\n      | suc _, p -\u003e pair (plus {idm, (fst p)} {idm, (snd p)}, fst p) in\n    snd worker\n\nnormalize fib {idm, 25} at Nat @ s\n```\n\nA list of other examples may be found in `test/`.\n\nThe implementation is derived from [nbe-for-mltt](https://github.com/jozefg/nbe-for-mltt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogsem%2Fmitten_preorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogsem%2Fmitten_preorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogsem%2Fmitten_preorder/lists"}