You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test:: (a->b->b) ->b-> [a] ->b
test _ b []= b
test f_b b (a : l_a4) = f_b a $ test f_b b _
Wingman wants to fill this hole with a : l_a4, since it uses more variables from the hypothesis. But it doesn't pay attention to the expression context, where it could learn that a has already been used.
This is not hard to fix --- subtract used-in-context variables from syn_used_vals before scoring.
The text was updated successfully, but these errors were encountered:
Thinking further about this, we can use the provenance of a term to calculate its "specificity." If the user has gone through all of this work to get a specific variable in scope, which happens to have the same type as one more widely available, then it's probable that we should use the more specific one. At least for non-top holes.
Wingman wants to fill this hole with
a : l_a4
, since it uses more variables from the hypothesis. But it doesn't pay attention to the expression context, where it could learn thata
has already been used.This is not hard to fix --- subtract used-in-context variables from
syn_used_vals
before scoring.The text was updated successfully, but these errors were encountered: