Giter Site home page Giter Site logo

Comments (4)

ANogin avatar ANogin commented on May 27, 2024

Just to add to the list of weird things that happen with these kinds of examples, if I change the above test case by swapping the order of num and sum (that is, replacing Equations num ... where sum ... with Equations sum ... where num ...), then I get

Recursive definition of sum is ill-formed.
In environment
sum : forall f : foo, (foo_type f -> nat) -> forall fs : list foo, compact_prod (map foo_type (f :: fs)) -> nat
f : foo
numf : foo_type f -> nat
fs : list foo
f0 : foo
l : list foo
val : compact_prod (map foo_type (f :: f0 :: l))
num : forall f : foo, foo_type f -> nat
f1 : foo
l0 : list foo
f2 : foo
l1 : list foo
val0 : foo_type (List (f2 :: l1))
Recursive call to sum has principal argument equal to "l1" instead of "l".
Recursive definition is:
"fun (f : foo) (numf : foo_type f -> nat) (fs : list foo) =>
 sum_functional sum (fix num (f0 : foo) : foo_type f0 -> nat := num_functional sum num f0) f numf fs".

from coq-equations.

ANogin avatar ANogin commented on May 27, 2024

See also the "P.S." comment in #93 for an example of what makes a difference in seeing or not seeing this issue.

from coq-equations.

ANogin avatar ANogin commented on May 27, 2024

This appears to be fixes in the latest v8.8

from coq-equations.

mattam82 avatar mattam82 commented on May 27, 2024

Indeed, it's similar to #105

from coq-equations.

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.