Logika dla informatyków/Ćwiczenia 2: Różnice pomiędzy wersjami
Nie podano opisu zmian |
Nie podano opisu zmian |
||
Linia 13: | Linia 13: | ||
są spełnione przy wartościowaniu <math>v(y) = 7</math>, <math>v(z) = 1</math> w strukturze <math>\mathfrak a</math>. | są spełnione przy wartościowaniu <math>v(y) = 7</math>, <math>v(z) = 1</math> w strukturze <math>\mathfrak a</math>. | ||
Ćwiczenie 2<br> | Ćwiczenie 2<br> | ||
Linia 19: | Linia 20: | ||
relacją <math>\geq</math>; <br> | relacją <math>\geq</math>; <br> | ||
<math>f^\mathfrak b(m,n) = m^2+n^2</math>, dla <math>m,n\in\mathbb Z</math>, a <math>r^\mathfrak b</math> jest relacją <math>\leq</math>. | <math>f^\mathfrak b(m,n) = m^2+n^2</math>, dla <math>m,n\in\mathbb Z</math>, a <math>r^\mathfrak b</math> jest relacją <math>\leq</math>. | ||
</center> | |||
Zbadać czy formuły | Zbadać czy formuły | ||
#<math>\forall y(\forall x(r(z,f(x,y))\to r(z,y)))</math>; | #<math>\forall y(\forall x(r(z,f(x,y))\to r(z,y)))</math>; | ||
#<math>\forall y(\forall x(r(z,f(x,y)))\to r(z,y))</math>, | #<math>\forall y(\forall x(r(z,f(x,y)))\to r(z,y))</math>, | ||
są spełnione przy wartościowaniu <math>v(z) =5</math>, <math>v(y)=7</math> w strukturach <math>\mathfrak | są spełnione przy wartościowaniu <math>v(z) =5</math>, <math>v(y)=7</math> w strukturach <math>\mathfrak A</math> i <math>\mathfrak B</math>. | ||
Wersja z 08:55, 21 wrz 2006
Ćwiczenie 1
Niech , gdzie:
.
Zbadać czy formuły
- ;
- ;
- ;
są spełnione przy wartościowaniu , w strukturze .
Ćwiczenie 2
Niech Parser nie mógł rozpoznać (błąd składni): {\displaystyle \mathfrak A = \<\mathbb Z, f^\mathfrak A, r^\mathfrak A >}
i Parser nie mógł rozpoznać (błąd składni): {\displaystyle \mathfrak B = \< \mathbb Z, f^\mathfrak b, r^\mathfrak b >}
, gdzie
relacją ;
, dla , a jest relacją .
Zbadać czy formuły
- ;
- ,
są spełnione przy wartościowaniu , w strukturach i .
Ćwiczenia 3
\item Czy formuła jest spełniona przy wartościowaniu , i
- w strukturze Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle \strA = \<\NN, r^\strA\>} , gdzie Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle r^\strA} jest
relacją podzielności?
- [(b)] w strukturze Parser nie mógł rozpoznać (nieznana funkcja „\B”): {\displaystyle \B = \<\NN, r^\strB\>} , gdzie Parser nie mógł rozpoznać (nieznana funkcja „\strB”): {\displaystyle r^\strB} jest
relacją przystawania modulo 7?
\item W jakich strukturach prawdziwa jest formuła ?
A formuła
otrzymana przez ,,naiwne podstawienie na ?
\item Podaj przykład modelu i wartościowania, przy którym formuła
\hfil
jest:\quad a) spełniona;\quad b) nie spełniona.
\item Zbadać, czy następujące formuły są tautologiami i czy są spełnialne: %%Rozwiazanie: %84%97bc
;
- ;
- %97b
;
- %97c
.
\item Niech będzie jednoargumentowym symbolem funkcyjnym, który
nie występuje w formule Parser nie mógł rozpoznać (nieznana funkcja „\var”): {\displaystyle \var\varphi}
.
Pokazać, że formuła Parser nie mógł rozpoznać (nieznana funkcja „\var”): {\displaystyle \forall x\exists y \var\varphi}
jest spełnialna
wtedy i tylko wtedy gdy formuła Parser nie mógł rozpoznać (nieznana funkcja „\var”): {\displaystyle \forall x \var\varphi[f(x)/y]}
jest
spełnialna.
\item Udowodnić, że zdanie
\hfil </math>\forall x\exists y\,p(x,y)\wedge \forall x\neg p(x,x) \wedge \forall x\forall y\forall z(p(x,y)\wedge p(y,z)\to p(x,z))</math>.
ma tylko modele nieskończone.
\item Dla każdego napisać takie zdanie Parser nie mógł rozpoznać (nieznana funkcja „\var”): {\displaystyle \var\varphi_n} , że Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle \strA\models\var\varphi_n} zachodzi \wtw, gdy Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle \strA} ma dokładnie elementów.
\item Czy jeśli Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle \strA \models \exists x\,\var\varphi} , to także Parser nie mógł rozpoznać (nieznana funkcja „\strA”): {\displaystyle \strA \models \var\varphi[t/x]} , dla pewnego termu ?