The Curry-Howard correspondence[1] tells us that every function is a proof (in the intuitionistic sense) of the proposition represented by its return type, given the axioms ("context" in the article) represented by its arguments.
This fact is leveraged heavily by proof assistants (as mentioned in the article), but is generally useful in any statically-typed programming language.
[1]: https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...