Giter Site home page Giter Site logo

Normalization problem about aya-dev HOT 4 CLOSED

aya-prover avatar aya-prover commented on June 10, 2024
Normalization problem

from aya-dev.

Comments (4)

ice1000 avatar ice1000 commented on June 10, 2024

I'd like to assign @tsao-chi this time to investigate the issue.

from aya-dev.

mio-19 avatar mio-19 commented on June 10, 2024

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.

ice1000 avatar ice1000 commented on June 10, 2024

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.

ice1000 avatar ice1000 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.