Giter Site home page Giter Site logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 25, 2024
[deleted comment]

from agda.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 25, 2024
[deleted comment]

from agda.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 25, 2024
There is probably a problem with constraint solving, but the example above 
isn't it.
There was a problem with the unifying substitution not being applied properly
(fixed), but there's also a problem with the example. A simpler version:

  data D : (k : K)(t : T k) -> Set where
    c : (k : K) -> D k (f k)

  foo : D a ta -> Set
  foo (c a) = K

This is actually not correct. When matching on D a ta the argument to c is 
determined
by typechecking (before you get a chance to match on it) so it should be dotted:

  foo (c .a) = K

Original comment by [email protected] on 24 Oct 2007 at 12:15

  • Changed state: New

from agda.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 25, 2024
Here's an example of the problem:

data Nat : Set where
  zero : Nat
  suc  : Nat -> Nat

_+_ : Nat -> Nat -> Nat
zero  + m = m
suc n + m = suc (n + m)

data T : Nat -> Nat -> Set where
  c : (x : Nat) -> T x zero

foo : (n m : Nat) -> T (n + m) n -> Set
foo ._ ._ (c m) = Nat

If you flip the arguments to T it goes through.

Original comment by [email protected] on 24 Oct 2007 at 12:31

  • Changed state: Accepted

from agda.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 25, 2024

Original comment by [email protected] on 24 Oct 2007 at 2:15

  • Changed state: Fixed

from agda.

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.