Puneet Varma (Editor)

Logical assertion

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematical logic, logical assertion is a statement that asserts that a certain premise is true, and is useful for statements in proof. It is equivalent to a sequent with an empty antecedent.

For example, if p = "x is even", the implication

( p ) ( x ( mod 2 ) 0 )

is thus true. We can also write this using the logical assertion symbol, as

( ( p ) ( x ( mod 2 ) 0 ) )

In computer programming and programming language semantics, these are used in the form of assertions; one example is a loop invariant.

References

Logical assertion Wikipedia