@@ -65,15 +65,23 @@ mutual
6565
6666 data SpecialName = WhereN Int TTName TTName
6767 | WithN Int TTName
68− | InstanceN TTName (List String)
68+ | ImplementationN TTName (List String)
6969 | ParentN TTName String
7070 | MethodN TTName
7171 | CaseN SourceLocation TTName
7272 | ElimN TTName
73− | InstanceCtorN TTName
73+ | ImplementationCtorN TTName
7474 | MetaN TTName TTName
7575 %name SpecialName sn, sn'
7676
77+InstanceN : TTName -> (List String) -> SpecialName
78+InstanceN = ImplementationN
79+%deprecate InstanceN "`InstanceN` is deprecated, Please use `ImplementationN` instead."
80+
81+InstanceCtorN : TTName -> SpecialName
82+InstanceCtorN = ImplementationCtorN
83+%deprecate InstanceCtorN "`InstanceCtorN` is deprecated, Please use `ImplementationCtorN` instead."
84+
7785-- Rather than implement one-off private functions, we make the
7886-- disjointness of the constructors available to all Idris programs,
7987-- at the cost of a bit of scrolling here.
@@ -117,7 +125,7 @@ implementation Uninhabited (SN _ = NS _ _) where
117125implementation Uninhabited ((WhereN x n n') = (WithN y z)) where
118126 uninhabited Refl impossible
119127
120−implementation Uninhabited ((WhereN x n n') = (InstanceN y xs)) where
128+implementation Uninhabited ((WhereN x n n') = (ImplementationN y xs)) where
121129 uninhabited Refl impossible
122130
123131implementation Uninhabited ((WhereN x n n') = (ParentN y z)) where
@@ -132,7 +140,7 @@ implementation Uninhabited ((WhereN x n n') = (CaseN loc y)) where
132140implementation Uninhabited ((WhereN x n n') = (ElimN y)) where
133141 uninhabited Refl impossible
134142
135−implementation Uninhabited ((WhereN x n n') = (InstanceCtorN y)) where
143+implementation Uninhabited ((WhereN x n n') = (ImplementationCtorN y)) where
136144 uninhabited Refl impossible
137145
138146implementation Uninhabited ((WhereN x n n') = (MetaN y z)) where
@@ -141,7 +149,7 @@ implementation Uninhabited ((WhereN x n n') = (MetaN y z)) where
141149implementation Uninhabited ((WithN x n) = (WhereN y n' z)) where
142150 uninhabited Refl impossible
143151
144−implementation Uninhabited ((WithN x n) = (InstanceN n' xs)) where
152+implementation Uninhabited ((WithN x n) = (ImplementationN n' xs)) where
145153 uninhabited Refl impossible
146154
147155implementation Uninhabited ((WithN x n) = (ParentN n' y)) where
@@ -156,34 +164,34 @@ implementation Uninhabited ((WithN x n) = (CaseN loc n')) where
156164implementation Uninhabited ((WithN x n) = (ElimN n')) where
157165 uninhabited Refl impossible
158166
159−implementation Uninhabited ((WithN x n) = (InstanceCtorN n')) where
167+implementation Uninhabited ((WithN x n) = (ImplementationCtorN n')) where
160168 uninhabited Refl impossible
161169
162170implementation Uninhabited ((WithN x n) = (MetaN n' y)) where
163171 uninhabited Refl impossible
164172
165−implementation Uninhabited ((InstanceN n xs) = (WhereN x n' y)) where
173+implementation Uninhabited ((ImplementationN n xs) = (WhereN x n' y)) where
166174 uninhabited Refl impossible
167175
168−implementation Uninhabited ((InstanceN n xs) = (WithN x n')) where
176+implementation Uninhabited ((ImplementationN n xs) = (WithN x n')) where
169177 uninhabited Refl impossible
170178
171−implementation Uninhabited ((InstanceN n xs) = (ParentN n' x)) where
179+implementation Uninhabited ((ImplementationN n xs) = (ParentN n' x)) where
172180 uninhabited Refl impossible
173181
174−implementation Uninhabited ((InstanceN n xs) = (MethodN n')) where
182+implementation Uninhabited ((ImplementationN n xs) = (MethodN n')) where
175183 uninhabited Refl impossible
176184
177−implementation Uninhabited ((InstanceN n xs) = (CaseN loc n')) where
185+implementation Uninhabited ((ImplementationN n xs) = (CaseN loc n')) where
178186 uninhabited Refl impossible
179187
180−implementation Uninhabited ((InstanceN n xs) = (ElimN n')) where
188+implementation Uninhabited ((ImplementationN n xs) = (ElimN n')) where
181189 uninhabited Refl impossible
182190
183−implementation Uninhabited ((InstanceN n xs) = (InstanceCtorN n')) where
191+implementation Uninhabited ((ImplementationN n xs) = (ImplementationCtorN n')) where
184192 uninhabited Refl impossible
185193
186−implementation Uninhabited ((InstanceN n xs) = (MetaN n' x)) where
194+implementation Uninhabited ((ImplementationN n xs) = (MetaN n' x)) where
187195 uninhabited Refl impossible
188196
189197implementation Uninhabited ((ParentN n x) = (WhereN y n' z)) where
@@ -192,7 +200,7 @@ implementation Uninhabited ((ParentN n x) = (WhereN y n' z)) where
192200implementation Uninhabited ((ParentN n x) = (WithN y n')) where
193201 uninhabited Refl impossible
194202
195−implementation Uninhabited ((ParentN n x) = (InstanceN n' xs)) where
203+implementation Uninhabited ((ParentN n x) = (ImplementationN n' xs)) where
196204 uninhabited Refl impossible
197205
198206implementation Uninhabited ((ParentN n x) = (MethodN n')) where
@@ -204,7 +212,7 @@ implementation Uninhabited ((ParentN n x) = (CaseN loc n')) where
204212implementation Uninhabited ((ParentN n x) = (ElimN n')) where
205213 uninhabited Refl impossible
206214
207−implementation Uninhabited ((ParentN n x) = (InstanceCtorN n')) where
215+implementation Uninhabited ((ParentN n x) = (ImplementationCtorN n')) where
208216 uninhabited Refl impossible
209217
210218implementation Uninhabited ((ParentN n x) = (MetaN n' y)) where
@@ -216,7 +224,7 @@ implementation Uninhabited ((MethodN n) = (WhereN x n' y)) where
216224implementation Uninhabited ((MethodN n) = (WithN x n')) where
217225 uninhabited Refl impossible
218226
219−implementation Uninhabited ((MethodN n) = (InstanceN n' xs)) where
227+implementation Uninhabited ((MethodN n) = (ImplementationN n' xs)) where
220228 uninhabited Refl impossible
221229
222230implementation Uninhabited ((MethodN n) = (ParentN n' x)) where
@@ -228,7 +236,7 @@ implementation Uninhabited ((MethodN n) = (CaseN loc n')) where
228236implementation Uninhabited ((MethodN n) = (ElimN n')) where
229237 uninhabited Refl impossible
230238
231−implementation Uninhabited ((MethodN n) = (InstanceCtorN n')) where
239+implementation Uninhabited ((MethodN n) = (ImplementationCtorN n')) where
232240 uninhabited Refl impossible
233241
234242implementation Uninhabited ((MethodN n) = (MetaN n' x)) where
@@ -240,7 +248,7 @@ implementation Uninhabited ((CaseN loc n) = (WhereN x n' y)) where
240248implementation Uninhabited ((CaseN loc n) = (WithN x n')) where
241249 uninhabited Refl impossible
242250
243−implementation Uninhabited ((CaseN loc n) = (InstanceN n' xs)) where
251+implementation Uninhabited ((CaseN loc n) = (ImplementationN n' xs)) where
244252 uninhabited Refl impossible
245253
246254implementation Uninhabited ((CaseN loc n) = (ParentN n' x)) where
@@ -252,7 +260,7 @@ implementation Uninhabited ((CaseN loc n) = (MethodN n')) where
252260implementation Uninhabited ((CaseN loc n) = (ElimN n')) where
253261 uninhabited Refl impossible
254262
255−implementation Uninhabited ((CaseN loc n) = (InstanceCtorN n')) where
263+implementation Uninhabited ((CaseN loc n) = (ImplementationCtorN n')) where
256264 uninhabited Refl impossible
257265
258266implementation Uninhabited ((CaseN loc n) = (MetaN n' x)) where
@@ -264,7 +272,7 @@ implementation Uninhabited ((ElimN n) = (WhereN x n' y)) where
264272implementation Uninhabited ((ElimN n) = (WithN x n')) where
265273 uninhabited Refl impossible
266274
267−implementation Uninhabited ((ElimN n) = (InstanceN n' xs)) where
275+implementation Uninhabited ((ElimN n) = (ImplementationN n' xs)) where
268276 uninhabited Refl impossible
269277
270278implementation Uninhabited ((ElimN n) = (ParentN n' x)) where
@@ -276,34 +284,34 @@ implementation Uninhabited ((ElimN n) = (MethodN n')) where
276284implementation Uninhabited ((ElimN n) = (CaseN loc n')) where
277285 uninhabited Refl impossible
278286
279−implementation Uninhabited ((ElimN n) = (InstanceCtorN n')) where
287+implementation Uninhabited ((ElimN n) = (ImplementationCtorN n')) where
280288 uninhabited Refl impossible
281289
282290implementation Uninhabited ((ElimN n) = (MetaN n' x)) where
283291 uninhabited Refl impossible
284292
285−implementation Uninhabited ((InstanceCtorN n) = (WhereN x n' y)) where
293+implementation Uninhabited ((ImplementationCtorN n) = (WhereN x n' y)) where
286294 uninhabited Refl impossible
287295
288−implementation Uninhabited ((InstanceCtorN n) = (WithN x n')) where
296+implementation Uninhabited ((ImplementationCtorN n) = (WithN x n')) where
289297 uninhabited Refl impossible
290298
291−implementation Uninhabited ((InstanceCtorN n) = (InstanceN n' xs)) where
299+implementation Uninhabited ((ImplementationCtorN n) = (ImplementationN n' xs)) where
292300 uninhabited Refl impossible
293301
294−implementation Uninhabited ((InstanceCtorN n) = (ParentN n' x)) where
302+implementation Uninhabited ((ImplementationCtorN n) = (ParentN n' x)) where
295303 uninhabited Refl impossible
296304
297−implementation Uninhabited ((InstanceCtorN n) = (MethodN n')) where
305+implementation Uninhabited ((ImplementationCtorN n) = (MethodN n')) where
298306 uninhabited Refl impossible
299307
300−implementation Uninhabited ((InstanceCtorN n) = (CaseN loc n')) where
308+implementation Uninhabited ((ImplementationCtorN n) = (CaseN loc n')) where
301309 uninhabited Refl impossible
302310
303−implementation Uninhabited ((InstanceCtorN n) = (ElimN n')) where
311+implementation Uninhabited ((ImplementationCtorN n) = (ElimN n')) where
304312 uninhabited Refl impossible
305313
306−implementation Uninhabited ((InstanceCtorN n) = (MetaN n' x)) where
314+implementation Uninhabited ((ImplementationCtorN n) = (MetaN n' x)) where
307315 uninhabited Refl impossible
308316
309317implementation Uninhabited ((MetaN n n') = (WhereN x y z)) where
@@ -312,7 +320,7 @@ implementation Uninhabited ((MetaN n n') = (WhereN x y z)) where
312320implementation Uninhabited ((MetaN n n') = (WithN x y)) where
313321 uninhabited Refl impossible
314322
315−implementation Uninhabited ((MetaN n n') = (InstanceN x xs)) where
323+implementation Uninhabited ((MetaN n n') = (ImplementationN x xs)) where
316324 uninhabited Refl impossible
317325
318326implementation Uninhabited ((MetaN n n') = (ParentN x y)) where
@@ -327,7 +335,7 @@ implementation Uninhabited ((MetaN n n') = (CaseN loc x)) where
327335implementation Uninhabited ((MetaN n n') = (ElimN x)) where
328336 uninhabited Refl impossible
329337
330−implementation Uninhabited ((MetaN n n') = (InstanceCtorN x)) where
338+implementation Uninhabited ((MetaN n n') = (ImplementationCtorN x)) where
331339 uninhabited Refl impossible
332340
333341mutual
@@ -398,7 +406,12 @@ mutual
398406 private
399407 instanceNInj : (InstanceN n xs = InstanceN n' ys) -> (n = n', xs = ys)
400408 instanceNInj Refl = (Refl, Refl)
409+ %deprecate instanceNInj "`instanceNInj` is deprecated, Please use `implementationNInj` instead."
401410
411+ private
412+ implementationNInj : (ImplementationN n xs = ImplementationN n' ys) -> (n = n', xs = ys)
413+ implementationNInj Refl = (Refl, Refl)
414+
402415 private
403416 parentNInj : (ParentN n x = ParentN n' y) -> (n = n', x = y)
404417 parentNInj Refl = (Refl, Refl)
@@ -416,8 +429,8 @@ mutual
416429 elimNInj Refl = Refl
417430
418431 private
419− instanceCtorNInj : (InstanceCtorN n = InstanceCtorN n') -> n = n'
420− instanceCtorNInj Refl = Refl
432+ implementationCtorNInj : (ImplementationCtorN n = ImplementationCtorN n') -> n = n'
433+ implementationCtorNInj Refl = Refl
421434
422435 private
423436 metaNInj : (MetaN n m = MetaN n' m') -> (n = n', m = m')
@@ -437,12 +450,12 @@ mutual
437450 decSNEq (WhereN x n n') (WhereN y z w) | No contra =
438451 No $ contra . fst . whereNInj
439452 decSNEq (WhereN x n n') (WithN y z) = No absurd
440− decSNEq (WhereN x n n') (InstanceN y xs) = No absurd
453+ decSNEq (WhereN x n n') (ImplementationN y xs) = No absurd
441454 decSNEq (WhereN x n n') (ParentN y z) = No absurd
442455 decSNEq (WhereN x n n') (MethodN y) = No absurd
443456 decSNEq (WhereN x n n') (CaseN loc y) = No absurd
444457 decSNEq (WhereN x n n') (ElimN y) = No absurd
445− decSNEq (WhereN x n n') (InstanceCtorN y) = No absurd
458+ decSNEq (WhereN x n n') (ImplementationCtorN y) = No absurd
446459 decSNEq (WhereN x n n') (MetaN y z) = No absurd
447460 decSNEq (WithN x n) (WhereN y n' z) = No absurd
448461 decSNEq (WithN x n) (WithN y n') with (decEq x y)
@@ -453,32 +466,32 @@ mutual
453466 No $ contra . snd . withNInj
454467 decSNEq (WithN x n) (WithN y n') | No contra =
455468 No $ contra . fst . withNInj
456− decSNEq (WithN x n) (InstanceN n' xs) = No absurd
469+ decSNEq (WithN x n) (ImplementationN n' xs) = No absurd
457470 decSNEq (WithN x n) (ParentN n' y) = No absurd
458471 decSNEq (WithN x n) (MethodN n') = No absurd
459472 decSNEq (WithN x n) (CaseN loc n') = No absurd
460473 decSNEq (WithN x n) (ElimN n') = No absurd
461− decSNEq (WithN x n) (InstanceCtorN n') = No absurd
474+ decSNEq (WithN x n) (ImplementationCtorN n') = No absurd
462475 decSNEq (WithN x n) (MetaN n' y) = No absurd
463− decSNEq (InstanceN n xs) (WhereN x n' y) = No absurd
464− decSNEq (InstanceN n xs) (WithN x n') = No absurd
465− decSNEq (InstanceN n xs) (InstanceN n' ys) with (assert_total $ decTTNameEq n n')
466− decSNEq (InstanceN n xs) (InstanceN n ys) | Yes Refl with (decEq xs ys)
467− decSNEq (InstanceN n xs) (InstanceN n xs) | Yes Refl | Yes Refl =
476+ decSNEq (ImplementationN n xs) (WhereN x n' y) = No absurd
477+ decSNEq (ImplementationN n xs) (WithN x n') = No absurd
478+ decSNEq (ImplementationN n xs) (ImplementationN n' ys) with (assert_total $ decTTNameEq n n')
479+ decSNEq (ImplementationN n xs) (ImplementationN n ys) | Yes Refl with (decEq xs ys)
480+ decSNEq (ImplementationN n xs) (ImplementationN n xs) | Yes Refl | Yes Refl =
468481 Yes Refl
469− decSNEq (InstanceN n xs) (InstanceN n ys) | Yes Refl | No contra =
470− No $ contra . snd . instanceNInj
471− decSNEq (InstanceN n xs) (InstanceN n' ys) | No contra =
472− No $ contra . fst . instanceNInj
473− decSNEq (InstanceN n xs) (ParentN n' x) = No absurd
474− decSNEq (InstanceN n xs) (MethodN n') = No absurd
475− decSNEq (InstanceN n xs) (CaseN loc n') = No absurd
476− decSNEq (InstanceN n xs) (ElimN n') = No absurd
477− decSNEq (InstanceN n xs) (InstanceCtorN n') = No absurd
478− decSNEq (InstanceN n xs) (MetaN n' x) = No absurd
482+ decSNEq (ImplementationN n xs) (ImplementationN n ys) | Yes Refl | No contra =
483+ No $ contra . snd . implementationNInj
484+ decSNEq (ImplementationN n xs) (ImplementationN n' ys) | No contra =
485+ No $ contra . fst . implementationNInj
486+ decSNEq (ImplementationN n xs) (ParentN n' x) = No absurd
487+ decSNEq (ImplementationN n xs) (MethodN n') = No absurd
488+ decSNEq (ImplementationN n xs) (CaseN loc n') = No absurd
489+ decSNEq (ImplementationN n xs) (ElimN n') = No absurd
490+ decSNEq (ImplementationN n xs) (ImplementationCtorN n') = No absurd
491+ decSNEq (ImplementationN n xs) (MetaN n' x) = No absurd
479492 decSNEq (ParentN n x) (WhereN y n' z) = No absurd
480493 decSNEq (ParentN n x) (WithN y n') = No absurd
481− decSNEq (ParentN n x) (InstanceN n' xs) = No absurd
494+ decSNEq (ParentN n x) (ImplementationN n' xs) = No absurd
482495 decSNEq (ParentN n x) (ParentN n' y) with (assert_total $ decTTNameEq n n')
483496 decSNEq (ParentN n x) (ParentN n y) | Yes Refl with (decEq x y)
484497 decSNEq (ParentN n x) (ParentN n x) | Yes Refl | Yes Refl =
@@ -490,11 +503,11 @@ mutual
490503 decSNEq (ParentN n x) (MethodN n') = No absurd
491504 decSNEq (ParentN n x) (CaseN loc n') = No absurd
492505 decSNEq (ParentN n x) (ElimN n') = No absurd
493− decSNEq (ParentN n x) (InstanceCtorN n') = No absurd
506+ decSNEq (ParentN n x) (ImplementationCtorN n') = No absurd
494507 decSNEq (ParentN n x) (MetaN n' y) = No absurd
495508 decSNEq (MethodN n) (WhereN x n' y) = No absurd
496509 decSNEq (MethodN n) (WithN x n') = No absurd
497− decSNEq (MethodN n) (InstanceN n' xs) = No absurd
510+ decSNEq (MethodN n) (ImplementationN n' xs) = No absurd
498511 decSNEq (MethodN n) (ParentN n' x) = No absurd
499512 decSNEq (MethodN n) (MethodN n') with (assert_total $ decTTNameEq n n')
500513 decSNEq (MethodN n) (MethodN n) | Yes Refl =
@@ -503,11 +516,11 @@ mutual
503516 No $ contra . methodNInj
504517 decSNEq (MethodN n) (CaseN loc n') = No absurd
505518 decSNEq (MethodN n) (ElimN n') = No absurd
506− decSNEq (MethodN n) (InstanceCtorN n') = No absurd
519+ decSNEq (MethodN n) (ImplementationCtorN n') = No absurd
507520 decSNEq (MethodN n) (MetaN n' x) = No absurd
508521 decSNEq (CaseN loc n) (WhereN x n' y) = No absurd
509522 decSNEq (CaseN loc n) (WithN x n') = No absurd
510− decSNEq (CaseN loc n) (InstanceN n' xs) = No absurd
523+ decSNEq (CaseN loc n) (ImplementationN n' xs) = No absurd
511524 decSNEq (CaseN loc n) (ParentN n' x) = No absurd
512525 decSNEq (CaseN loc n) (MethodN n') = No absurd
513526 decSNEq (CaseN loc n) (CaseN loc' n') with (decEq loc loc')
@@ -519,11 +532,11 @@ mutual
519532 decSNEq (CaseN loc n) (CaseN loc' n') | No contra =
520533 No $ contra . fst . caseNInj
521534 decSNEq (CaseN loc n) (ElimN n') = No absurd
522− decSNEq (CaseN loc n) (InstanceCtorN n') = No absurd
535+ decSNEq (CaseN loc n) (ImplementationCtorN n') = No absurd
523536 decSNEq (CaseN loc n) (MetaN n' x) = No absurd
524537 decSNEq (ElimN n) (WhereN x n' y) = No absurd
525538 decSNEq (ElimN n) (WithN x n') = No absurd
526− decSNEq (ElimN n) (InstanceN n' xs) = No absurd
539+ decSNEq (ElimN n) (ImplementationN n' xs) = No absurd
527540 decSNEq (ElimN n) (ParentN n' x) = No absurd
528541 decSNEq (ElimN n) (MethodN n') = No absurd
529542 decSNEq (ElimN n) (CaseN loc n') = No absurd
@@ -532,29 +545,29 @@ mutual
532545 Yes Refl
533546 decSNEq (ElimN n) (ElimN n') | No contra =
534547 No $ contra . elimNInj
535− decSNEq (ElimN n) (InstanceCtorN n') = No absurd
548+ decSNEq (ElimN n) (ImplementationCtorN n') = No absurd
536549 decSNEq (ElimN n) (MetaN n' x) = No absurd
537− decSNEq (InstanceCtorN n) (WhereN x n' y) = No absurd
538− decSNEq (InstanceCtorN n) (WithN x n') = No absurd
539− decSNEq (InstanceCtorN n) (InstanceN n' xs) = No absurd
540− decSNEq (InstanceCtorN n) (ParentN n' x) = No absurd
541− decSNEq (InstanceCtorN n) (MethodN n') = No absurd
542− decSNEq (InstanceCtorN n) (CaseN loc n') = No absurd
543− decSNEq (InstanceCtorN n) (ElimN n') = No absurd
544− decSNEq (InstanceCtorN n) (InstanceCtorN n') with (assert_total $ decTTNameEq n n')
545− decSNEq (InstanceCtorN n) (InstanceCtorN n) | Yes Refl =
550+ decSNEq (ImplementationCtorN n) (WhereN x n' y) = No absurd
551+ decSNEq (ImplementationCtorN n) (WithN x n') = No absurd
552+ decSNEq (ImplementationCtorN n) (ImplementationN n' xs) = No absurd
553+ decSNEq (ImplementationCtorN n) (ParentN n' x) = No absurd
554+ decSNEq (ImplementationCtorN n) (MethodN n') = No absurd
555+ decSNEq (ImplementationCtorN n) (CaseN loc n') = No absurd
556+ decSNEq (ImplementationCtorN n) (ElimN n') = No absurd
557+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n') with (assert_total $ decTTNameEq n n')
558+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n) | Yes Refl =
546559 Yes Refl
547− decSNEq (InstanceCtorN n) (InstanceCtorN n') | No contra =
548− No $ contra . instanceCtorNInj
549− decSNEq (InstanceCtorN n) (MetaN n' x) = No absurd
560+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n') | No contra =
561+ No $ contra . implementationCtorNInj
562+ decSNEq (ImplementationCtorN n) (MetaN n' x) = No absurd
550563 decSNEq (MetaN n n') (WhereN x y z) = No absurd
551564 decSNEq (MetaN n n') (WithN x y) = No absurd
552− decSNEq (MetaN n n') (InstanceN x xs) = No absurd
565+ decSNEq (MetaN n n') (ImplementationN x xs) = No absurd
553566 decSNEq (MetaN n n') (ParentN x y) = No absurd
554567 decSNEq (MetaN n n') (MethodN x) = No absurd
555568 decSNEq (MetaN n n') (CaseN loc x) = No absurd
556569 decSNEq (MetaN n n') (ElimN x) = No absurd
557− decSNEq (MetaN n n') (InstanceCtorN x) = No absurd
570+ decSNEq (MetaN n n') (ImplementationCtorN x) = No absurd
558571 decSNEq (MetaN n n') (MetaN x y) with (assert_total $ decTTNameEq n x)
559572 decSNEq (MetaN n n') (MetaN n y) | Yes Refl with (assert_total $ decTTNameEq n' y)
560573 decSNEq (MetaN n n') (MetaN n n') | Yes Refl | Yes Refl =
@@ -798,7 +811,7 @@ data Tactic =
798811 ||| Build a proof by applying contructors up to a maximum depth
799812 Search Int |
800813 ||| Resolve an interface
801− Instance |
814+ Implementation |
802815 ||| Infer the proof target from the context
803816 Solve |
804817 ||| introduce all variables into the context
@@ -995,12 +1008,12 @@ mutual
9951008 quotedTy = `(SpecialName)
9961009 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
9971010 quote (WithN i n) = `(WithN ~(quote i) ~(quote n))
998− quote (InstanceN i ss) = `(InstanceN ~(quote i) ~(quote ss))
1011+ quote (ImplementationN i ss) = `(ImplementationN ~(quote i) ~(quote ss))
9991012 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
10001013 quote (MethodN n) = `(MethodN ~(quote n))
10011014 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
10021015 quote (ElimN n) = `(ElimN ~(quote n))
1003− quote (InstanceCtorN n) = `(InstanceCtorN ~(quote n))
1016+ quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
10041017 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
10051018
10061019mutual
@@ -1015,12 +1028,12 @@ mutual
10151028 quotedTy = `(SpecialName)
10161029 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
10171030 quote (WithN i n) = `(WithN ~(quote i) ~(quote n))
1018− quote (InstanceN i ss) = `(InstanceN ~(quote i) ~(quote ss))
1031+ quote (ImplementationN i ss) = `(ImplementationN ~(quote i) ~(quote ss))
10191032 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
10201033 quote (MethodN n) = `(MethodN ~(quote n))
10211034 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
10221035 quote (ElimN n) = `(ElimN ~(quote n))
1023− quote (InstanceCtorN n) = `(InstanceCtorN ~(quote n))
1036+ quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
10241037 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
10251038
10261039
@@ -1272,7 +1285,7 @@ implementation Quotable Tactic TT where
12721285 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
12731286 quote Trivial = `(Trivial)
12741287 quote (Search x) = `(Search ~(quote x))
1275− quote Instance = `(Instance)
1288+ quote Implementation = `(Implementation)
12761289 quote Solve = `(Solve)
12771290 quote Intros = `(Intros)
12781291 quote (Intro n) = `(Intro ~(quote n))
@@ -1302,7 +1315,7 @@ implementation Quotable Tactic Raw where
13021315 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
13031316 quote Trivial = `(Trivial)
13041317 quote (Search x) = `(Search ~(quote x))
1305− quote Instance = `(Instance)
1318+ quote Implementation = `(Implementation)
13061319 quote Solve = `(Solve)
13071320 quote Intros = `(Intros)
13081321 quote (Intro n) = `(Intro ~(quote n))