fic/wfcheck/mod.rs
1//! The well-formedness checks (`WellFormed.lean`, `Microkit.lean`): the
2//! hypotheses of the flattening theorem and the backends that no typing rule
3//! states.
4//!
5//! On `tast`, before the Ccfg: [`tail_rec`] (`tailRec`, which flatten needs)
6//! and [`chan_cycle`] (Wf2). After it, entered through [`wellformed`]:
7//! [`recv_head`] on the notified graph, [`guarded_choice`] on the notified
8//! and the protected term; on every graph, [`protected`] (where a `Sync`
9//! channel is received). Wf1 is not checked.
10//!
11//! A failed `tailRec` or [`protected`] is an error. The rest are warnings:
12//! a finding is a program the theorem does not cover, not a rejected one.
13
14pub mod chan_cycle;
15pub mod guarded_choice;
16pub mod protected;
17pub mod recv_head;
18pub mod tail_rec;
19pub mod wellformed;
20
21pub use chan_cycle::check_wf2;
22pub use protected::check_protected;
23pub use tail_rec::check_tail_rec;
24pub use wellformed::check_graphs;