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

JSON interaction produces fully qualified terms #5775

Closed
isovector opened this issue Feb 4, 2022 · 1 comment · Fixed by #5776
Closed

JSON interaction produces fully qualified terms #5775

isovector opened this issue Feb 4, 2022 · 1 comment · Fixed by #5776
Assignees
Milestone

Comments

@isovector
Copy link
Contributor

Consider the following interaction via --interaction:

Agda2> IOTCM "/home/sandy/prj/test/src/BialgebraSorting.agda" None Direct (Cmd_load "/home/sandy/prj/test/src/BialgebraSorting.agda" [])

(agda2-info-action "*All Goals*" "?0\n  : map In (map (fold (map In)) (inᵒ x)) ≡ fold (map In) (In (inᵒ x))\n?1 : inᵒ x ≡ map In (map (fold (map In)) (inᵒ x))\n" nil)

vs --interaction-json:

JSON> IOTCM "/home/sandy/prj/test/src/BialgebraSorting.agda" None Direct (Cmd_load "/home/sandy/prj/test/src/BialgebraSorting.agda" [])

{"kind":"DisplayInfo","info":{"visibleGoals":[{"constraintObj":{"range":[{"start":{"line":58,"pos":1453,"col":8},"end":{"line":58,"pos":1454,"col":9}}],"id":0},"kind":"OfType","type":"BialgebraSorting.Example.map BialgebraSorting.Example.In\n(BialgebraSorting.Example.map\n (BialgebraSorting.Example.fold\n  (BialgebraSorting.Example.map BialgebraSorting.Example.In))\n (BialgebraSorting.Example.inᵒ x))\n≡\nBialgebraSorting.Example.fold\n(BialgebraSorting.Example.map BialgebraSorting.Example.In)\n(BialgebraSorting.Example.In (BialgebraSorting.Example.inᵒ x))"},{"constraintObj":{"range":[{"start":{"line":56,"pos":1411,"col":8},"end":{"line":56,"pos":1412,"col":9}}],"id":1},"kind":"OfType","type":"BialgebraSorting.Example.inᵒ x ≡\nBialgebraSorting.Example.map BialgebraSorting.Example.In\n(BialgebraSorting.Example.map\n (BialgebraSorting.Example.fold\n  (BialgebraSorting.Example.map BialgebraSorting.Example.In))\n (BialgebraSorting.Example.inᵒ x))"}],"kind":"AllGoalsWarnings","warnings":[],"invisibleGoals":[],"errors":[]}}

The resulting goals are very different:

?0
  : map In (map (fold (map In)) (inᵒ x)) ≡ fold (map In) (In (inᵒ x))
?1 : inᵒ x ≡ map In (map (fold (map In)) (inᵒ x))

vs

?0 : BialgebraSorting.Example.map BialgebraSorting.Example.In
     (BialgebraSorting.Example.map
      (BialgebraSorting.Example.fold
       (BialgebraSorting.Example.map BialgebraSorting.Example.In))
      (BialgebraSorting.Example.inᵒ x))
     ≡
     BialgebraSorting.Example.fold
     (BialgebraSorting.Example.map BialgebraSorting.Example.In)
     (BialgebraSorting.Example.In (BialgebraSorting.Example.inᵒ x))
?1 : BialgebraSorting.Example.inᵒ x ≡
     BialgebraSorting.Example.map BialgebraSorting.Example.In
     (BialgebraSorting.Example.map
      (BialgebraSorting.Example.fold
       (BialgebraSorting.Example.map BialgebraSorting.Example.In))
      (BialgebraSorting.Example.inᵒ x))
@isovector
Copy link
Contributor Author

isovector commented Feb 4, 2022

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

Successfully merging a pull request may close this issue.

2 participants