|
|
|
|
|
by ghettoimp
2502 days ago
|
|
Thanks. I think we may differ in our understanding of "compositional." My understanding of "compositional" reasoning is something like, an approach where we (1) establish some properties about our helper functions, and then (2) reason about larger functions using these properties, instead of the definitions of the helper functions. It seems like you have a different notion of compositional, which I'm still not sure I can articulate in a clear way... something more akin to transitivity? |
|
What you're saying is that proofs can be composed. That is true, but unhelpful, as it doesn't make proofs easy. All proofs work this way. Compositionality does (in fact, all properties that are easily proven by type inference are compositional; type safety itself is compositional). I've seen somewhere compositionality described as the opposite of emergence[1], which makes sense. A property is emergent in a composition if it is not a property of the components.
[1]: https://julesh.com/2017/04/22/on-compositionality/