任意(にんい、arbitrary)とは、思うままに任せること、という意味で、当人の自由意思に任せる、ということである[1]。また、数学などでは、任意を「特別な選び方をしないこと」という意味で用いる。 例えば、任意投票
法律、行政制度などにおける「任意」
例えば任意同行とは、警察官がある人物に対して職務質問を行い、最寄の警察署・交番などに行くことを求めて当人の意思・気持ちを確認し、当人が同意して警察官に同行してそこへ行くこと[1]。当人が同行したくなければ同行する必要はなく[1]、行きたくない、とか、同行したくない、と警察官に伝えて、立ち去ってもよい。 数学や論理学において「任意の?」(英: arbitrary )とは、「特別な選び方をしない」という意味であり、一般に、英語の「any?」、日本語の 「どの?でも」「いずれの?でも」といった語と置き換えることが可能である。 たとえば、任意の実数 x について [条件A] が成り立つ という表現は、x として 実数の中からどの数を選んでも [条件A] が成り立つ、という意味である。 たいていの場合、「任意の」は「すべての」(all) への置き換えも可能である。しかし文脈によっては、any への置き換えではなく all への置き換えを行うと、誤解を招くこともあるので注意が必要である。たとえば、A = {1, 3} , B = {2, 4} としたとき、A に属する任意の要素と B に属する任意の要素を加算した結果は奇数である(1+2, 1+4, 3+2, 3+4 の4通りが考えられるが、どれも奇数である)。しかし、A に属するすべての要素と B に属するすべての要素を加算した結果は、次の2通りに解釈できる。 「任意の」を表す記号(量化子)としては広く ∀ (全称記号) が用いられる。この全称量化子 (universal quantifier) はドイツの論理学者ゲルハルト・ゲンツェンによって導入された。「量化」および「全称記号」も参照 IT領域における用法も、数学のそれをほぼ踏襲しており、例えば、プログラミング、ソフトウェア開発などの領域において「任意の 4 桁の正の10進数(を入力)」と言えば、0001 から 9999 までの数がいずれも入力されうる、ということを意味する。
数学などにおける「任意」
A に属するすべての要素 1 と 3 、および B に属するすべての要素 2 と 4 のすべてを加算する。つまり、1 と 3 と 2 と 4 をすべて加算する。その結果は 1 + 3 + 2 + 4 = 10 であり、偶数となる。
A に属するすべての要素 1 と 3 のうちどれかと、B に属するすべての要素 2 と 4 のうちどれかを加算する。つまり、1+2, 1+4, 3+2, 3+4 のどれかの加算を行う。どの加算を行っても、結果は奇数である(全称命題も参照のこと)。
数学関連
反例、例外、特異点
ITにおける「任意」
IT関連項目
ワイルドカード (情報処理)
「ランダムに選んだ」
脚注[脚注の使い方]^ a b c 広辞苑 第五版 p.2048【任意】
関連項目
オプション
選択
「任意」で始まるページの一覧
タイトルに「任意」を含むページの一覧
.mw-parser-output .asbox{position:relative;overflow:hidden}.mw-parser-output .asbox table{background:transparent}.mw-parser-output .asbox p{margin:0}.mw-parser-output .asbox p+p{margin-top:0.25em}.mw-parser-output .asbox{font-size:90%}.mw-parser-output .asbox-note{font-size:90%}.mw-parser-output .asbox .navbar{position:absolute;top:-0.90em;right:1em;display:none}
.mw-parser-output .hlist ul,.mw-parser-output .hlist ol{padding-left:0}.mw-parser-output .hlist li,.mw-parser-output .hlist dd,.mw-parser-output .hlist dt{margin-right:0;display:inline-block;white-space:nowrap}.mw-parser-output .hlist dt:after,.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{white-space:normal}.mw-parser-output .hlist li:after,.mw-parser-output .hlist dd:after{content:" ・\a0 ";font-weight:bold}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist-pipe dd:after,.mw-parser-output .hlist-pipe li:after{content:" |\a0 ";font-weight:normal}.mw-parser-output .hlist-hyphen dd:after,.mw-parser-output .hlist-hyphen li:after{content:" -\a0 ";font-weight:normal}.mw-parser-output .hlist-comma dd:after,.mw-parser-output .hlist-comma li:after{content:"、";font-weight:normal}.mw-parser-output .hlist-slash dd:after,.mw-parser-output .hlist-slash li:after{content:" /\a0 ";font-weight:normal}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")\a0 ";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)" ";white-space:nowrap}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)" "}.mw-parser-output .navbar{display:inline;font-size:75%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}.mw-parser-output .infobox .navbar{font-size:88%}.mw-parser-output .navbox .navbar{display:block;font-size:88%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}