Avigad.Chapter4 #
Quantifiers and Equality
Exercise 1 #
Prove these equivalences. You should also try to understand why the reverse implication is not derivable in the last example.
Exercise 2 #
It is often possible to bring a component of a formula outside a universal quantifier, when it does not depend on the quantified variable. Try proving these (one direction of the second of these requires classical logic).
Exercise 3 #
Consider the "barber paradox," that is, the claim that in a certain town there is a (male) barber that shaves all and only the men who do not shave themselves. Prove that this is a contradiction.
Exercise 4 #
Remember that, without any parameters, an expression of type Prop
is just an
assertion. Fill in the definitions of prime
and Fermat_prime
below, and
construct each of the given assertions. For example, you can say that there are
infinitely many primes by asserting that for every natural number n
, there is
a prime number greater than n.
Goldbach’s weak conjecture states that every
odd number greater than 5
is the sum of three primes. Look up the definition
of a Fermat prime or any of the other statements, if necessary.
Equations
- Avigad.Chapter4.ex4.even a = ∃ (b : Nat), a = 2 * b
Instances For
Equations
Instances For
Equations
- Avigad.Chapter4.ex4.infinitelyManyPrimes = ∀ (n : Nat), ∃ (m : Nat), m > n ∧ Avigad.Chapter4.ex4.prime m
Instances For
Equations
- Avigad.Chapter4.ex4.infinitelyManyFermatPrimes = ∀ (n : Nat), ∃ (m : Nat), m > n ∧ Avigad.Chapter4.ex4.FermatPrime m
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exercise 5 #
Prove as many of the identities listed in Section 4.4 as you can.