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.

Seemingly unsolvable level equation

See original GitHub issue

Aya version: latest build (e4948a9) from GitHub Actions

Code:

struct TypeStruct : Set
  | type : Set

def setType (type' : Set) (ts : TypeStruct) : TypeStruct
  => new TypeStruct { | type => type' }

Got error:

In file code/test.aya:5:9 ->

  3 | 
  4 | def setType (type' : Set) (ts : TypeStruct) : TypeStruct
  5 |   => new TypeStruct { | type => type' }
           ^--------------------------------^ TypeStruct.u <= TypeStruct.u

Error: Cannot solve some level equation(s)

There seems no way to solve this error.

PS. Will there be a syntax for struct updating like in Idris? PS2. Will there be partial implementation like in Arend? PS3. Do my issues feel spamming?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
re-xyrcommented, Aug 26, 2021

Wait, you’re Problem233? I remember seeing you in osu group chats when I was using the name t532. oh god

0reactions
ice1000commented, Sep 5, 2021

Checkout the latest version. The level error is reported beforehand now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Consistent but apparently unsolvable system of equations
I have started learning linear algebra. One of the exercise problems is as below. Determine the value(s) of h such that the matrix...
Read more >
Mathematician discusses solving a seemingly unsolvable ...
Erik Panzer from the University of Oxford have solved a mathematical equation which was considered to be unsolvable.
Read more >
The Unsolvable Problem - Scientific American
Kurt Gödel famously discovered in the 1930s that some statements are impossible to prove true or false—they will always be “undecidable.”.
Read more >
10 Math Equations That Have Never Been Solved
Some of these equations are even based on elementary school concepts and are easily understandable - just unsolvable.
Read more >
6 Deceptively Simple Maths Problems That No One Can Solve
We all know that maths is really hard.
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