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 at crates/formality-rust/src/prove/prove/prove/is_local.rs:201

Signature:

is_local_trait_ref(_decls: Program, env: Env, assumptions: Wcs, goal: TraitRef,) => Constraints

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
2116(if decls.is_local_trait_id(&goal.trait_id))
──────── ("local trait")
213109(is_local_trait_ref(decls, env, _assumptions, goal) => Constraints::none(env))
local parameter
LineCoverageSource
218(i in 0 .. goal.parameters.len())
2196(is_local_parameter(decls, env, assumptions, &goal.parameters[*i]) => c1)
222N/A(let assumptions = c1.substitution().apply(assumptions))
223N/A(let goal = c1.substitution().apply(goal))
2241(for_all(decls, env, assumptions, &goal.parameters[..*i], &is_not_downstream) => c2)
──────── ("local parameter")
2269(is_local_trait_ref(decls, env, assumptions, goal) => c1.seq(c2))