arend-lib icon indicating copy to clipboard operation
arend-lib copied to clipboard

Compute the context in the equation meta only once

Open valis opened this issue 4 years ago • 0 comments

An expression of the form equation a b c d has 3 omitted proofs (namely, a = b, b = c, and c = d). The context will be computed for each of these proofs separately. We can optimize this by computing the context only once.

If some proof has a hint that modifies the context (e.g., equation a {using p} b c d or equation a {hiding p} b c), then we cannot use the common context in general. We probably still can reuse it if the hind only adds something to the context (as in the first example).

valis avatar Oct 05 '20 21:10 valis