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

Signature:

prove_sub(_decls: Program, env: Env, assumptions: Wcs, a: Parameter, b: 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.

normalize-l
LineCoverageSource
285(prove_normalize(decls, env, assumptions, x) => Constrained(y, c))
29(prove_after(decls, c, assumptions, Relation::sub(y, z)) => c)
──────── ("normalize-l")
3116(prove_sub(decls, env, assumptions, x, z) => c)
normalize-r
LineCoverageSource
355(prove_normalize(decls, env, assumptions, y) => Constrained(z, c))
36(prove_after(decls, c, assumptions, Relation::sub(x, &z)) => c)
──────── ("normalize-r")
382(prove_sub(decls, env, assumptions, x, y) => c)
rigid
LineCoverageSource
42N/A(let RigidTy { name: a_name, parameters: a_parameters } = a)
43N/A(let RigidTy { name: b_name, parameters: b_parameters } = b)
44(if a_name == b_name)
45(prove(decls, env, assumptions, Wcs::all_sub(a_parameters, b_parameters)) => c)
──────── ("rigid")
4719(prove_sub(decls, env, assumptions, TyData::RigidTy(a), TyData::RigidTy(b)) => c)
lifetime => outlives
LineCoverageSource
51(prove_outlives(decls, env, assumptions, a, b) => c)
──────── ("lifetime => outlives")
5318(prove_sub(decls, env, assumptions, a: Lt, b: Lt) => c)