Documentation

CslibFrontier.Logics.SecondOrder.Encoding

Encodings of finite families of relation variables #

Cslib.Logic.ESO.varLanguage.vocabulary converts an enumeration of finitely many relation variables into the vocabulary that serializes their truth tables. It retains the declared arity of each variable, including nullary relations, and admits an empty family.

Main definitions #

Main results #

def Cslib.Logic.ESO.varLanguage.vocabulary {ι : Type} {m : ℕ} (arity : ι → ℕ) (e : Fin m ≃ ι) :

Enumerate relation variables in the supplied order, retaining their arities.

@[simp]
theorem Cslib.Logic.ESO.varLanguage.arity_vocabulary {ι : Type} {m : ℕ} (arity : ι → ℕ) (e : Fin m ≃ ι) (j : Fin m) :
(vocabulary arity e).arity j = arity (e j)

The arity of a variable in the enumeration is its declared arity.

@[simp]
theorem Cslib.Logic.ESO.varLanguage.index_vocabulary {ι : Type} {m : ℕ} (arity : ι → ℕ) (e : Fin m ≃ ι) (r : (k : ℕ) × (varLanguage arity).Relations k) :
(vocabulary arity e).index r = ↑(e.symm ↑r.snd)

A relation variable's table is at its position in the supplied enumeration.