@@ -62,18 +62,18 @@ private def s : Suggestion := Unhygienic.run `(tactic| rfl)
6262
6363/--
6464info: Try this:
65- rfl
65+ [ apply ] rfl
6666-/
6767#guard_msgs in
6868-- `Try this: rfl` with `rfl` in text-link color.
6969#demo1 s
7070
7171/--
7272info: Try these:
73- • rfl
74- • rfl
75- • rfl
76- • rfl
73+ [ apply ] rfl
74+ [ apply ] rfl
75+ [ apply ] rfl
76+ [ apply ] rfl
7777-/
7878#guard_msgs in
7979/-
@@ -94,13 +94,13 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.value` has been deprecated: `
9494warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.value` has been deprecated: `SuggestionStyle` is not used anymore.
9595---
9696info: Try these:
97- • rfl
98- • rfl
99- • rfl
100- • rfl
101- • rfl
102- • rfl
103- • rfl
97+ [ apply ] rfl
98+ [ apply ] rfl
99+ [ apply ] rfl
100+ [ apply ] rfl
101+ [ apply ] rfl
102+ [ apply ] rfl
103+ [ apply ] rfl
104104-/
105105#guard_msgs in
106106/-
@@ -123,7 +123,7 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.error` has been deprecated: `
123123warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.error` has been deprecated: `SuggestionStyle` is not used anymore.
124124---
125125info: Try this:
126- rfl
126+ [ apply ] rfl
127127-/
128128#guard_msgs in
129129-- `Try this: rfl` -- error color, no squiggle
@@ -135,7 +135,7 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.warning` has been deprecated:
135135warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.warning` has been deprecated: `SuggestionStyle` is not used anymore.
136136---
137137info: Try this:
138- rfl
138+ [ apply ] rfl
139139-/
140140#guard_msgs in
141141-- `Try this: rfl` -- gold color with warning squiggle
@@ -147,7 +147,7 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.warning` has been deprecated:
147147warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.warning` has been deprecated: `SuggestionStyle` is not used anymore.
148148---
149149info: Try this:
150- rfl
150+ [ apply ] rfl
151151-/
152152#guard_msgs in
153153-- `Try this: rfl` -- gold color with no squiggle
@@ -159,7 +159,7 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.success` has been deprecated:
159159warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.success` has been deprecated: `SuggestionStyle` is not used anymore.
160160---
161161info: Try this:
162- rfl
162+ [ apply ] rfl
163163-/
164164#guard_msgs in
165165-- `Try this: rfl` -- Lean green
@@ -171,7 +171,7 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.asHypothesis` has been deprec
171171warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.asHypothesis` has been deprecated: `SuggestionStyle` is not used anymore.
172172---
173173info: Try this:
174- rfl
174+ [ apply ] rfl
175175-/
176176#guard_msgs in
177177-- `Try this: rfl` -- styled like a goal hypothesis
@@ -183,32 +183,32 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.asInaccessible` has been depr
183183warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.asInaccessible` has been deprecated: `SuggestionStyle` is not used anymore.
184184---
185185info: Try this:
186- rfl
186+ [ apply ] rfl
187187-/
188188#guard_msgs in
189189-- `Try this: rfl` -- styled like an inaccessible goal hypothesis
190190#demo1 {s with style? := some .asInaccessible}
191191
192192/--
193193info: Try this:
194- Starfleet
194+ [ apply ] Starfleet
195195-/
196196#guard_msgs in
197197-- `Try this: Starfleet`
198198#demo1 {s with preInfo? := "Sta" , postInfo? := "eet" }
199199
200200/--
201201info: Try this:
202- a secret message
202+ [ apply ] a secret message
203203-/
204204#guard_msgs in
205205-- `Try this: a secret message`
206206#demo1 {s with messageData? := m!"a secret message" }
207207
208208/--
209209info: Try these:
210- • a secret message
211- • another secret message
210+ [ apply ] a secret message
211+ [ apply ] another secret message
212212-/
213213#guard_msgs in
214214/-
@@ -225,17 +225,17 @@ Try these:
225225
226226/--
227227info: Our only hope is ⏎
228- rfl
228+ [ apply ] rfl
229229-/
230230#guard_msgs in
231231#demo1 s with_header "Our only hope is "
232232
233233/--
234234info: We've got everything here! Such as:
235- • rfl
236- • rfl
237- • rfl
238- • rfl
235+ [ apply ] rfl
236+ [ apply ] rfl
237+ [ apply ] rfl
238+ [ apply ] rfl
239239-/
240240#guard_msgs in
241241#demo #[s,s,s,s] with_header "We've got everything here! Such as:"
@@ -258,11 +258,11 @@ warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.value` has been deprecated: `
258258warning: `Lean.Meta.Tactic.TryThis.SuggestionStyle.value` has been deprecated: `SuggestionStyle` is not used anymore.
259259---
260260info: Grab bag:
261- • This is not a tactic.
262- • This could be a tactic--but watch out!
263- • rfl. Finally, a tactic that just works.
264- • I'm just link-styled.
265- • On a scale of 0 to 1, I'd put this at 0.166667.
261+ [ apply ] This is not a tactic.
262+ [ apply ] This could be a tactic--but watch out!
263+ [ apply ] rfl. Finally, a tactic that just works.
264+ [ apply ] I'm just link-styled.
265+ [ apply ] On a scale of 0 to 1, I'd put this at 0.166667.
266266-/
267267#guard_msgs in
268268#demo #[
@@ -297,7 +297,7 @@ info: Grab bag:
297297menu should read "Consider rfl, please" -/
298298/--
299299info: Try this:
300- rfl
300+ [ apply ] rfl
301301-/
302302#guard_msgs in
303303#demo1 { s with toCodeActionTitle? := fun text => "Consider " ++ text ++ ", please" }
@@ -315,9 +315,9 @@ macro "#demo" s:term "with_code_action_prefix" h:str : command => `(example : Tr
315315menu should read "Maybe use: rfl"; "Maybe use: rfl"; "Also consider rfl, please!" -/
316316/--
317317info: Try these:
318- • rfl
319- • rfl
320- • rfl
318+ [ apply ] rfl
319+ [ apply ] rfl
320+ [ apply ] rfl
321321-/
322322#guard_msgs in
323323#demo #[
0 commit comments