Documentation

RegexCorrectness.Data.Expr.Semantics.GroupMap

Instances For
    Instances For
      def Regex.Data.Expr.GroupMap.get {s : String} (tag : ) (self : GroupMap s) :
      Equations
      Instances For
        def Regex.Data.Expr.GroupMap.openGroup {s : String} (tag : ) (startAt : s.Pos) (self : GroupMap s) :
        Equations
        Instances For
          def Regex.Data.Expr.GroupMap.closeGroup {s : String} (tag : ) (endAt : s.Pos) (self : GroupMap s) :
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Regex.Data.Expr.GroupMap.setClosed {s : String} (tag : ) (startAt endAt : s.Pos) (self : GroupMap s) :
            Equations
            Instances For
              Equations
              Instances For
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_openGroup_self {s : String} (self : GroupMap s) (tag : ) (startAt : s.Pos) :
                get tag (openGroup tag startAt self) = GroupInfo.started startAt
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_openGroup_of_ne {s : String} (self : GroupMap s) {tag tag' : } (startAt : s.Pos) (h : tag' tag) :
                get tag' (openGroup tag startAt self) = get tag' self
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_setClosed_self {s : String} (self : GroupMap s) (tag : ) (startAt endAt : s.Pos) :
                get tag (setClosed tag startAt endAt self) = GroupInfo.closed startAt endAt
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_setClosed_of_ne {s : String} (self : GroupMap s) {tag tag' : } (startAt endAt : s.Pos) (h : tag' tag) :
                get tag' (setClosed tag startAt endAt self) = get tag' self
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_closeGroup_of_ne {s : String} (self : GroupMap s) {tag tag' : } (endAt : s.Pos) (h : tag' tag) :
                get tag' (closeGroup tag endAt self) = get tag' self
                @[simp]
                theorem Regex.Data.Expr.GroupMap.get_closeGroup_self {s : String} (self : GroupMap s) (tag : ) (endAt : s.Pos) :
                get tag (closeGroup tag endAt self) = match get tag self with | GroupInfo.started startAt => GroupInfo.closed startAt endAt | x => x
                theorem Regex.Data.Expr.GroupMap.ext {s : String} {x y : GroupMap s} (h : ∀ (tag : ), get tag x = get tag y) :
                x = y
                theorem Regex.Data.Expr.GroupMap.openGroup_setClosed_comm {s : String} (self : GroupMap s) {tag tag' : } {openAt first last : s.Pos} (h : tag' tag) :
                setClosed tag' first last (openGroup tag openAt self) = openGroup tag openAt (setClosed tag' first last self)
                theorem Regex.Data.Expr.GroupMap.get_addCaptures_eq_self_of_forall_not_mem {s : String} (self : GroupMap s) {groups : CaptureGroups s} {tag : } (h : ∀ (first last : s.Pos), (tag, first, last)groups) :
                get tag (self.addCaptures groups) = get tag self
                theorem Regex.Data.Expr.GroupMap.addCaptures_openGroup_comm_of_forall_not_mem {s : String} (self : GroupMap s) {groups : CaptureGroups s} {tag : } {startAt : s.Pos} (hmem : ∀ (first last : s.Pos), (tag, first, last)groups) :
                (openGroup tag startAt self).addCaptures groups = openGroup tag startAt (self.addCaptures groups)
                theorem Regex.Data.Expr.GroupMap.get_addCaptures_openGroup_eq_of_ne {s : String} (self : GroupMap s) {groups : CaptureGroups s} {tag tag' : } {startAt : s.Pos} (hmem : ∀ (first last : s.Pos), (tag, first, last)groups) (hne : tag' tag) :
                get tag' ((openGroup tag startAt self).addCaptures groups) = get tag' (self.addCaptures groups)
                theorem Regex.Data.Expr.GroupMap.closeGroup_addCaptures_openGroup_eq_addCaptures_group {s : String} (self : GroupMap s) {groups : CaptureGroups s} {tag : } {startAt endAt : s.Pos} (hmem : ∀ (first last : s.Pos), (tag, first, last)groups) :
                closeGroup tag endAt ((openGroup tag startAt self).addCaptures groups) = self.addCaptures (CaptureGroups.group tag startAt endAt groups)