internlm/Lean-Github huggingface dataset:
Theorem: localRuleTruth
Proof state before:
case h.right.inl.inl.inl
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
hyp : ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
g : Formula
w_f : ∀ f ∈ X ++ (Option.map negUnload (some val)).toList, evaluate M w f
g_in : g ∈ L
⊢ evaluate M w g

case h.right.inl.inl.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
hyp : ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
g : Formula
w_f : ∀ f ∈ X ++ (Option.map negUnload (some val)).toList, evaluate M w f
g_in : g ∈ X
⊢ evaluate M w g

case h.right.inl.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
hyp : ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
g : Formula
w_f : ∀ f ∈ X ++ (Option.map negUnload (some val)).toList, evaluate M w f
g_in : g ∈ R
⊢ evaluate M w g

case h.right.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
hyp : ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
g : Formula
w_f : ∀ f ∈ X ++ (Option.map negUnload (some val)).toList, evaluate M w f
g_in : g ∈ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl val))).toList
⊢ evaluate M w g
Tactic:
all_goals aesop
Proof state after:
no goals
Theorem: localRuleTruth
Proof state before:
case h.right.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
hyp : ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
g : Formula
w_f : ∀ f ∈ X ++ (Option.map negUnload (some val)).toList, evaluate M w f
g_in : g ∈ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl val))).toList
⊢ evaluate M w g
Tactic:
aesop
Proof state after:
no goals
Theorem: localRuleTruth
Proof state before:
case mpr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
⊢ (∃ Ci,
      (∃ a b,
          (a, b) ∈ ress ∧
            (match Option.map Sum.inl b with
              | none => (L ++ a, R, some (Sum.inl (~'χ)))
              | some (Sum.inl (~'χ)) => (L ++ a, R, some (Sum.inl (~'χ)))
              | some (Sum.inr (~'χ)) => (L ++ a, R, some (Sum.inr (~'χ)))) =
              Ci) ∧
        (M, w)⊨Ci) →
    ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
Tactic:
rintro ⟨Ci, ⟨⟨X, O, ⟨in_ress, def_Ci⟩⟩, w_Ci⟩⟩
Proof state after:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
Ci : TNode
w_Ci : (M, w)⊨Ci
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
def_Ci :
  (match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))) =
    Ci
⊢ ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
Ci : TNode
w_Ci : (M, w)⊨Ci
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
def_Ci :
  (match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))) =
    Ci
⊢ ∀ (f : Formula), (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f → evaluate M w f
Tactic:
intro f f_in
Proof state after:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
Ci : TNode
w_Ci : (M, w)⊨Ci
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
def_Ci :
  (match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))) =
    Ci
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
Ci : TNode
w_Ci : (M, w)⊨Ci
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
def_Ci :
  (match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))) =
    Ci
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
⊢ evaluate M w f
Tactic:
subst def_Ci
Proof state after:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
w_Ci :
  (M, w)⊨match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
O : Option NegLoadFormula
in_ress : (X, O) ∈ ress
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
w_Ci :
  (M, w)⊨match Option.map Sum.inl O with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f
Tactic:
cases O
Proof state after:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci :
  (M, w)⊨match Option.map Sum.inl none with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f

case mpr.intro.intro.intro.intro.intro.some
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val✝ : NegLoadFormula
in_ress : (X, some val✝) ∈ ress
w_Ci :
  (M, w)⊨match Option.map Sum.inl (some val✝) with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci :
  (M, w)⊨match Option.map Sum.inl none with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f

case mpr.intro.intro.intro.intro.intro.some
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val✝ : NegLoadFormula
in_ress : (X, some val✝) ∈ ress
w_Ci :
  (M, w)⊨match Option.map Sum.inl (some val✝) with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f
Tactic:
all_goals simp at *
Proof state after:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'χ)))
⊢ evaluate M w f

case mpr.intro.intro.intro.intro.intro.some
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val✝ : NegLoadFormula
in_ress : (X, some val✝) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val✝.1)))
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro.some
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val✝ : NegLoadFormula
in_ress : (X, some val✝) ∈ ress
w_Ci :
  (M, w)⊨match Option.map Sum.inl (some val✝) with
    | none => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inl (~'χ)) => (L ++ X, R, some (Sum.inl (~'χ)))
    | some (Sum.inr (~'χ)) => (L ++ X, R, some (Sum.inr (~'χ)))
⊢ evaluate M w f
Tactic:
simp at *
Proof state after:
case mpr.intro.intro.intro.intro.intro.some
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val✝ : NegLoadFormula
in_ress : (X, some val✝) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val✝.1)))
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'χ)))
⊢ evaluate M w f
Tactic:
have := w_Ci f
Proof state after:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this✝ :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'χ)))
this : f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'χ)))).toList → evaluate M w f
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case mpr.intro.intro.intro.intro.intro.none
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this✝ :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
in_ress : (X, none) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'χ)))
this : f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'χ)))).toList → evaluate M w f
⊢ evaluate M w f
Tactic:
aesop
Proof state after:
no goals
Theorem: localRuleTruth
Proof state before:
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
f_in : (f ∈ L ∨ f ∈ R) ∨ (~unload χ) = f
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ evaluate M w f
Tactic:
rcases f_in with (f_in|f_in)|f_in
Proof state after:
case inl.inl
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ L
⊢ evaluate M w f

case inl.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ R
⊢ evaluate M w f

case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : (~unload χ) = f
⊢ evaluate M w f
Theorem: localRuleTruth
Proof state before:
case inl.inl
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ L
⊢ evaluate M w f
Tactic:
apply w_Ci
Proof state after:
case inl.inl.a
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ L
⊢ f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'val.1)))).toList
Theorem: localRuleTruth
Proof state before:
case inl.inl.a
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ L
⊢ f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'val.1)))).toList
Tactic:
simp_all
Proof state after:
no goals
Theorem: localRuleTruth
Proof state before:
case inl.inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ R
⊢ evaluate M w f
Tactic:
apply w_Ci
Proof state after:
case inl.inr.a
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ R
⊢ f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'val.1)))).toList
Theorem: localRuleTruth
Proof state before:
case inl.inr.a
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : f ∈ R
⊢ f ∈ L ++ X ∪ R ∪ (Option.map (Sum.elim negUnload negUnload) (some (Sum.inl (~'val.1)))).toList
Tactic:
simp_all
Proof state after:
no goals
Theorem: localRuleTruth
Proof state before:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
f : Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
f_in : (~unload χ) = f
⊢ evaluate M w f
Tactic:
subst f_in
Proof state after:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ evaluate M w (~unload χ)
Theorem: localRuleTruth
Proof state before:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ evaluate M w (~unload χ)
Tactic:
simp only [evaluate]
Proof state after:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ ¬evaluate M w (unload χ)
Theorem: localRuleTruth
Proof state before:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ ¬evaluate M w (unload χ)
Tactic:
rw [this]
Proof state after:
case inr
W : Type
L R : List Formula
M : KripkeModel W
w : W
ress : List (List Formula × Option NegLoadFormula)
χ : LoadFormula
lrule : LoadRule (~'χ) ress
this :
  ¬evaluate M w (unload χ) ↔
    ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f
X : List Formula
val : NegLoadFormula
in_ress : (X, some val) ∈ ress
w_Ci : (M, w)⊨(L ++ X, R, some (Sum.inl (~'val.1)))
⊢ ∃ f, (∃ a b, (a, b) ∈ ress ∧ Con (a ++ (Option.map negUnload b).toList) = f) ∧ evaluate M w f