Equations
Equations
- «term·_» = Lean.ParserDescr.node `«term·_» 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "·") (Lean.ParserDescr.cat `term 0))
Instances For
Equations
- «term~_» = Lean.ParserDescr.node `«term~_» 88 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "~") (Lean.ParserDescr.cat `term 88))
Instances For
Equations
- «term□_» = Lean.ParserDescr.node `«term□_» 77 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "□") (Lean.ParserDescr.cat `term 77))
Instances For
Equations
- «term_⋀_» = Lean.ParserDescr.trailingNode `«term_⋀_» 66 67 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "⋀") (Lean.ParserDescr.cat `term 66))
Instances For
Equations
- «term_⋁_» = Lean.ParserDescr.trailingNode `«term_⋁_» 60 61 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "⋁") (Lean.ParserDescr.cat `term 60))
Instances For
Equations
- «term_↣_» = Lean.ParserDescr.trailingNode `«term_↣_» 55 56 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "↣") (Lean.ParserDescr.cat `term 55))
Instances For
Equations
- «term_⟷_» = Lean.ParserDescr.trailingNode `«term_⟷_» 77 77 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "⟷") (Lean.ParserDescr.cat `term 78))
Instances For
Equations
Instances For
Equations
- BigDisjunction = List.foldl (fun (ϕ ψ : Formula) => ~(~ϕ⋀~ψ)) Formula.bottom
Instances For
Equations
- formToString Formula.bottom x✝ = Std.Format.text "⊥"
- formToString (·c) x✝ = Std.Format.text "·" ++ repr c
- formToString (~ϕ) x✝ = Std.Format.text "~" ++ formToString ϕ x✝
- formToString (ϕ⋀ψ) x✝ = Std.Format.text "(" ++ formToString ϕ x✝ ++ Std.Format.text " ⋀ " ++ formToString ψ x✝ ++ Std.Format.text ")"
- formToString (□ϕ) x✝ = Std.Format.text "(□ " ++ formToString ϕ x✝ ++ Std.Format.text ")"
Instances For
Equations
- lengthOfFormula Formula.bottom = 1
- lengthOfFormula (·a) = 1
- lengthOfFormula (~φ) = 1 + lengthOfFormula φ
- lengthOfFormula (φ⋀ψ) = 1 + lengthOfFormula φ + lengthOfFormula ψ
- lengthOfFormula (□φ) = 1 + lengthOfFormula φ
Instances For
Equations
- lengthOfSet x✝ = x✝.sum lengthOfFormula
Instances For
Equations
- formulaHasLength = { lengthOf := lengthOfFormula }
Equations
- setFormulaHasLength = { lengthOf := lengthOfSet }
Equations
Instances For
Equations
- complexityOfSet x✝ = x✝.sum complexityOfFormula
Instances For
Equations
- formulaHasComplexity = { complexityOf := complexityOfFormula }
Equations
- setFormulaHasComplexity = { complexityOf := complexityOfSet }