Comments (4)
I'd like to assign @tsao-chi this time to investigate the issue.
from aya-dev.
error given by aya:
In file /home/user/aya-prover/base/src/test/resources/success/refparo5.aya:86:35 ->
84 | => new Event (new EventT { | agentT => Entity }) { | agent => john }
85 |
86 | def proof-john-runs : john-runs => (proof-john-runs-event, (run1, (idp john, unit)))
^-----------------------------------------------^
Error: Expected type: john-runs
Normalized: Σ (e : Event new { | agentT ⇒ Entity }) ** (_ : Σ (_ : RunImpl e.agent)
** (_ : Σ (_ : Path (λ i ⇒ Entity) e.agent john) ** (_ : Unit)))
Want: sigma type
Because we want to type a term such as: (proof-john-runs-event, (run1, (idp
john, unit)))
What are you doing?
In file /home/user/aya-prover/base/src/test/resources/success/refparo5.aya:92:35 ->
90 | => (proof-john-runs-event, (run1, (idp john, unit)))
91 |
92 | def proof-john-runs : john-runs => proof-john-runs-impl
^------------------^
Error: Expected type: john-runs
Normalized: Σ (e : Event new { | agentT ⇒ Entity }) ** (_ : Σ (_ : RunImpl e.agent)
** (_ : Σ (_ : Path (λ i ⇒ Entity) e.agent john) ** (_ : Unit)))
Actual type: Σ (e : Event new { | agentT ⇒ Entity }) (_ : Σ (_ : RunImpl john)
(_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)) ** (_ : Σ
(_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit))) ** (_ : Σ (_ : RunImpl
john) (_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)) **
(_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)))
Normalized: Σ (e : Event new { | agentT ⇒ Entity }) (_ : Σ (_ : RunImpl john)
(_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)) ** (_ : Σ
(_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit))) ** (_ : Σ (_ : RunImpl
john) (_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)) **
(_ : Σ (_ : Path (λ _ ⇒ Entity) john john) (_ : Unit) ** (_ : Unit)))
They don't match, sorry
What are you doing?
I don't know where to hunt down the issue further.
from aya-dev.
I don't know where to hunt down the issue further.
You can look at the place where the error is reported by putting a breakpoint at Reporter.report
from aya-dev.
When you see Error: Expected type: john-runs
, you can search in the codebase for Expected type:
, and you'll get some results. You can find-usages these classes and see how they're used (where are they reported), and you can debug. You can tyck these code in your head to see if they should or should not tyck, and if the compiler does something different, one of you must be wrong. So you can fix the compiler or change your mind. This is how bug-fixing in Aya works.
from aya-dev.
Related Issues (20)
- Incorrect error information for boundary check. HOT 7
- Sigma projection check of `Prop` is incorrect HOT 2
- Support projection out of conCalls HOT 3
- Anonymous examples HOT 2
- NPE
- Predicativity of extension types (obviously) for terck HOT 3
- Literate output problems HOT 7
- Coverage checker bug HOT 3
- Unification bug
- We should use `enum X { Obj; }` for singletons! HOT 1
- Literate mode bug? HOT 2
- Fully predicative termination checker
- Type Infering HOT 1
- Bad Meta HOT 7
- We should develop our own IDE HOT 6
- Markdown backend bug HOT 1
- `atob` seems broken in vuepress HOT 7
- We need a better literate backend for academic writing HOT 4
- `aya-hidden` is printed to tex HOT 2
- InternalException about Generalized Variables HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aya-dev.