Formula #
def
LO.IntProp.instDecidableEqFormula.decEq
{α✝ : Type u_1}
[DecidableEq α✝]
(x✝ x✝¹ : Formula α✝)
:
Equations
- One or more equations did not get rendered due to their size.
- LO.IntProp.instDecidableEqFormula.decEq (LO.IntProp.Formula.atom a) (LO.IntProp.Formula.atom b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (LO.IntProp.Formula.atom a) LO.IntProp.Formula.falsum = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (LO.IntProp.Formula.atom a) (a_1.and a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (LO.IntProp.Formula.atom a) (a_1.or a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (LO.IntProp.Formula.atom a) (a_1.imp a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq LO.IntProp.Formula.falsum (LO.IntProp.Formula.atom a) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq LO.IntProp.Formula.falsum LO.IntProp.Formula.falsum = isTrue ⋯
- LO.IntProp.instDecidableEqFormula.decEq LO.IntProp.Formula.falsum (a.and a_1) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq LO.IntProp.Formula.falsum (a.or a_1) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq LO.IntProp.Formula.falsum (a.imp a_1) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.and a_1) (LO.IntProp.Formula.atom a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.and a_1) LO.IntProp.Formula.falsum = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.and a_1) (a_2.or a_3) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.and a_1) (a_2.imp a_3) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.or a_1) (LO.IntProp.Formula.atom a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.or a_1) LO.IntProp.Formula.falsum = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.or a_1) (a_2.and a_3) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.or a_1) (a_2.imp a_3) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.imp a_1) (LO.IntProp.Formula.atom a_2) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.imp a_1) LO.IntProp.Formula.falsum = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.imp a_1) (a_2.and a_3) = isFalse ⋯
- LO.IntProp.instDecidableEqFormula.decEq (a.imp a_1) (a_2.or a_3) = isFalse ⋯
Instances For
@[implicit_reducible]
instance
LO.IntProp.instDecidableEqFormula
{α✝ : Type u_1}
[DecidableEq α✝]
:
DecidableEq (Formula α✝)
@[reducible, inline]
Imported declaration from the Incompleteness formalization.
Equations
Instances For
@[reducible, inline]
Imported declaration from the Incompleteness formalization.
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Imported declaration from the Incompleteness formalization.
Equations
- (LO.IntProp.Formula.falsum.imp LO.IntProp.Formula.falsum).toStr = "\\top"
- LO.IntProp.Formula.falsum.toStr = "\\bot"
- (LO.IntProp.Formula.atom a).toStr = "{" ++ toString a ++ "}"
- (φ.imp LO.IntProp.Formula.falsum).toStr = "\\lnot " ++ φ.toStr
- (φ.and ψ).toStr = "\\left(" ++ φ.toStr ++ " \\land " ++ ψ.toStr ++ "\\right)"
- (φ.or ψ).toStr = "\\left(" ++ φ.toStr ++ " \\lor " ++ ψ.toStr ++ "\\right)"
- (φ.imp ψ).toStr = "\\left(" ++ φ.toStr ++ " \\rightarrow " ++ ψ.toStr ++ "\\right)"
Instances For
@[implicit_reducible]
Equations
- LO.IntProp.Formula.instRepr = { reprPrec := fun (t : LO.IntProp.Formula α) (x : ℕ) => Std.Format.text t.toStr }
@[implicit_reducible]
Equations
- LO.IntProp.Formula.instToString = { toString := LO.IntProp.Formula.toStr }
Imported declaration from the Incompleteness formalization.
Equations
- (LO.IntProp.Formula.atom a).complexity = 0
- LO.IntProp.Formula.falsum.complexity = 0
- (φ.imp ψ).complexity = max φ.complexity ψ.complexity + 1
- (φ.and ψ).complexity = max φ.complexity ψ.complexity + 1
- (φ.or ψ).complexity = max φ.complexity ψ.complexity + 1
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
def
LO.IntProp.Formula.cases'
{α : Type u_1}
{C : Formula α → Sort w}
(hfalsum : C ⊥)
(hatom : (a : α) → C (atom a))
(himp : (φ ψ : Formula α) → C (φ ==> ψ))
(hand : (φ ψ : Formula α) → C (φ ⋏ ψ))
(hor : (φ ψ : Formula α) → C (φ ⋎ ψ))
(φ : Formula α)
:
C φ
Imported declaration from the Incompleteness formalization.
Equations
- LO.IntProp.Formula.cases' hfalsum hatom himp hand hor LO.IntProp.Formula.falsum = hfalsum
- LO.IntProp.Formula.cases' hfalsum hatom himp hand hor (LO.IntProp.Formula.atom a) = hatom a
- LO.IntProp.Formula.cases' hfalsum hatom himp hand hor (φ.imp ψ) = himp φ ψ
- LO.IntProp.Formula.cases' hfalsum hatom himp hand hor (φ.and ψ) = hand φ ψ
- LO.IntProp.Formula.cases' hfalsum hatom himp hand hor (φ.or ψ) = hor φ ψ
Instances For
def
LO.IntProp.Formula.rec'
{α : Type u_1}
{C : Formula α → Sort w}
(hfalsum : C ⊥)
(hatom : (a : α) → C (atom a))
(himp : (φ ψ : Formula α) → C φ → C ψ → C (φ ==> ψ))
(hand : (φ ψ : Formula α) → C φ → C ψ → C (φ ⋏ ψ))
(hor : (φ ψ : Formula α) → C φ → C ψ → C (φ ⋎ ψ))
(φ : Formula α)
:
C φ
Imported declaration from the Incompleteness formalization.
Equations
- LO.IntProp.Formula.rec' hfalsum hatom himp hand hor LO.IntProp.Formula.falsum = hfalsum
- LO.IntProp.Formula.rec' hfalsum hatom himp hand hor (LO.IntProp.Formula.atom a) = hatom a
- LO.IntProp.Formula.rec' hfalsum hatom himp hand hor (φ.imp ψ) = himp φ ψ (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor φ) (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor ψ)
- LO.IntProp.Formula.rec' hfalsum hatom himp hand hor (φ.and ψ) = hand φ ψ (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor φ) (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor ψ)
- LO.IntProp.Formula.rec' hfalsum hatom himp hand hor (φ.or ψ) = hor φ ψ (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor φ) (LO.IntProp.Formula.rec' hfalsum hatom himp hand hor ψ)
Instances For
Imported declaration from the Incompleteness formalization.
Equations
- x✝¹.hasDecEq x✝ = inferInstance
Instances For
@[implicit_reducible]
Imported declaration from the Incompleteness formalization.
Equations
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- LO.IntProp.Formula.ofNat 0 = none
Instances For
@[implicit_reducible]
Equations
- LO.IntProp.Formula.instEncodable = { encode := LO.IntProp.Formula.toNat, decode := LO.IntProp.Formula.ofNat, encodek := ⋯ }
@[reducible, inline]
Imported declaration from the Incompleteness formalization.
Equations
Instances For
@[reducible, inline]
Imported declaration from the Incompleteness formalization.