« Home

原理 [tt-0002]

首先我們需要理解以下兩條規則

  1. BBB \subseteq B' 蘊含 (AB)(AB)(A \Rightarrow B) \subseteq (A \Rightarrow B')
  2. AAA \subseteq A' 蘊含 (AB)(AB)(A' \Rightarrow B) \subseteq (A \Rightarrow B')

根據這兩條規則,我們說 arrow type ABA \Rightarrow B

  1. contravariant in AA (或 AA varies negatively)
  2. covariant in BB (或 BB varies positively

所以我們稱 AA 為 negative position、BB 為 positive position