Skip to content

yannickmoy/vscomp_2014_proofinuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscomp_2014_proofinuse

Submission to the VSComp 2014 competition (http://vscomp.org/) from the 'ProofInUse' team

The team consists in:

We're using Why3 (https://why3.lri.fr/) and SPARK 2014 (http://www.spark-2014.org/) programming languages as well as SPIN (http://spinroot.com/spin/whatispin.html) model checker.

Lessons learnt when using Why3

problem 1

  • There should be a notation with brackets for lists

  • It would be nice to have a List.forall higher-order predicate

  • color highlighting of goals: color of premises and conclusion are wrong in presence of match..with

  • missing lemmas on nth and append on lists (i.e. propagate lemmas in list.NthAppendLength to list.NthNoOpt)

  • need for an abstract version of pigeon-hole lemma in Why3 stdlib, on functions instead of map like in map.MapInjection. The module PigeonHole we developed for this competition coudl be moved to Why3 stdlib.

  • need for facilities to provide abstract specifications to Why3 programs, and then provide raffinements (there is an on-going PhD thesis on that subject)

  • "split" should really split match..with

Lessons learnt when using SPIN

problem 3

  • Model checking is limited to very small models (log with 2 entries, 2 threads in my case).
  • Promela is lacking a way to define proper functions. But this might be a way to limit model size. :-)
  • iSpin graphical interface is very convenient.
  • Found a bug in SPIN (if value is replaced by val). Should do an example and submit the bug report.

About

Submission to the VSComp 2014 competition from ProofInUse team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •