Metamath Proof Explorer


Theorem flnn0ohalf

Description: The floor of the half of an odd positive integer is equal to the floor of the half of the integer decreased by 1. (Contributed by AV, 5-Jun-2012)

Ref Expression
Assertion flnn0ohalf ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N 2 = N − 1 2

Proof

Step Hyp Ref Expression
1 nn0ofldiv2 ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N 2 = N − 1 2
2 nn0o ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N − 1 2 ∈ ℕ 0
3 2 nn0zd ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N − 1 2 ∈ ℤ
4 flid ⊢ N − 1 2 ∈ ℤ → N − 1 2 = N − 1 2
5 3 4 syl ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N − 1 2 = N − 1 2
6 1 5 eqtr4d ⊢ N ∈ ℕ 0 ∧ N + 1 2 ∈ ℕ 0 → N 2 = N − 1 2