Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Test direct_cycle

Source location: crates/formality-rust/src/prove/test/occurs_check.rs:24

#[test]
fn direct_cycle() {
    test_prove(decls(), term("exists<A> {} => {A = Vec<A>}")).assert_err(expect![[r#"
        failed at (proven_set.rs) because
          `?ty_0` occurs in `Vec<?ty_0>`

        crates/formality-rust/src/prove/prove_normalize.rs:18:1: no applicable rules for prove_normalize { p: ?ty_0, assumptions: {}, env: Env { variables: [?ty_0], bias: Soundness, pending: [], allow_pending_outlives: false } }

        crates/formality-rust/src/prove/prove_normalize.rs:18:1: no applicable rules for prove_normalize { p: Vec<?ty_0>, assumptions: {}, env: Env { variables: [?ty_0], bias: Soundness, pending: [], allow_pending_outlives: false } }"#]]);
}

Rules proved (0)

This test records no positive coverage.

Premises failed (6)

The last column links to the premise’s page when the judgment view counts this failure against that premise. It does not when the premise is read as infallible, or when the failure was blamed inside a multi-line premise that carries no record on its own first line.

JudgmentRulePremiseAll tests of this premise
prove_eqsymmetricprove_eq(decls, env, assumptions, r, l) => env_c (line 38)15 tests
prove_eqexistentialprove_existential_var_eq(decls, env, assumptions… (line 62)5 tests
prove_eqnormalize-lprove_normalize(decls, env, assumptions, x) => C… (line 68)15 tests
prove_existential_var_eqexistential-nonvarequate_variable(decls, env, assumptions, v, t) =… (line 95)3 tests
prove_wceqprove_eq(decls, env, assumptions, a, b) => c (line 119)15 tests
prove_wc_listsomeprove_wc(decls, env, assumptions, wc0) => c (line 26)42 tests

Proof trees

Failed proof tree