Giter Site home page Giter Site logo

rlepigre / pml Goto Github PK

View Code? Open in Web Editor NEW
18.0 6.0 2.0 5.92 MB

New version of the PML language and (classical) proof assistant

Home Page: http://pml-lang.org

License: MIT License

Makefile 0.26% OCaml 75.59% Shell 0.37% Emacs Lisp 3.98% Vim Script 0.80% Agda 0.16% Coq 0.04% TeX 18.52% Python 0.27%
pml proof-assistant ocaml classical-logic program-equivalence

pml's Issues

pool optim, toward only head normal term added to the pool

insert_t_node should use a stack to avoid creating node for partially applied function.

For instance, adding [add n p] to the pool also adds [add n] which is a lambda, hence trigger a cloture construction.

This cost is dominating "equiv" when computation are really needed, with
probably a factor much greater that 2 (10 ?) to gain.

Incompleteness of typing/subtyping

Here we put reference to cases were the incompleteness of typing seems not reasonable.
This issue should probably never be closed.

test/fifo.pml: an annotation (x:a) is needed and this seems strange.

Cyclic value should trigger contradiction in the pool.

An equation like x = S[x] learn in the pool does not yield a contradiction. Moreover,
using any function on x is likely to loop after that. We should detect such cycle.

Strangely, such cycle never appears in PML2 while they were frequent in PML1 ...

Theory

The document with the theory should be added to the git repository.

Subtyping heuristic and auto case

Currently, we use in subtyping a heuristic testing is the term (int t : A < B) is a value.
This heuristic seems in fact to test if we already unrolled fixpoint ... And is
not so clear.

As a side effect, this heuristic forces subtyping of sums to use introduce a term
Preventing to replace the current term in a case anlysis with only one case with
a witness.

But this term with one case produce useless computation in the pool and useless
case analysis in auto_prove.

Printing of epsilons (mantis #53)

Epsilons should be prionted as the name of a bound variable that wes subsituted
with the epsilon. When epsilons are known to be equal, a "best" name should be chosen.

Deal with unification variables after type-checking (mantis #44)

Unification variable that remains after type-checking should
get a default instanciation.

Remark: if later we keep unification constraints, this would become very
important as there could be unsolvable contraints, or preferably, we should ensure all constraints have a default instanciation that we could use.

Add a syntaxtic sugar to extend record.

Minimal syntactic { include r1; include r2; ... } should use typing to know the field that are present.
The same notation for type is just some kind of higher order function performing some computation on type.

The general include for a record of unknown type (or default record value) seems too hard at the moment,
especially for compilation.

Cost of logging and Chrono

In function which are very frequently called, log and chrono can cost a lot.
If I uncomment the log in add_term and add_valu, the cost of log+chorno in Equiv and
Compare is a factor between 2 and 3.

we should create a binary "main.native" where this log/chrono on small function are disabled
(keeping still the main one like typing) and a main.debug with all log and chrono.

Reinforce completeness of auto and totality

When instantiating a unification variable of sort value with an expression
in the pool which is not a value, this does not trigger trying to prove that this a
value in auto_prove. Moreover, fixing this is not enough because one should
build a term which is a value to perform the instantiation.

auto cases! use information from typing

Some time, extra information comes from typing which allows to
restrict cases. This information is probably available in the type of the VWit ...
We should try to use it!

See lib/int.pml for a use case.

Mutually inductive types

Mutually inductive types can be encoded using extra parameters, but this result
in a notion of sized type which is not the one we want, and leads to failure
of the termination checker.

Higher order inductive types

This is needed for GADT and will result in a better syntax too:

type rec list = [ Nil ; Cons of a * list ]

will become

type rec list = [ Nil ; Cons of a * list ]

Storing of parents in the pool

Parents are only useful for the root of the union-find data structure. We should change the data structure
to only keep the parent of roots in the union-find.

Finish printing

Printing has been improved, but is not finished ... quite a few syntactic sugar are missing.
Notably terms in values, cons, nil, infix, ...

Better control of current totality status

When writing
let f = fun x ...
or even applications, or dependant product, we have no short way to indicate the current totality we want.

Do we need something (like more than one keyword for fun ?)

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.