述語論理と集合

述語論理と集合

復習したのでメモ.

f:X{0,1}f: \mathcal{X} \to \{0, 1\}を述語(条件)と言おう(0はfalse, 1はtrueを表す).{xXf(x)=1}\left\{x \in \mathcal{X} | f(x) = 1\right\}を,単に{xXf(x)}\left\{x \in \mathcal{X} | f(x)\right\}と書こう.述語は自然言語で書いてもいいので,かなり自由度が高い.

全称と存在を考える.以下は命題になる.

xX,f(x) \begin{aligned} \forall x \in \mathcal{X}, f(x) \\ \end{aligned}

ちょっと見方を変えると,これは,

xXf(x) \begin{aligned} \wedge_{x \in \mathcal{X}} f(x) \end{aligned}

と同じ多分.X\mathcal{X}が有限じゃない時とかはよくわからんけど.

存在も以下のように似たように考えればいい.

xX,f(x)xXf(x) \begin{aligned} \exists x \in \mathcal{X}, f(x) \Leftrightarrow \vee_{x \in \mathcal{X}} f(x) \end{aligned}

f:X×Y{0,1}f: \mathcal{X} \times \mathcal{Y} \to \{0, 1\}を考える.以下は述語.

xXf(x,y) \begin{aligned} \wedge_{x \in \mathcal{X}} f(x, y) \end{aligned}

これが成り立つyyの集合を考える.

{yYxXf(x,y)} \begin{aligned} \left\{y \in \mathcal{Y} | \wedge_{x \in \mathcal{X}} f(x, y) \right\} \end{aligned}

おそらく,

{yYxXf(x,y)}=xX{yYf(x,y)} \begin{aligned} \left\{y \in \mathcal{Y} | \wedge_{x \in \mathcal{X}} f(x, y) \right\} = \cap_{x \in \mathcal{X}} \left\{y \in \mathcal{Y} | f(x, y)\right\} \end{aligned}

となる.

存在の方も同様に,

{yYxXf(x,y)}xX{yYf(x,y)} \begin{aligned} \left\{y \in \mathcal{Y} | \vee_{x \in \mathcal{X}} f(x, y) \right\} \Leftrightarrow \cup_{x \in \mathcal{X}} \left\{y \in \mathcal{Y} | f(x, y)\right\} \end{aligned}

となると思う.

これは,確率を考える上でかなり大事になってくると思う.
何かが存在する確率を,和集合の確率で表すことができて,そのupper boundが簡単にでる.この辺はまた今度気が向いたら書こうと思う.

0 件のコメント:

コメントを投稿

機械学習の問題設定

機械学習の問題設定 機械学習の問題設定を見直したのでメモ. ( Ω , F , P ) (\Omega, \mathcal{F}, P) ( Ω , F , P ) : ベースとなる確率空間 ( X , F X ) (\mathcal...