{"id":20605995,"url":"https://github.com/totbwf/pine","last_synced_at":"2026-04-17T23:03:38.672Z","repository":{"id":87348691,"uuid":"111653164","full_name":"TOTBWF/pine","owner":"TOTBWF","description":"A small, dependently typed language","archived":false,"fork":false,"pushed_at":"2018-02-19T17:33:01.000Z","size":899,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T02:35:07.884Z","etag":null,"topics":["dependent-types","interpreter","language","proof-assistant","repl"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TOTBWF.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}},"created_at":"2017-11-22T07:54:40.000Z","updated_at":"2017-12-02T01:21:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"29535d22-475a-42ef-a5b6-58f684f38820","html_url":"https://github.com/TOTBWF/pine","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/TOTBWF%2Fpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOTBWF%2Fpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOTBWF%2Fpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOTBWF%2Fpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TOTBWF","download_url":"https://codeload.github.com/TOTBWF/pine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250926,"owners_count":20096897,"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":["dependent-types","interpreter","language","proof-assistant","repl"],"created_at":"2024-11-16T09:31:58.594Z","updated_at":"2026-04-17T23:03:38.497Z","avatar_url":"https://github.com/TOTBWF.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pine\nPine is a small, dependently typed language. It is meant to be used as the basis for an interactive\nproof assistant.\n\n# Usage\n```\nTop Level Commands:\n:quit                         Quits\n:help                         Prints this message\n:context                      Prints the Current Set Of Parameters and Definitions\n\u003cvar\u003e :: \u003cexpr\u003e                Declares a variable \u003cvar\u003e to be of type \u003cexpr\u003e\n\u003cvar\u003e := \u003cexpr\u003e               Defines a variable \u003cvar\u003e to be \u003cexpr\u003e\n:type \u003cexpr\u003e                 Checks the type of an expression\n:eval \u003cexpr\u003e                  Evaluates an \u003cexpr\u003e\n```\n\n# Samples\nAddition of Natural Numbers \n```\ninductive Nat :: Type 1 := Z :: Nat | S :: Nat -\u003e Nat\nnatRec :: forall (m :: Nat -\u003e Type 1), m Z -\u003e (forall (l :: Nat), m l -\u003e m (S l)) -\u003e (forall (k :: Nat), m k)\nlet plus := natRec (fun (n :: Nat) =\u003e Nat -\u003e Nat) (fun (n :: Nat) =\u003e n) (fun (k :: Nat) (rec :: Nat -\u003e Nat) (n :: Nat) =\u003e S (rec n)) \n```\n\nLength-Indexed vectors\n```\ninductive Vect (a :: Type 1) (n :: Nat) :: Type 1 := vnil :: forall a :: Type 1, Vect a z | vcons :: forall a :: Type 1, forall k :: Nat, a -\u003e Vect a k -\u003e Vect a (s k)\n```\n\nDependent Pairs\n```\ninductive DPair (a :: Type 1) (p :: a -\u003e Type 1) := mkPair :: forall a :: Type 1, forall p :: (a -\u003e Type 1), forall x :: a, forall pf :: p x, DPair a p\n```\n\n# Building\n```\nstack build\nstack exec pine\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotbwf%2Fpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotbwf%2Fpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotbwf%2Fpine/lists"}