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 eq_rigid_to_variable

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

#[test]
fn eq_rigid_to_variable() {
    test_prove(decls(), term("exists<X, Y> {} => {Vec<Y> = X}")).assert_ok(expect!["{Constraints { env: Env { variables: [?ty_3, ?ty_1, ?ty_2], bias: Soundness, pending: [], allow_pending_outlives: false }, known_true: true, substitution: {?ty_1 => Vec<?ty_3>, ?ty_2 => ?ty_3} }}"]);
}

Rules proved (7)

Premises failed (0)

This test records no negative coverage.

Proof trees

Proof tree