Ask HN: Any logic based software dev tool which helps building code gradually?
I am missing some tooling for years.<p>My main idea is that as a programmer what I do is constantly reducing the set of all programs to a particular program which satisfies the specification. (At least that is what I think I should do to get a flexible codebase where adding&#x2F;removing quasi orthogonal constraints is easy: that is where declarative&#x2F;logic programming, Prolog, rules &#x2F; inferring assistants come to my mind.)<p>When thinking, reasoning about timing, concurrency, async, correctness happens 
1. Step by step, gradually
2. using nothing but logic.<p>We have some tools: eg. type systems to express interdependence (constraints) and they are also useful in that &quot;step by step&quot; gradual manner: it warns me if I misstep, but there is much more information I could get from a &quot;dev assistant&quot;.<p>When I am thinking I (have to) enumerate all the possible cases for a given scenario, but I can&#x27;t really reuse the existing logic statements I have (or ever had!) in my mind, because usually the code is not written in logic and neither the environment processes it to give me insights.<p>Eg. I would like to make logic statements on the ordering of method calls (or basically just events) to make sure it won&#x27;t conflict with another ordering (there must be at least one ordering which satisfies for all).<p>I would like to toggle on and off my logic constraints to have the currently relevant ones only (to help me to develop other parts of the system), save the sets as &quot;views&quot; and combine them to see if there is any conflict between their related logic statements (and if so I could see what and I could fix it).<p>I&#x27;d need higher order logic (eg. existential operator) to make statements about my &quot;desired&quot; program: to help&#x2F;assist my future self not to forget about that &quot;constraint&quot;.<p>Are you aware of such an IDE&#x2F;tool&#x2F;project?<p>Agda, Coq, etc might do something similar I just did not realize.<p>I would really appreciate your help, I&#x27;m totally obsessed with that.