# Tautology check (is_tautology)

Test whether a condition is true for every value of its variables.

## How to write it

### is_tautology(p)

**p**

A condition. Takes a condition, true or false.

## Examples

- $\displaystyle p \lor \lnot p \; \operatorname{true}$

  `is_tautology(p or not p)`

  In the solver, `is_tautology(p or not p)` gives `true`.

  [Open in the solver](https://hilberon.com/?q=is_tautology%28p%20or%20not%20p%29)

## Related functions

- [less](https://hilberon.com/library/less)

  True when the first value is less than the second: the function form of \<.
- [is_satisfiable](https://hilberon.com/library/is_satisfiable)

  Test whether a condition is true for some value of its variables.
- [less_equal](https://hilberon.com/library/less_equal)

  True when the first value is at most the second: the function form of \<=.
- [is_odd](https://hilberon.com/library/is_odd)

  Test whether a whole number is odd.
- [logical_and](https://hilberon.com/library/logical_and)

  True when every condition is true: the function form of and.
- [is_numeric](https://hilberon.com/library/is_numeric)

  Test whether a value has a numeric value, such as pi.

---
Source: https://hilberon.com/library/is_tautology
