# Spinroot

**URL:** <https://discourse.ats-lang.org/t/spinroot/554>\
**Category:** Google Group\
**Created:** [August 8, 2013, 8:38am UTC](https://discourse.ats-lang.org/t/spinroot/554 "2013-08-08T08:38:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyrille\_Duret](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Cyrille\_Duret](https://discourse.ats-lang.org/u/Cyrille_Duret)\
**Post date:** [August 8, 2013, 8:38am UTC](https://discourse.ats-lang.org/t/spinroot/554/1 "2013-08-08T08:38:30Z")

</div>

hello,  
Did you ever see this project : [http://spinroot.com/](http://spinroot.com/)

For a newbie in dependent types, I would say it is similar to ATS goals of  
software verification.

What is different from ATS ?

---

<div class="post-metadata">

**Author:** ![Zhiqiang\_Ren](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@Zhiqiang\_Ren](https://discourse.ats-lang.org/u/Zhiqiang_Ren)\
**Post date:** [August 8, 2013, 5:26pm UTC](https://discourse.ats-lang.org/t/spinroot/554/2 "2013-08-08T17:26:16Z")

</div>

A program is like a big company with many workers. Dependent types can be  
used to precisely describe the task each worker should perform. Linear  
types can be used to track the resources inside the company (e.g. copy  
machine). The type checker of ATS can verify individually that each worker  
can finish the task if he or she sticks to the declared working plan  
(code). But such verification only makes sense when all of workers can get  
exclusive control of resources they want. The working plan is encode in ATS  
as well as the proof that such plan works. The type checker only checks  
whether the proof makes sense. The good thing is that the verification can  
be done ahead of the time that the company opens and the task described can  
be very complicated and in an unlimited scale.

---

<div class="post-metadata">

**Author:** ![Cyrille\_Duret](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Cyrille\_Duret](https://discourse.ats-lang.org/u/Cyrille_Duret)\
**Post date:** [August 8, 2013, 1:38pm UTC](https://discourse.ats-lang.org/t/spinroot/554/3 "2013-08-08T13:38:32Z")

</div>

maybe spin look for exploring paths from non-deterministic code and show  
some quirks. It is very concurrency oriented.

and I see ATS more as producing semantic proved programs  
I did not look yet in multi-threads example in ATS. Does dependent types  
can help preventing dead-lock or race conditions ?

My feeling is that linear types can help a lot for that kind of problems…

---

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [August 8, 2013, 1:25pm UTC](https://discourse.ats-lang.org/t/spinroot/554/4 "2013-08-08T13:25:33Z")

</div>

Yes, we are interested in SPIN, too.

However, what ATS tries to accomplish is different from SPIN.

Often people think that program verification means verifying the  
correctness of  
a given program. But how do you get the program to verify in the first  
place? ATS tries  
to accommodate a way of program development in which program verification  
is combined with program construction. I think this is key to program  
verification  
being actually used in practice. So first and foremost, ATS tries to be a  
language  
that can help people write programs, any programs.

---

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [August 8, 2013, 2:29pm UTC](https://discourse.ats-lang.org/t/spinroot/554/5 "2013-08-08T14:29:18Z")

</div>

Linear types allow you to track resources. However, without dependent  
types, we don’t get enough precision.  
So what we really need is linear dependent types.
