Documentation

Regex.Compiler.Lemmas.Basic

@[simp]
theorem Compiler.Lemmas.isAppend_trans {s1 s2 s3 : Array NFA.Unchecked.State} (h1 : isAppend s1 s2) (h2 : isAppend s2 s3) :
isAppend s1 s3
theorem Compiler.Lemmas.all_push {sid : NFA.Unchecked.State} (states : Array NFA.Unchecked.State) (h : sid.nextOf ≤ states.size) (hlt : ∀ (i : Nat) (x : i < states.size), states[i].nextOf < states.size) (i : Nat) (x✝ : i < (states.push sid).size) :
(states.push sid)[i].nextOf < (states.push sid).size
theorem Compiler.Lemmas.cValid_of_empty (captures : Array NFA.Capture) (h : captures.size = 0) :
cValid captures
@[simp]
theorem Compiler.Lemmas.cMemAndValid_of_cValid_of_eq (captures s : Array NFA.Capture) :
s = captures ∧ cValid captures → cMemAndValid captures s
@[simp]
theorem Compiler.Lemmas.valid_of_push_of_role_start (captures : Array NFA.Capture) (capture : NFA.Capture) (hr : capture.role = NFA.Capture.Role.Start) (hc : NFA.Capture.Valid captures) :
NFA.Capture.Valid (captures.push capture)
@[simp]
theorem Compiler.Lemmas.cMemAndValid_of_push_of_role_start (captures : Array NFA.Capture) (capture : NFA.Capture) (hr : capture.role = NFA.Capture.Role.Start) (hc : cValid captures) :
cMemAndValid captures (captures.push capture)
theorem Compiler.Lemmas.cMemAndValid_of_push_of_role_end (captures : Array NFA.Capture) (capture : NFA.Capture) (hc : cValid captures) (h : ∃ (c : NFA.Capture), c ∈ captures ∧ c.role = NFA.Capture.Role.Start ∧ c.group = capture.group) :
cMemAndValid captures (captures.push capture)