Normal modal logics
Modal
InductiveTheorems of a normal modal logic#✓fully proved
Let \(\Lambda\) be a set of modal formulas. The theorems of the normal modal logic \(\mathbf{K} \oplus \Lambda\) form the least set of modal formulas that contains, for all modal formulas \(\varphi\), \(\psi\), \(\chi\), the propositional axioms \(\varphi \to (\psi \to \varphi)\), \((\varphi \to (\psi \to \chi)) \to ((\varphi \to \psi) \to (\varphi \to \chi))\) and \(\neg\neg\varphi \to \varphi\) (where \(\neg\varphi\) is \(\varphi \to \bot\)) and the distribution axiom \(\Box(\varphi \to \psi) \to (\Box\varphi \to \Box\psi)\), that contains every member of \(\Lambda\), and that is closed under modus ponens (from \(\varphi \to \psi\) and \(\varphi\) infer \(\psi\)) and necessitation (from \(\varphi\) infer \(\Box\varphi\)).
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
def axiomK (phi psi : Formula Atom) : Formula Atom :=
.imp (.box (.imp phi psi)) (.imp (.box phi) (.box psi))
CSLibExt/Logics/Modal/Kripke.lean:61
Uses 3 · Used by 61
InductiveLocal consequence in a normal modal logic#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas. The local consequences of the hypotheses \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\) form the least set of modal formulas that contains every member of \(\Gamma\) and every theorem of \(\mathbf{K} \oplus \Lambda\) and is closed under modus ponens: whenever it contains \(\varphi \to \psi\) and \(\varphi\), it contains \(\psi\).
Necessitation applies to theorems only, not to hypotheses.
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 2 · Used by 46
Axioms
DefinitionExtra axioms of the modal logic K#✓fully proved
The set of extra axioms of the normal modal logic K is the empty set of modal formulas over a given type of atoms; that is, K adds no axioms to the propositional axioms and the distribution axiom.
def K : Set (Formula Atom) := ∅
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 1 · Used by 12
DefinitionExtra axioms of T#✓fully proved
The extra axioms of the modal logic T are the formulas \(\Box\varphi \to \varphi\) (axiom T), for all modal formulas \(\varphi\).
def T : Set (Formula Atom) := Set.range Formula.axiomT
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
def axiomT (phi : Formula Atom) : Formula Atom := .imp (.box phi) phi
CSLibExt/Logics/Modal/Kripke.lean:65
Uses 2 · Used by 10
DefinitionExtra axioms of S4#✓fully proved
The extra axioms of the modal logic S4 are the formulas \(\Box\varphi \to \varphi\) (axiom T) and \(\Box\varphi \to \Box\Box\varphi\) (axiom 4), for all modal formulas \(\varphi\).
def S4 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFour
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
def axiomT (phi : Formula Atom) : Formula Atom := .imp (.box phi) phi
CSLibExt/Logics/Modal/Kripke.lean:65
def axiomFour (phi : Formula Atom) : Formula Atom := .imp (.box phi) (.box (.box phi))
CSLibExt/Logics/Modal/Kripke.lean:68
Uses 3 · Used by 10
DefinitionExtra axioms of S5#✓fully proved
For a modal formula \(\varphi\), write \(\Diamond\varphi\) for \(\neg\Box\neg\varphi\). The extra axioms of the modal logic S5 are the formulas \(\Box\varphi \to \varphi\) (axiom T) and \(\Diamond\varphi \to \Box\Diamond\varphi\) (axiom 5), for all modal formulas \(\varphi\).
def S5 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFive
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
def axiomT (phi : Formula Atom) : Formula Atom := .imp (.box phi) phi
CSLibExt/Logics/Modal/Kripke.lean:65
def axiomFive (phi : Formula Atom) : Formula Atom := .imp (dia phi) (.box (dia phi))
CSLibExt/Logics/Modal/Kripke.lean:77
Uses 3 · Used by 10
Derivable
TheoremSelf-implication is a theorem#✓fully proved
Let \(\Lambda\) be a set of modal formulas. For every modal formula \(\varphi\), the formula \(\varphi \to \varphi\) is a theorem of the normal modal logic \(\mathbf{K} \oplus \Lambda\).
theorem imp_self (phi : Formula Atom) : Derivable Λ (.imp phi phi)
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 2 · Used by 2
TheoremMonotonicity of theorems in the extra axioms#✓fully proved
Let \(\Lambda \subseteq \Lambda'\) be sets of modal formulas. Every theorem of the normal modal logic \(\mathrm{K} \oplus \Lambda\) is a theorem of \(\mathrm{K} \oplus \Lambda'\).
theorem mono (hΛ : Λ ⊆ Λ') {phi : Formula Atom} (h : Derivable Λ phi) : Derivable Λ' phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 4
Local consequence
TheoremMonotonicity of local consequence in the hypotheses#✓fully proved
Let \(\Lambda\), \(\Gamma\) and \(\Delta\) be sets of modal formulas with \(\Gamma \subseteq \Delta\). If a formula \(\varphi\) is a local consequence of the hypotheses \(\Gamma\) in the normal modal logic \(\mathrm{K} \oplus \Lambda\), then \(\varphi\) is a local consequence of the hypotheses \(\Delta\) in \(\mathrm{K} \oplus \Lambda\).
theorem mono (hΓ : Γ ⊆ Δ) (h : Deduces Λ Γ phi) : Deduces Λ Δ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 3 · Used by 7
TheoremTransitivity of local consequence#✓fully proved
Let \(\Lambda\) be a set of modal formulas and let \(\Gamma\) and \(\Delta\) be sets of formulas such that every formula of \(\Delta\) is a local consequence of \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\). If a formula \(\varphi\) is a local consequence of \(\Delta\) in \(\mathbf{K} \oplus \Lambda\), then \(\varphi\) is a local consequence of \(\Gamma\) in \(\mathbf{K} \oplus \Lambda\).
theorem trans (hΔ : ∀ psi ∈ Δ, Deduces Λ Γ psi) (h : Deduces Λ Δ phi) : Deduces Λ Γ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 3 · Used by 1
TheoremThe deduction theorem for local modal consequence, forward direction#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas and let \(\varphi\), \(\psi\) be modal formulas. If \(\varphi\) is a local consequence of \(\Gamma \cup \{\psi\}\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then \(\psi \to \varphi\) is a local consequence of \(\Gamma\) in \(\mathbf{K} \oplus \Lambda\).
theorem imp_of_insert (h : Deduces Λ (insert psi Γ) phi) : Deduces Λ Γ (.imp psi phi)
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 4 · Used by 8
TheoremThe deduction theorem for local modal consequence#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas and let \(\varphi\), \(\psi\) be modal formulas. In the normal modal logic \(\mathbf{K} \oplus \Lambda\), \(\varphi\) is a local consequence of \(\Gamma \cup \{\psi\}\) if and only if \(\psi \to \varphi\) is a local consequence of \(\Gamma\).
theorem _root_.Cslib.Modal.deduces_insert_iff :
Deduces Λ (insert psi Γ) phi ↔ Deduces Λ Γ (.imp psi phi)
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
TheoremConsequences of no hypotheses are the theorems#✓fully proved
Let \(\Lambda\) be a set of modal formulas. A modal formula \(\varphi\) is a local consequence of the empty set of hypotheses in the normal modal logic \(\mathbf{K} \oplus \Lambda\) if and only if \(\varphi\) is a theorem of \(\mathbf{K} \oplus \Lambda\).
theorem _root_.Cslib.Modal.deduces_empty_iff : Deduces Λ ∅ phi ↔ Derivable Λ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 3 · Used by 10
TheoremCompactness of local modal consequence#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas. If a modal formula \(\varphi\) is a local consequence of the hypotheses \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then there is a finite set \(\Delta \subseteq \Gamma\) such that \(\varphi\) is a local consequence of \(\Delta\) in \(\mathbf{K} \oplus \Lambda\).
theorem exists_finset (h : Deduces Λ Γ phi) :
∃ Δ : Finset (Formula Atom), ↑Δ ⊆ Γ ∧ Deduces Λ ↑Δ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 4 · Used by 2
TheoremEx falso quodlibet#✓fully proved
Let \(\Lambda\) be a set of modal formulas and \(\Gamma\) a set of hypotheses. If \(\bot\) is a local consequence of \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then every formula \(\varphi\) is a local consequence of \(\Gamma\) in \(\mathbf{K} \oplus \Lambda\).
theorem of_bot (h : Deduces Λ Γ .bot) : Deduces Λ Γ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 4 · Used by 2
TheoremContradiction yields falsity#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas and let \(\varphi\) be a modal formula. If both \(\varphi\) and its negation \(\neg\varphi\) are local consequences of the hypotheses \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then so is \(\bot\).
theorem bot_of_neg (h₁ : Deduces Λ Γ phi) (h₂ : Deduces Λ Γ phi.neg) : Deduces Λ Γ .bot
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 3 · Used by 3
TheoremProof by contradiction#✓fully proved
Let \(\Lambda\) be a set of modal formulas, \(\Gamma\) a set of hypotheses and \(\varphi\) a formula. If \(\bot\) is a local consequence of \(\Gamma \cup \{\neg\varphi\}\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then \(\varphi\) is a local consequence of \(\Gamma\) in \(\mathbf{K} \oplus \Lambda\).
theorem of_insert_neg (h : Deduces Λ (insert phi.neg Γ) .bot) : Deduces Λ Γ phi
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 5 · Used by 2
TheoremNegation introduction#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas and \(\varphi\) a formula. If \(\bot\) is a local consequence of the hypotheses \(\Gamma \cup \{\varphi\}\) in the normal modal logic \(\mathrm{K} \oplus \Lambda\), then \(\neg\varphi\) is a local consequence of \(\Gamma\) in \(\mathrm{K} \oplus \Lambda\), where \(\neg\varphi\) abbreviates \(\varphi \to \bot\).
theorem neg_of_insert (h : Deduces Λ (insert phi Γ) .bot) : Deduces Λ Γ phi.neg
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 4 · Used by 6
TheoremHypothetical syllogism#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas and let \(\varphi\), \(\psi\), \(\chi\) be modal formulas. If \(\varphi \to \psi\) and \(\psi \to \chi\) are local consequences of the hypotheses \(\Gamma\) in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then so is \(\varphi \to \chi\).
theorem imp_trans (h₁ : Deduces Λ Γ (.imp phi psi)) (h₂ : Deduces Λ Γ (.imp psi chi)) :
Deduces Λ Γ (.imp phi chi)
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
TheoremDouble-negation introduction#✓fully proved
Let \(\Lambda\) and \(\Gamma\) be sets of modal formulas. If a formula \(\varphi\) is a local consequence of the hypotheses \(\Gamma\) in the normal modal logic \(\mathrm{K} \oplus \Lambda\), then so is \(\neg\neg\varphi\), where \(\neg\psi\) abbreviates \(\psi \to \bot\).
theorem neg_neg (h : Deduces Λ Γ phi) : Deduces Λ Γ phi.neg.neg
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 6 · Used by 1
Derivable
TheoremLocal consequences of theorems are theorems#✓fully proved
Let \(\Lambda\) be a set of modal formulas and let \(\Gamma\) be a set of formulas each of which is a theorem of the normal modal logic \(\mathbf{K} \oplus \Lambda\). If a formula \(\varphi\) is a local consequence of \(\Gamma\) in \(\mathbf{K} \oplus \Lambda\), then \(\varphi\) is a theorem of \(\mathbf{K} \oplus \Lambda\).
theorem of_deduces {Γ : Set (Formula Atom)} (hΓ : ∀ psi ∈ Γ, Derivable Λ psi)
(h : Deduces Λ Γ phi) : Derivable Λ phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
TheoremThe monotonicity rule for necessity#✓fully proved
Let \(\Lambda\) be a set of modal formulas and let \(\varphi\), \(\psi\) be modal formulas. If \(\varphi \to \psi\) is a theorem of the normal modal logic \(\mathbf{K} \oplus \Lambda\), then so is \(\Box\varphi \to \Box\psi\).
theorem box_imp_box (h : Derivable Λ (.imp phi psi)) : Derivable Λ (.imp (.box phi) (.box psi))
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 3 · Used by 1
Modal
TheoremSoundness of modal Hilbert systems for Kripke models#✓fully proved
Let \(\Lambda\) be a set of modal formulas and \(M\) a Kripke model in which every formula of \(\Lambda\) is valid. Then every formula derivable in \(K \oplus \Lambda\) (from the propositional axioms, the distribution axiom and the members of \(\Lambda\) by modus ponens and necessitation) is valid in \(M\), that is, it holds at every world of \(M\).
theorem Derivable.valid (hΛ : ∀ psi ∈ Λ, M.Valid psi) {phi : Formula Atom}
(h : Derivable Λ phi) : M.Valid phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 8 · Used by 6
TheoremLocal soundness#✓fully proved
Let \(M\) be a Kripke model and \(\Lambda\) a set of modal formulas each of which is valid in \(M\). If a formula \(\varphi\) is a local consequence of a set \(\Gamma\) of formulas in the normal modal logic \(\mathbf{K} \oplus \Lambda\), then \(\varphi\) holds at every world of \(M\) at which every formula of \(\Gamma\) holds.
theorem Deduces.satisfies (hΛ : ∀ psi ∈ Λ, M.Valid psi) {Γ : Set (Formula Atom)}
{phi : Formula Atom} (h : Deduces Λ Γ phi) {world : World}
(hΓ : ∀ psi ∈ Γ, M.Satisfies world psi) : M.Satisfies world phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Deduces (Λ : Set (Formula Atom)) (Γ : Set (Formula Atom)) : Formula Atom → Prop
| hyp {phi : Formula Atom} : phi ∈ Γ → Deduces Λ Γ phi
| thm {phi : Formula Atom} : Derivable Λ phi → Deduces Λ Γ phi
| mp {phi psi : Formula Atom} : Deduces Λ Γ (.imp phi psi) → Deduces Λ Γ phi → Deduces Λ Γ psi
CSLibExt/Logics/Modal/Hilbert.lean:81
Uses 7 · Used by 4
TheoremSoundness of K for Kripke models#✓fully proved
Every theorem of the modal logic K is valid in every Kripke model: if a formula \(\varphi\) is derivable in K, then \(\varphi\) holds at every world of every Kripke model \(M\).
theorem Derivable.valid_K {phi : Formula Atom} (h : Derivable Axioms.K phi) : M.Valid phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def K : Set (Formula Atom) := ∅
CSLibExt/Logics/Modal/Hilbert.lean:91
Uses 6 · Used by 5
TheoremSoundness of T for reflexive Kripke models#✓fully proved
If the accessibility relation of a Kripke model \(M\) is reflexive, then every formula derivable in the modal logic T is valid in \(M\), that is, it holds at every world of \(M\).
theorem Derivable.valid_T (refl : ∀ world, M.rel world world) {phi : Formula Atom}
(h : Derivable Axioms.T phi) : M.Valid phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def T : Set (Formula Atom) := Set.range Formula.axiomT
CSLibExt/Logics/Modal/Hilbert.lean:94
Uses 8 · Used by 4
TheoremSoundness of S4 for reflexive transitive Kripke models#✓fully proved
If the accessibility relation of a Kripke model \(M\) is reflexive and transitive, then every formula derivable in the modal logic S4 is valid in \(M\), that is, it holds at every world of \(M\).
theorem Derivable.valid_S4 (refl : ∀ world, M.rel world world)
(trans : ∀ {first second third}, M.rel first second → M.rel second third →
M.rel first third)
{phi : Formula Atom} (h : Derivable Axioms.S4 phi) : M.Valid phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def S4 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFour
CSLibExt/Logics/Modal/Hilbert.lean:97
Uses 10 · Used by 4
TheoremSoundness of S5 for Kripke models with an equivalence relation#✓fully proved
If the accessibility relation of a Kripke model \(M\) is an equivalence relation, then every formula derivable in the modal logic S5 is valid in \(M\), that is, it holds at every world of \(M\).
theorem Derivable.valid_S5 (equiv : Equivalence M.rel) {phi : Formula Atom}
(h : Derivable Axioms.S5 phi) : M.Valid phi
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def S5 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFive
CSLibExt/Logics/Modal/Hilbert.lean:100
Uses 10 · Used by 4
DefinitionThe one-world Kripke model#✓fully proved
For any type of atoms, the one-world Kripke model has a single world, which sees itself, and every atom is false at that world.
def KripkeModel.unit : KripkeModel PUnit.{1} Atom where
nonempty_world := ⟨PUnit.unit⟩
rel _ _ := True
valuation _ _ := False
structure KripkeModel (World : Type u) (Atom : Type v) where
/-- There is at least one world. -/
nonempty_world : Nonempty World
/-- The accessibility relation. -/
rel : World → World → Prop
/-- The atoms true at each world. -/
valuation : World → Atom → Prop
CSLibExt/Logics/Modal/Kripke.lean:83
rel : World → World → Prop
CSLibExt/Logics/Modal/Kripke.lean:87
valuation : World → Atom → Prop
CSLibExt/Logics/Modal/Kripke.lean:89
Uses 1 · Used by 6
TheoremThe one-world model has an equivalence relation#✓fully proved
The accessibility relation of the one-world Kripke model, whose single world sees itself and at which every atom is false, is an equivalence relation.
theorem KripkeModel.unit_equivalence : Equivalence (KripkeModel.unit (Atom := Atom)).rel
def KripkeModel.unit : KripkeModel PUnit.{1} Atom where
nonempty_world := ⟨PUnit.unit⟩
rel _ _ := True
valuation _ _ := False
CSLibExt/Logics/Modal/Hilbert.lean:302
Uses 2 · Used by 1
TheoremConsistency of normal modal logics#✓fully proved
Let \(\Lambda\) be a set of modal formulas each of which is valid in the one-world Kripke model whose world sees itself and in which every atom is false. Then \(\bot\) is not a theorem of the normal modal logic \(\mathrm{K} \oplus \Lambda\).
theorem not_derivable_bot (hΛ : ∀ psi ∈ Λ, KripkeModel.unit.Valid psi) : ¬Derivable Λ .bot
def KripkeModel.unit : KripkeModel PUnit.{1} Atom where
nonempty_world := ⟨PUnit.unit⟩
rel _ _ := True
valuation _ _ := False
CSLibExt/Logics/Modal/Hilbert.lean:302
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
Uses 5
TheoremConsistency of S5#✓fully proved
For every type of atoms, \(\bot\) is not a theorem of the normal modal logic S5, whose extra axioms are the formulas \(\Box\varphi \to \varphi\) and \(\Diamond\varphi \to \Box\Diamond\varphi\), where \(\Diamond\varphi\) abbreviates \(\neg\Box\neg\varphi\) and \(\neg\psi\) abbreviates \(\psi \to \bot\).
theorem not_derivable_bot_S5 : ¬Derivable (Axioms.S5 : Set (Formula Atom)) .bot
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def S5 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFive
CSLibExt/Logics/Modal/Hilbert.lean:100
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 6 · Used by 1
TheoremConsistency of S4#✓fully proved
For every type of atoms, \(\bot\) is not a theorem of the normal modal logic S4, whose extra axioms are the formulas \(\Box\varphi \to \varphi\) and \(\Box\varphi \to \Box\Box\varphi\).
theorem not_derivable_bot_S4 : ¬Derivable (Axioms.S4 : Set (Formula Atom)) .bot
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def S4 : Set (Formula Atom) := Set.range Formula.axiomT ∪ Set.range Formula.axiomFour
CSLibExt/Logics/Modal/Hilbert.lean:97
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 6 · Used by 1
TheoremConsistency of T#✓fully proved
For every type of atoms, \(\bot\) is not a theorem of the normal modal logic T, whose extra axioms are the formulas \(\Box\varphi \to \varphi\).
theorem not_derivable_bot_T : ¬Derivable (Axioms.T : Set (Formula Atom)) .bot
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def T : Set (Formula Atom) := Set.range Formula.axiomT
CSLibExt/Logics/Modal/Hilbert.lean:94
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 5 · Used by 1
TheoremConsistency of K#✓fully proved
For every type of atoms, \(\bot\) is not a theorem of the normal modal logic K, the logic with no extra axioms.
theorem not_derivable_bot_K : ¬Derivable (Axioms.K : Set (Formula Atom)) .bot
inductive Derivable (Λ : Set (Formula Atom)) : Formula Atom → Prop
| ax1 (phi psi : Formula Atom) : Derivable Λ (.imp phi (.imp psi phi))
| ax2 (phi psi chi : Formula Atom) :
Derivable Λ (.imp (.imp phi (.imp psi chi)) (.imp (.imp phi psi) (.imp phi chi)))
| dne (phi : Formula Atom) : Derivable Λ (.imp phi.neg.neg phi)
| distrib (phi psi : Formula Atom) : Derivable Λ (Formula.axiomK phi psi)
| extra {phi : Formula Atom} : phi ∈ Λ → Derivable Λ phi
| mp {phi psi : Formula Atom} : Derivable Λ (.imp phi psi) → Derivable Λ phi → Derivable Λ psi
| nec {phi : Formula Atom} : Derivable Λ phi → Derivable Λ (.box phi)
CSLibExt/Logics/Modal/Hilbert.lean:69
def K : Set (Formula Atom) := ∅
CSLibExt/Logics/Modal/Hilbert.lean:91
inductive Formula (α : Type u) : Type u where
| atom : α → Formula α
| bot : Formula α
| imp : Formula α → Formula α → Formula α
| box : Formula α → Formula α
deriving DecidableEq, Repr
CSLibExt/Logics/Modal/Kripke.lean:34
Uses 5 · Used by 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.