Metamath Proof Explorer


Theorem gtnelioc

Description: A real number larger than the upper bound of a left-open right-closed interval is not an element of the interval. (Contributed by Glauco Siliprandi, 11-Dec-2019)

Ref Expression
Hypotheses gtnelioc.a ( 𝜑𝐴 ∈ ℝ* )
gtnelioc.b ( 𝜑𝐵 ∈ ℝ )
gtnelioc.c ( 𝜑𝐶 ∈ ℝ* )
gtnelioc.bltc ( 𝜑𝐵 < 𝐶 )
Assertion gtnelioc ( 𝜑 → ¬ 𝐶 ∈ ( 𝐴 (,] 𝐵 ) )

Proof

Step Hyp Ref Expression
1 gtnelioc.a ( 𝜑𝐴 ∈ ℝ* )
2 gtnelioc.b ( 𝜑𝐵 ∈ ℝ )
3 gtnelioc.c ( 𝜑𝐶 ∈ ℝ* )
4 gtnelioc.bltc ( 𝜑𝐵 < 𝐶 )
5 2 rexrd ( 𝜑𝐵 ∈ ℝ* )
6 xrltnle ( ( 𝐵 ∈ ℝ*𝐶 ∈ ℝ* ) → ( 𝐵 < 𝐶 ↔ ¬ 𝐶𝐵 ) )
7 5 3 6 syl2anc ( 𝜑 → ( 𝐵 < 𝐶 ↔ ¬ 𝐶𝐵 ) )
8 4 7 mpbid ( 𝜑 → ¬ 𝐶𝐵 )
9 8 intn3an3d ( 𝜑 → ¬ ( 𝐶 ∈ ℝ ∧ 𝐴 < 𝐶𝐶𝐵 ) )
10 elioc2 ( ( 𝐴 ∈ ℝ*𝐵 ∈ ℝ ) → ( 𝐶 ∈ ( 𝐴 (,] 𝐵 ) ↔ ( 𝐶 ∈ ℝ ∧ 𝐴 < 𝐶𝐶𝐵 ) ) )
11 1 2 10 syl2anc ( 𝜑 → ( 𝐶 ∈ ( 𝐴 (,] 𝐵 ) ↔ ( 𝐶 ∈ ℝ ∧ 𝐴 < 𝐶𝐶𝐵 ) ) )
12 9 11 mtbird ( 𝜑 → ¬ 𝐶 ∈ ( 𝐴 (,] 𝐵 ) )