MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nanass Structured version   Visualization version   GIF version

Theorem nanass 1501
Description: A characterization of when an expression involving alternative denials associates. Remark: alternative denial is commutative, see nancom 1487. (Contributed by Richard Penner, 29-Feb-2020.) (Proof shortened by Wolf Lammen, 23-Oct-2022.)
Assertion
Ref Expression
nanass ((𝜑𝜒) ↔ (((𝜑𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓𝜒))))

Proof of Theorem nanass
StepHypRef Expression
1 bicom1 224 . . . 4 ((𝜑𝜒) → (𝜒𝜑))
2 nanbi2 1493 . . . 4 ((𝜑𝜒) → ((𝜓𝜑) ↔ (𝜓𝜒)))
31, 2nanbi12d 1500 . . 3 ((𝜑𝜒) → ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))))
4 nannan 1488 . . . . . 6 ((𝜑 ⊼ (𝜓𝜒)) ↔ (𝜑 → (𝜓𝜒)))
5 simpr 488 . . . . . . 7 ((𝜓𝜒) → 𝜒)
65imim2i 16 . . . . . 6 ((𝜑 → (𝜓𝜒)) → (𝜑𝜒))
74, 6sylbi 220 . . . . 5 ((𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒))
8 nannan 1488 . . . . . 6 ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜒 → (𝜓𝜑)))
9 simpr 488 . . . . . . 7 ((𝜓𝜑) → 𝜑)
109imim2i 16 . . . . . 6 ((𝜒 → (𝜓𝜑)) → (𝜒𝜑))
118, 10sylbi 220 . . . . 5 ((𝜒 ⊼ (𝜓𝜑)) → (𝜒𝜑))
127, 11impbid21d 214 . . . 4 ((𝜒 ⊼ (𝜓𝜑)) → ((𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒)))
13 nanan 1484 . . . . . 6 ((𝜑 ∧ (𝜓𝜒)) ↔ ¬ (𝜑 ⊼ (𝜓𝜒)))
14 simpl 486 . . . . . 6 ((𝜑 ∧ (𝜓𝜒)) → 𝜑)
1513, 14sylbir 238 . . . . 5 (¬ (𝜑 ⊼ (𝜓𝜒)) → 𝜑)
16 nanan 1484 . . . . . 6 ((𝜒 ∧ (𝜓𝜑)) ↔ ¬ (𝜒 ⊼ (𝜓𝜑)))
17 simpl 486 . . . . . 6 ((𝜒 ∧ (𝜓𝜑)) → 𝜒)
1816, 17sylbir 238 . . . . 5 (¬ (𝜒 ⊼ (𝜓𝜑)) → 𝜒)
19 pm5.1im 266 . . . . 5 (𝜑 → (𝜒 → (𝜑𝜒)))
2015, 18, 19syl2imc 41 . . . 4 (¬ (𝜒 ⊼ (𝜓𝜑)) → (¬ (𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒)))
2112, 20bija 385 . . 3 (((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))) → (𝜑𝜒))
223, 21impbii 212 . 2 ((𝜑𝜒) ↔ ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))))
23 nancom 1487 . . . . 5 ((𝜓𝜑) ↔ (𝜑𝜓))
2423nanbi2i 1496 . . . 4 ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜒 ⊼ (𝜑𝜓)))
25 nancom 1487 . . . 4 ((𝜒 ⊼ (𝜑𝜓)) ↔ ((𝜑𝜓) ⊼ 𝜒))
2624, 25bitri 278 . . 3 ((𝜒 ⊼ (𝜓𝜑)) ↔ ((𝜑𝜓) ⊼ 𝜒))
2726bibi1i 342 . 2 (((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))) ↔ (((𝜑𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓𝜒))))
2822, 27bitri 278 1 ((𝜑𝜒) ↔ (((𝜑𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓𝜒))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wnan 1482
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 210  df-an 400  df-nan 1483
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator