Proof: Difference between revisions

591 bytes added ,  2 years ago
Line 219:
 
=={{header|ATS}}==
 
 
Although probably I could do more precisely what is asked, and encode some formal logic in the ATS proofs language, that is not what I do below. Rosetta Code is here to show what a language can do, and so it seems better to show a bit of how ATS ''actually'' would be used.
 
In that case, addition is a poor operation upon which to base the demonstration. ''Multiplication'' would be much better, because ATS has relatively little built-in knowledge of multiplication; the operation has to be defined by axioms or recursively from addition. But I shall stick with addition, just the same.
 
 
<lang ATS>(* ATS does not contain a full-fledged proof language, but does
Line 327 ⟶ 333:
<pre>$ patscc proof.dats && ./a.out
Success!</pre>
 
 
=={{header|Coq}}==
1,448

edits