Documentation

Trestle.Model.OfFun

ofFun #

@[simp]
theorem Trestle.Model.PropForm.eval_ofBool {ν✝ : Type u_1} {τ : PropAssignment ν✝} (b : Bool) :
eval τ (ofBool b) = b
def Trestle.Model.PropForm.ofFun {V : Type u_1} [DecidableEq V] (p : PropAssignment VBool) (L : List V) (h : ∀ (v : V), v L) :

Any function from assignments to Prop over a list of variables can be written as a PropForm, by truth table construction.

Equations
Instances For
    def Trestle.Model.PropForm.ofFun.aux {V : Type u_1} [DecidableEq V] (p : PropAssignment VBool) (rem : List V) (passn : (v : V) → vremBool) :
    Equations
    Instances For
      @[simp]
      theorem Trestle.Model.PropForm.eval_ofFun {V : Type u_1} {p : PropAssignment VBool} {τ : PropAssignment V} [DecidableEq V] {L : List V} {hc : ∀ (v : V), v L} :
      eval τ (ofFun p L hc) = p τ
      @[simp]
      theorem Trestle.Model.PropForm.entails_ofFun {V : Type u_1} [DecidableEq V] {L : List V} {hc : ∀ (v : V), v L} (p : PropAssignment VBool) (τ : PropAssignment V) :
      τ ofFun p L hc p τ = true
      Equations
      Instances For
        @[simp]

        ofSet #

        @[simp]
        theorem Trestle.Model.PropFun.satisfies_ofSet {V : Type u_1} {τ : PropAssignment V} [DecidableEq V] [Fintype V] (S : Set (PropAssignment V)) [DecidablePred fun (x : PropAssignment V) => x S] :
        τ ofSet S τ S