Giter Club home page Giter Club logo

Comments (9)

Gbury avatar Gbury commented on May 14, 2024 1

ah yes, that's slightly more complex (since some theories actually define an infinite number of symbols), but I have some plans for that, ^^

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

I'll fix that soon (probably in or along #36 ); the support is already there I just have to pass the correct option to the typechecker env to forbid shadowing of declared identifiers.

from dolmen.

bobot avatar bobot commented on May 14, 2024

Currently the theories doesn't define the symbols the define. It seems that they need to give also this information in order to support that, no?

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

So, I have mostly the patch needed for that, but one last question: are bound variables allowed to shadow identifiers previously declared (whether they previously declared identifiers, identifiers declared by a theory, or other variables in scope) ?

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

Fixed by d078da6

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

So, I just saw the following in the standard:

Remark 5 (No shadowing of theory symbols). One exception is that binders cannot shadow
theory function symbols, that is, function symbols from the declaration (see Section 3.7) of a
theory included in the current logic (see Section 3.8 and Subsection 4.2.1). In other words,
variables and parameters cannot have the same name as a theory function symbol in the same
scope.(14)

Which is particularly annoying when variables and parameters are allowed to shadow sort symbols coming theories....

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

These rules and exceptions are really too convoluted sometimes :/

from dolmen.

bobot avatar bobot commented on May 14, 2024

Yes, they are meant to make solver implementer life easier, but not always for all of them ;). It could be discussed fo the next version of the standard.

from dolmen.

Gbury avatar Gbury commented on May 14, 2024

Should be definitely fixed thanks to the n-th big refactoring done in 15985f4

from dolmen.

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.