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

Positive coverage: is_local_parameter / existential variable

existential variable
LineCoverageSource
──────── ("existential variable")
3161(is_local_parameter(_decls, env, _assumptions, TyData::Variable(Variable::ExistentialVar(_))) => Constraints::none(env).ambiguous())

1 test exercised this rule:


Source location: crates/formality-rust/src/prove/prove/test/is_local.rs:26

#[test]
fn test_exists_not_local() {
    test_prove(
        Program::empty(),
        term("exists<T> {} => {@IsLocal(Debug(T))}"),
    )
    .assert_ok(expect!["{Constraints { env: Env { variables: [?ty_1], bias: Soundness, pending: [], allow_pending_outlives: false }, known_true: false, substitution: {} }}"])
}
Proof tree