{"id":15030657,"url":"https://github.com/rust-lang/a-mir-formality","last_synced_at":"2025-05-15T06:05:32.823Z","repository":{"id":37019140,"uuid":"456167885","full_name":"rust-lang/a-mir-formality","owner":"rust-lang","description":"a model of MIR and the Rust type/trait system","archived":false,"fork":false,"pushed_at":"2025-03-17T19:30:33.000Z","size":2867,"stargazers_count":299,"open_issues_count":42,"forks_count":37,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-05-15T00:05:38.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-lang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null}},"created_at":"2022-02-06T14:04:53.000Z","updated_at":"2025-05-05T12:57:43.000Z","dependencies_parsed_at":"2024-06-17T23:44:48.791Z","dependency_job_id":"51b892de-3282-40ca-b227-c9b1e9b584ec","html_url":"https://github.com/rust-lang/a-mir-formality","commit_stats":null,"previous_names":["rust-lang/a-mir-formality"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Fa-mir-formality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Fa-mir-formality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Fa-mir-formality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-lang%2Fa-mir-formality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-lang","download_url":"https://codeload.github.com/rust-lang/a-mir-formality/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283339,"owners_count":22045140,"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-09-24T20:13:58.407Z","updated_at":"2025-05-15T06:05:32.789Z","avatar_url":"https://github.com/rust-lang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# a-mir-formality\n\nThis repository is an early-stage experimental project that aims to be a complete, authoritative formal model of the [Rust MIR](https://rustc-dev-guide.rust-lang.org/mir/index.html).\nPresuming these experiments bear fruit, the intention is to bring this model into Rust as an RFC\nand develop it as an official part of the language definition.\n\n## Quickstart guide\n\nLike any Rust project:\n\n* Clone\n* `cargo test --all`\n\n## Layers of formality\n\nFormality is structured into several layers. These layers are meant to also map\nfairly closely onto chalk and the eventual Rust trait solver implementation.\nIdeally, one should be able to map back and forth between formality and the code\nwith ease.\n\n* **formality-check**: Defines the top-level routines for checking Rust programs.\n  `check_all_crates` is effectively the `main`, so it's a good place to start reading.\n* **formality-core**: Defines logging macros.\n* **formality-macros**: Defines procedural macros like `#[term]` as well as various derives.\n  These are used to generate the boilerplate code for parsing, pretty printing, folding, etc.\n* **formality-prove**: Defines the rules for proving goals (e.g., is this trait implemented?)\n* **formality-rust:** This is the \"Rust declarations\" layer, defining Rust\n  \"top-level items\" and their semantics. This includes crates, structs, traits,\n  impls, but excludes function bodies.\n* **formality-types:** This is the \"types\" layer, defining Rust types and\n  functions for equating/relating them. The representation is meant to cover\n  all Rust types, but is optimized for extracting their \"essential properties\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang%2Fa-mir-formality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-lang%2Fa-mir-formality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-lang%2Fa-mir-formality/lists"}