The priority of a forward rule.
- normSafe
(n : Int)
: ForwardRulePriority
If the rule is a norm or safe rule, its priority is an integer.
- unsafe
(p : Percent)
: ForwardRulePriority
If the rule is an unsafe rule, its priority is a percentage representing the rule's success probability.
Instances For
Instances For
If a ForwardRulePriority contains a penalty, extract it.
Instances For
If a ForwardRulePriority contains a success probability, extract it.
Instances For
Compare two rule priorities. Less means higher priority ('better'). Norm/safe rules have higher priority than unsafe rules. Among norm/safe rules, lower penalty is better. Among unsafe rules, higher percentage is better.
Instances For
A forward rule.
- slotClusters : Array (Array Slot)
- name : RuleName
The rule's name. Should be unique among all rules in a rule set.
- term : RuleTerm
The theorem from which this rule is derived.
- prio : ForwardRulePriority
The rule's priority.
Instances For
Is this rule a destruct rule (i.e., should we clear matched hyps)?