Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutter icons for recursive calls + graphical tools for debugging termination problems #564

Open
sxhya opened this issue Oct 16, 2024 · 3 comments

Comments

@sxhya
Copy link
Collaborator

sxhya commented Oct 16, 2024

Simple recursive calls of a definition/theorem should be marked with a "recursive call" icon:

image

More complicated recursive calls (case of mutual recursion) should be marked with a special "mutual recursion" icon (which is nonexistent but should be drawn by a graphics designer). It should look like something like this:
image

When hovering over a recursive call icon the following information should appear:

  • link to a documentation page about termination checking in Arend (TBD)

  • a baloon should appear in which the FOETUS CallMatrix of a call should be displayed in a graphical form: a small matrix whose cells have colors ('<' sign should correspond to a green cell, a "=" sign should correspond to a yellow cell, ? should correspond to no coloring). It makes sense to draw only nontrivial entries of the matrix (omit rows/columns consisting solely of '?' sign). Matrices should have row/column labels corresponding to parameters/arguments of the call.

  • If there is a complicated mutual recursion Show recursion diagram link should be provided in the baloon. Clicking that link should open the Springy diagram graphically depicting whole RecursiveBehavior class as a graph. Vertices of this graph are functions and arrows correspond to calls (call matrices or their composites).

@ice1000
Copy link
Collaborator

ice1000 commented Oct 17, 2024

Can we have the JetBrains UI Designer to make an icon like this? I really want to see one

@ice1000
Copy link
Collaborator

ice1000 commented Oct 17, 2024

JetBrains UI Designer

By that I mean the employees, not the plugin

@sxhya
Copy link
Collaborator Author

sxhya commented Oct 17, 2024

Can we have the JetBrains UI Designer to make an icon like this? I really want to see one

Yes, of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants