{"id":19864177,"url":"https://github.com/sr-lab/coq-number-rendering","last_synced_at":"2025-10-09T18:37:52.597Z","repository":{"id":75386257,"uuid":"149493277","full_name":"sr-lab/coq-number-rendering","owner":"sr-lab","description":"Coq number rendering library.","archived":false,"fork":false,"pushed_at":"2019-07-21T13:25:27.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T00:29:30.906Z","etag":null,"topics":["casting","coq","numbers-to-text","stringify","text-to-number"],"latest_commit_sha":null,"homepage":null,"language":"Coq","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/sr-lab.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":"2018-09-19T18:15:05.000Z","updated_at":"2019-07-21T13:25:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ade8add-467c-4c60-8437-77d7283656c3","html_url":"https://github.com/sr-lab/coq-number-rendering","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sr-lab/coq-number-rendering","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fcoq-number-rendering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fcoq-number-rendering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fcoq-number-rendering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fcoq-number-rendering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr-lab","download_url":"https://codeload.github.com/sr-lab/coq-number-rendering/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fcoq-number-rendering/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001895,"owners_count":26083226,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["casting","coq","numbers-to-text","stringify","text-to-number"],"created_at":"2024-11-12T15:17:42.969Z","updated_at":"2025-10-09T18:37:52.561Z","avatar_url":"https://github.com/sr-lab.png","language":"Coq","readme":"# Coq Number Renderer\nCoq number rendering library.\n\n## Overview\nTurning numbers into strings and vice-versa was a common problem in my Coq projects, so I built this to save me coding this up about a million times. Not every numeric data type is renderable as a string (as far as I know), so more specifically this library offers:\n\n* `z_to_string`: Converts a binary number in Z to a string.\n* `q_to_string`: Converts a rational number in Q to a string.\n* `z_of_string`: Converts a string to a whole number or 0 if it does not make sense.\n* `n_of_string`: Converts a string to a binary natural number or 0 if it does not make sense.\n* `pos_of_string`: Converts a string to a positive number or 1 if it does not make sense.\n* `nat_of_string`: Converts a string to a natural number or 0 if it does not make sense.\n\n## Limitations\nThis library does not have any accompanying proofs. This may be addresed in the future. Not every numeric data type can be rendered as a string (numbers in R are a prime exmaple of this), but the methods implemented here are not exhaustive either. This library will expand as needed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-lab%2Fcoq-number-rendering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr-lab%2Fcoq-number-rendering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-lab%2Fcoq-number-rendering/lists"}