question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unifying Owner Telescope

See original GitHub issue

For the simple data types, the owner telescopes of their constructors are trivial: the data telescope. But the indexed data types are not, the owner telescopes of their constructors depend on the bindings of each pattern. For example:

open data Vec Type Nat
  | A, zero => vnil
  | A, suc n => vcons A (Vec A n)

The owner telescope of vnil is (A : Type) (size = 1); But for vcons, it is (A : Type) (n : Nat) (size = 2).

However, we implemented this incorrectly (see CallTerm.Data#conHead, PatToTerm.java )

This should be a potential bug.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
ice1000commented, Nov 14, 2022

I spent 3 hrs debugging this and there is finally a clue. See branch xyy.

1reaction
HoshinoTentedcommented, Nov 9, 2022

Why do you think so? Did you mean I should not use conTele2?

I mean it is buggy that conHead constructs a ConHead with just DataCall#args. For example:

open data Vic (n : Nat)
| O => vnil
| S n' => vcons (Vic n')

If you want to construct a ConHead of vcons for some DataCall: Vic (S O), it should be vcons {O} instead of vcons {S O}.

PatTycker didn’t use the wrong ConHead#args, but PatClassifier (which I am not familiar with) might use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

James Webb Space Telescope - Wikipedia
The James Webb Space Telescope (JWST) is a space telescope which conducts infrared astronomy. As the largest optical telescope in space, its high...
Read more >
The world's top ten telescopes revealed - Nature
Privately owned and operated telescopes, such as Keck, can give large amounts of time to small groups of scientists aiming at the juiciest ......
Read more >
Telescope - Digital Asset Management - IgniteTech
Securely sort and store any type of digital asset, content, media or file, and share those assets locally or globally with peers, employees,...
Read more >
Exact optics: a unification of optical telescope design
Abstract. A perfect-focus telescope is one in which all rays parallel to the axis meet at a point and give equal magnification there....
Read more >
Construction of the largest telescope on Earth has begun
According to its CEO, SKA can become one of the greatest scientific achievements of mankind. Soon, more than 130 thousand antennas will be ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found