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

Judgment is_local_trait_ref

judgment_fn! {
    pub fn is_local_trait_ref(
        _decls: Program,
        env: Env,
        assumptions: Predicates,
        goal: TraitRef,
    ) => Constraints {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/prove/is_local.rs:206

The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.

local trait
LineCoverageSource
21612(if decls.is_local_trait_id(&goal.trait_id))
──────── ("local trait")
218205(is_local_trait_ref(decls, env, _assumptions, goal) => Constraints::none(env))
local parameter
LineCoverageSource
223✗(i in 0 .. goal.parameters.len())
22412(is_local_parameter(decls, env, assumptions, &goal.parameters[*i]) => c1)
227N/A(let assumptions = c1.substitution().apply(assumptions))
228N/A(let goal = c1.substitution().apply(goal))
2294(for_all(decls, env, assumptions, &goal.parameters[..*i], &is_not_downstream) => c2)
──────── ("local parameter")
23114(is_local_trait_ref(decls, env, assumptions, goal) => c1.seq(c2))

How to read this page