Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    $\begingroup$ I think the other half of the answer is that Agsy doesn't have any way to deal with the variables it wants to use not being in scope. The solution is to bring them into scope via either the s<s constructors' implicit arguments or by un-dotting the dot patterns and filling in the _s. $\endgroup$
    – James Wood
    Commented Mar 15 at 9:54
  • $\begingroup$ @JamesWood I think the implicits are introduced in the pattern s<s {m} {n} m<n instead of the prior dotted patterns, but yeah you can also undot them $\endgroup$
    – ice1000
    Commented Mar 15 at 15:32
  • 1
    $\begingroup$ In a sense, dot patterns can never introduce variables, but they sometimes are the most convenient or clearest place to introduce variables (after undotting). $\endgroup$
    – James Wood
    Commented Mar 15 at 16:15