Skip to content
Snippets Groups Projects

Proof judgement ADT, sugars and printer

Merged Viktor Kuncak requested to merge github/fork/FlorianCassayre/proof-judgement into main

Created by: FlorianCassayre

Proof judgement

sealed abstract class SCProofCheckerJudgement:
  def isValid: Boolean

case object SCValidProof extends SCProofCheckerJudgement
case class SCInvalidProof(path: Seq[Int], message: String) extends SCProofCheckerJudgement

Structurally equivalent to an Option[(Seq[Int], String)], but makes more sense.

Incorrect indentation in Printer

The negative indices weren't aligned with the rest (this was introduced by a careless copy paste).

Missing syntactic sugars

Added the following missing syntactic sugars:

  • Pattern matching extractors for infix/unary operators
    formula match
      case a ==> b => ...
      case a <=> b => ...
  • Sequent from tuples and various other collections
    () |- (a, b)
  • Conversions of terms to labels

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading