Metamath Proof Explorer


Theorem signswlid

Description: The zero-skipping operation keeps nonzeros. (Contributed by Thierry Arnoux, 12-Oct-2018)

Ref Expression
Hypotheses signsw.p ⊢ ⨣ ˙ = a ∈ − 1 0 1 , b ∈ − 1 0 1 ⟼ if b = 0 a b
signsw.w ⊢ W = Base ndx − 1 0 1 + ndx ⨣ ˙
Assertion signswlid ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → X ⨣ ˙ Y = Y

Proof

Step Hyp Ref Expression
1 signsw.p ⊢ ⨣ ˙ = a ∈ − 1 0 1 , b ∈ − 1 0 1 ⟼ if b = 0 a b
2 signsw.w ⊢ W = Base ndx − 1 0 1 + ndx ⨣ ˙
3 1 signspval ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 → X ⨣ ˙ Y = if Y = 0 X Y
4 3 adantr ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → X ⨣ ˙ Y = if Y = 0 X Y
5 simpr ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → Y ≠ 0
6 5 neneqd ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → ¬ Y = 0
7 6 iffalsed ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → if Y = 0 X Y = Y
8 4 7 eqtrd ⊢ X ∈ − 1 0 1 ∧ Y ∈ − 1 0 1 ∧ Y ≠ 0 → X ⨣ ˙ Y = Y