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

Signature:

is_local_parameter(_decls: Program, env: Env, assumptions: Wcs, goal: Parameter,) => 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 parameter
LineCoverageSource
2916(prove_normalize(decls, env, assumptions, goal) => Constrained(p, c1))
292N/A(let assumptions = c1.substitution().apply(assumptions))
2932(is_local_parameter(decls, c1.env(), assumptions, p) => c2)
──────── ("local parameter")
2951(is_local_parameter(decls, env, assumptions, goal) => c1.seq(c2))
fundamental rigid type
LineCoverageSource
3004(if is_fundamental(decls, name))
301(for_all(decls, env, assumptions, parameters, &is_local_parameter) => c)
──────── ("fundamental rigid type")
303(is_local_parameter(decls, env, assumptions, RigidTy { name, parameters }) => c)
local rigid type
LineCoverageSource
3083(if decls.is_local_adt_id(a))
──────── ("local rigid type")
3108(is_local_parameter(decls, env, _assumptions, RigidTy { name: RigidName::AdtId(a), parameters: _ }) => Constraints::none(env))
existential variable
LineCoverageSource
──────── ("existential variable")
3161(is_local_parameter(_decls, env, _assumptions, TyData::Variable(Variable::ExistentialVar(_))) => Constraints::none(env).ambiguous())