Notation #
Notation regex% to build the regular expression at compile time.
Equations
Instances For
proof of n < m
example : 1 < 300 := @of_decide_eq_true (1 < 300) (Nat.decLt 1 300) (Eq.refl true)
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Regex.Notation.mkTermOfFin f = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `Fin.mk).raw } #[{ raw := (Lean.Syntax.mkNumLit (toString ↑f)).raw }, Regex.Notation.mkTermOfDecideLt (↑f) n]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfUInt32 n = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `UInt32.mk).raw } #[Lean.quote `term n.toFin]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfTransition t = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.Transition.mk).raw } #[Lean.quote `term t.start, Lean.quote `term t.end, Lean.quote `term t.next]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfLook NFA.Look.Start = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.Start).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.End = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.End).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.EndWithOptionalLF = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.EndWithOptionalLF).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.StartLF = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.StartLF).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.EndLF = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.EndLF).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.StartCRLF = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.StartCRLF).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.EndCRLF = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.EndCRLF).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordUnicode = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordUnicode).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordUnicodeNegate = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordUnicodeNegate).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordStartUnicode = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordStartUnicode).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordEndUnicode = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordEndUnicode).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordStartHalfUnicode = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordStartHalfUnicode).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.WordEndHalfUnicode = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.WordEndHalfUnicode).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.PreviousMatch = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.PreviousMatch).raw } #[]
- Regex.Notation.mkTermOfLook NFA.Look.ClearMatches = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Look.ClearMatches).raw } #[]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfRole NFA.Capture.Role.Start = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Capture.Role.Start).raw } #[]
- Regex.Notation.mkTermOfRole NFA.Capture.Role.End = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Capture.Role.End).raw } #[]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfCapture c = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Capture.mk).raw } #[Regex.Notation.mkTermOfRole c.role, Lean.quote `term c.group]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermOfEatMode (NFA.Checked.EatMode.Until sid) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.EatMode.Until).raw } #[Regex.Notation.mkTermOfFin sid]
- Regex.Notation.mkTermOfEatMode (NFA.Checked.EatMode.ToLast sid) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.EatMode.ToLast).raw } #[Regex.Notation.mkTermOfFin sid]
Instances For
@[implicit_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
- Regex.Notation.mkTermOfState (NFA.Checked.State.Empty next) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.Empty).raw } #[Regex.Notation.mkTermOfFin next]
- Regex.Notation.mkTermOfState NFA.Checked.State.Fail = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.Fail).raw } #[]
- Regex.Notation.mkTermOfState (NFA.Checked.State.RemoveFrameStep s_2) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.RemoveFrameStep).raw } #[Regex.Notation.mkTermOfFin s_2]
- Regex.Notation.mkTermOfState (NFA.Checked.State.ByteRange t) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.ByteRange).raw } #[Regex.Notation.mkTermOfTransition t]
- Regex.Notation.mkTermOfState (NFA.Checked.State.Union alts) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.Union).raw } #[Lean.quote `term alts]
- Regex.Notation.mkTermOfState (NFA.Checked.State.UnionReverse alts) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.UnionReverse).raw } #[Lean.quote `term alts]
- Regex.Notation.mkTermOfState (NFA.Checked.State.Match id) = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `NFA.Checked.State.Match).raw } #[{ raw := (Regex.Notation.toNumLit id).raw }]
Instances For
@[implicit_reducible]
Equations
Equations
- Regex.Notation.mkTermIsEq n = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `Eq.refl).raw } #[{ raw := (Regex.Notation.toNumLit n).raw }]
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Regex.Notation.mkTermOfRegex re = Lean.Syntax.mkApp { raw := (Lean.mkCIdent `Regex.mk).raw } #[Regex.Notation.mkTermOfNfa re.nfa]
Instances For
@[implicit_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Regex.Notation.regex_ = Lean.ParserDescr.node `Regex.Notation.regex_ 1022 (Lean.ParserDescr.const `str)
Instances For
Equations
- Regex.Notation.«termRegex%_» = Lean.ParserDescr.node `Regex.Notation.«termRegex%_» 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "regex%") (Lean.ParserDescr.cat `regex 0))