Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Structure, variable assignment, satisfaction?

Também chamado de: structure (logic) · variable assignment · satisfaction (logic)

Definition 24.5 University Computer Science — Year 2 · Capítulo 24 — Predicate Logic and Formal Proofs

A structure A\mathcal{A} for a signature is a non-empty set DD, its domain, with a function fA:Dn→Df^{\mathcal{A}} : D^n \to D for each function symbol of arity nn and a relation PA⊆DnP^{\mathcal{A}} \subseteq D^n for each predicate symbol of arity nn. A variable assignment is a function ρ\rho from variables to DD. The value ⟦t⟧ρ\llbracket t \rrbracket_\rho of a term is ρ(x)\rho(x) for a variable and fA(⟦t1⟧ρ,…,⟦tn⟧ρ)f^{\mathcal{A}}(\llbracket t_1 \rrbracket_\rho, \dots, \llbracket t_n \rrbracket_\rho) for f(t1,…,tn)f(t_1, \dots, t_n). Satisfaction A,ρ⊨A\mathcal{A}, \rho \models A is defined by induction on AA:

  • A,ρ⊨P(t1,…,tn)\mathcal{A}, \rho \models P(t_1, \dots, t_n) when (⟦t1⟧ρ,…,⟦tn⟧ρ)∈PA(\llbracket t_1 \rrbracket_\rho, \dots, \llbracket t_n \rrbracket_\rho) \in P^{\mathcal{A}}; A,ρ⊨t1=t2\mathcal{A}, \rho \models t_1 = t_2 when the two values are equal; never A,ρ⊨⊥\mathcal{A}, \rho \models \bot;
  • the connectives as for valuations: A,ρ⊨A∧B\mathcal{A}, \rho \models A \wedge B when both hold, and so on;
  • A,ρ⊨∀x A\mathcal{A}, \rho \models \forall x\, A when A,ρ[x↦d]⊨A\mathcal{A}, \rho[x \mapsto d] \models A for every d∈Dd \in D, and A,ρ⊨∃x A\mathcal{A}, \rho \models \exists x\, A when it holds for at least one d∈Dd \in D, where ρ[x↦d]\rho[x \mapsto d] is ρ\rho changed at xx only.
Ler no capítulo →