The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Poll: assertion notation by Michiel 2008-04-28 13:43:32
If you have to write an assertion in a programming language (say, a postcondition for a sorting algorithm) which syntax would you prefer? A notation with quantifiers like 'forall' and 'thereis', or a skolem normal form? For example, here are two versions of the assertion "every int has a successor". In quantifier form:
forall(i)( thereis(j)(i < j) )
And in skolemized form:
i < f(i)
Where a 'forall' is implied for all undeclared variables (i) and a 'thereis' is implied for all undeclared functions (f). So the skolemized version says: "there is a mapping function f for which for all vars i, i < f(i)". Note that in reality, these vars and functions may still have to be declared specifically for this use.

I would like to know which notation is more popular. And with your reply, could you also tell me what your profession/field of study is? It is possible that all software engineers prefer one notation and all mathematicians prefer the other. I will take the outcome of this poll into account when I make my decision on the notation in my programming language.

I'll look at the results in the morning. And I might post this poll again tomorrow.

Thanks in advance for your reply!
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)