Documentation

Aesop.Tree.Data.ForwardRuleMatches

Sets of complete matches for norm/safe/unsafe rules.

Equations

Empty ForwardRuleMatches.

Equations

Add a complete match.

Equations
  • One or more equations did not get rendered due to their size.

Erase a complete match.

Equations
  • One or more equations did not get rendered due to their size.

Erase matches containing any of the hypotheses hs from ms.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Aesop.ForwardRuleMatches.update (newMatches : Array ForwardRuleMatch) (erasedHyps : Std.HashSet Lean.FVarId) (consumedForwardRuleMatch? : Option ForwardRuleMatch) (forwardRuleMatches : ForwardRuleMatches) :

Update the ForwardRuleMatches of a goal so that they are suitable for a child goal. newMatches are new forward rule matches obtained by updating the old goal's ForwardState with new hypotheses from the new goal. erasedHyps are the hypotheses from the old goal that no longer appear in the new goal. consumedForwardRuleMatch? is a forward rule match that was applied as a rule to transform the old goal into the new goal.

Equations
  • One or more equations did not get rendered due to their size.
def Aesop.ForwardRuleMatches.foldNormRules {σ : Type u_1} (ms : ForwardRuleMatches) (f : σNormRuleσ) (init : σ) :
σ

Fold over the norm rules corresponding to the norm rule matches.

Equations

Get the norm rules corresponding to the norm rule matches.

Equations
def Aesop.ForwardRuleMatches.foldSafeRules {σ : Type u_1} (ms : ForwardRuleMatches) (f : σSafeRuleσ) (init : σ) :
σ

Fold over the safe rules corresponding to the safe rule matches.

Equations

Get the safe rules corresponding to the safe rule matches.

Equations
def Aesop.ForwardRuleMatches.foldUnsafeRules {σ : Type u_1} (ms : ForwardRuleMatches) (f : σUnsafeRuleσ) (init : σ) :
σ

Fold over the unsafe rules corresponding to the unsafe rule matches.

Equations

Get the unsafe rules corresponding to the unsafe rule matches.

Equations

O(n) Number of matches in ms.

Equations
  • One or more equations did not get rendered due to their size.