rlepigre / pml

New version of the PML language and (classical) proof assistant
http://pml-lang.org
MIT License
20 stars 2 forks source link

Subtyping heuristic and auto case #29

Open craff opened 6 years ago

craff commented 6 years ago

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.