@@ -65,15 +65,23 @@ mutual
66 data SpecialName = WhereN Int TTName TTName
66 data SpecialName = WhereN Int TTName TTName
67 | WithN Int TTName
67 | WithN Int TTName
68− | InstanceN TTName (List String)
68+ | ImplementationN TTName (List String)
69 | ParentN TTName String
69 | ParentN TTName String
70 | MethodN TTName
70 | MethodN TTName
71 | CaseN SourceLocation TTName
71 | CaseN SourceLocation TTName
72 | ElimN TTName
72 | ElimN TTName
73− | InstanceCtorN TTName
73+ | ImplementationCtorN TTName
74 | MetaN TTName TTName
74 | MetaN TTName TTName
75 %name SpecialName sn, sn'
75 %name SpecialName sn, sn'
77+InstanceN : TTName -> (List String) -> SpecialName
78+InstanceN = ImplementationN
79+%deprecate InstanceN "`InstanceN` is deprecated, Please use `ImplementationN` instead."
81+InstanceCtorN : TTName -> SpecialName
82+InstanceCtorN = ImplementationCtorN
83+%deprecate InstanceCtorN "`InstanceCtorN` is deprecated, Please use `ImplementationCtorN` instead."
77-- Rather than implement one-off private functions, we make the
85-- Rather than implement one-off private functions, we make the
78-- disjointness of the constructors available to all Idris programs,
86-- disjointness of the constructors available to all Idris programs,
79-- at the cost of a bit of scrolling here.
87-- at the cost of a bit of scrolling here.
@@ -117,7 +125,7 @@ implementation Uninhabited (SN _ = NS _ _) where
117implementation Uninhabited ((WhereN x n n') = (WithN y z)) where
125implementation Uninhabited ((WhereN x n n') = (WithN y z)) where
118 uninhabited Refl impossible
126 uninhabited Refl impossible
120−implementation Uninhabited ((WhereN x n n') = (InstanceN y xs)) where
128+implementation Uninhabited ((WhereN x n n') = (ImplementationN y xs)) where
121 uninhabited Refl impossible
129 uninhabited Refl impossible
123implementation Uninhabited ((WhereN x n n') = (ParentN y z)) where
131implementation Uninhabited ((WhereN x n n') = (ParentN y z)) where
@@ -132,7 +140,7 @@ implementation Uninhabited ((WhereN x n n') = (CaseN loc y)) where
132implementation Uninhabited ((WhereN x n n') = (ElimN y)) where
140implementation Uninhabited ((WhereN x n n') = (ElimN y)) where
133 uninhabited Refl impossible
141 uninhabited Refl impossible
135−implementation Uninhabited ((WhereN x n n') = (InstanceCtorN y)) where
143+implementation Uninhabited ((WhereN x n n') = (ImplementationCtorN y)) where
136 uninhabited Refl impossible
144 uninhabited Refl impossible
138implementation Uninhabited ((WhereN x n n') = (MetaN y z)) where
146implementation Uninhabited ((WhereN x n n') = (MetaN y z)) where
@@ -141,7 +149,7 @@ implementation Uninhabited ((WhereN x n n') = (MetaN y z)) where
141implementation Uninhabited ((WithN x n) = (WhereN y n' z)) where
149implementation Uninhabited ((WithN x n) = (WhereN y n' z)) where
142 uninhabited Refl impossible
150 uninhabited Refl impossible
144−implementation Uninhabited ((WithN x n) = (InstanceN n' xs)) where
152+implementation Uninhabited ((WithN x n) = (ImplementationN n' xs)) where
145 uninhabited Refl impossible
153 uninhabited Refl impossible
147implementation Uninhabited ((WithN x n) = (ParentN n' y)) where
155implementation Uninhabited ((WithN x n) = (ParentN n' y)) where
@@ -156,34 +164,34 @@ implementation Uninhabited ((WithN x n) = (CaseN loc n')) where
156implementation Uninhabited ((WithN x n) = (ElimN n')) where
164implementation Uninhabited ((WithN x n) = (ElimN n')) where
157 uninhabited Refl impossible
165 uninhabited Refl impossible
159−implementation Uninhabited ((WithN x n) = (InstanceCtorN n')) where
167+implementation Uninhabited ((WithN x n) = (ImplementationCtorN n')) where
160 uninhabited Refl impossible
168 uninhabited Refl impossible
162implementation Uninhabited ((WithN x n) = (MetaN n' y)) where
170implementation Uninhabited ((WithN x n) = (MetaN n' y)) where
163 uninhabited Refl impossible
171 uninhabited Refl impossible
165−implementation Uninhabited ((InstanceN n xs) = (WhereN x n' y)) where
173+implementation Uninhabited ((ImplementationN n xs) = (WhereN x n' y)) where
166 uninhabited Refl impossible
174 uninhabited Refl impossible
168−implementation Uninhabited ((InstanceN n xs) = (WithN x n')) where
176+implementation Uninhabited ((ImplementationN n xs) = (WithN x n')) where
169 uninhabited Refl impossible
177 uninhabited Refl impossible
171−implementation Uninhabited ((InstanceN n xs) = (ParentN n' x)) where
179+implementation Uninhabited ((ImplementationN n xs) = (ParentN n' x)) where
172 uninhabited Refl impossible
180 uninhabited Refl impossible
174−implementation Uninhabited ((InstanceN n xs) = (MethodN n')) where
182+implementation Uninhabited ((ImplementationN n xs) = (MethodN n')) where
175 uninhabited Refl impossible
183 uninhabited Refl impossible
177−implementation Uninhabited ((InstanceN n xs) = (CaseN loc n')) where
185+implementation Uninhabited ((ImplementationN n xs) = (CaseN loc n')) where
178 uninhabited Refl impossible
186 uninhabited Refl impossible
180−implementation Uninhabited ((InstanceN n xs) = (ElimN n')) where
188+implementation Uninhabited ((ImplementationN n xs) = (ElimN n')) where
181 uninhabited Refl impossible
189 uninhabited Refl impossible
183−implementation Uninhabited ((InstanceN n xs) = (InstanceCtorN n')) where
191+implementation Uninhabited ((ImplementationN n xs) = (ImplementationCtorN n')) where
184 uninhabited Refl impossible
192 uninhabited Refl impossible
186−implementation Uninhabited ((InstanceN n xs) = (MetaN n' x)) where
194+implementation Uninhabited ((ImplementationN n xs) = (MetaN n' x)) where
187 uninhabited Refl impossible
195 uninhabited Refl impossible
189implementation Uninhabited ((ParentN n x) = (WhereN y n' z)) where
197implementation Uninhabited ((ParentN n x) = (WhereN y n' z)) where
@@ -192,7 +200,7 @@ implementation Uninhabited ((ParentN n x) = (WhereN y n' z)) where
192implementation Uninhabited ((ParentN n x) = (WithN y n')) where
200implementation Uninhabited ((ParentN n x) = (WithN y n')) where
193 uninhabited Refl impossible
201 uninhabited Refl impossible
195−implementation Uninhabited ((ParentN n x) = (InstanceN n' xs)) where
203+implementation Uninhabited ((ParentN n x) = (ImplementationN n' xs)) where
196 uninhabited Refl impossible
204 uninhabited Refl impossible
198implementation Uninhabited ((ParentN n x) = (MethodN n')) where
206implementation Uninhabited ((ParentN n x) = (MethodN n')) where
@@ -204,7 +212,7 @@ implementation Uninhabited ((ParentN n x) = (CaseN loc n')) where
204implementation Uninhabited ((ParentN n x) = (ElimN n')) where
212implementation Uninhabited ((ParentN n x) = (ElimN n')) where
205 uninhabited Refl impossible
213 uninhabited Refl impossible
207−implementation Uninhabited ((ParentN n x) = (InstanceCtorN n')) where
215+implementation Uninhabited ((ParentN n x) = (ImplementationCtorN n')) where
208 uninhabited Refl impossible
216 uninhabited Refl impossible
210implementation Uninhabited ((ParentN n x) = (MetaN n' y)) where
218implementation Uninhabited ((ParentN n x) = (MetaN n' y)) where
@@ -216,7 +224,7 @@ implementation Uninhabited ((MethodN n) = (WhereN x n' y)) where
216implementation Uninhabited ((MethodN n) = (WithN x n')) where
224implementation Uninhabited ((MethodN n) = (WithN x n')) where
217 uninhabited Refl impossible
225 uninhabited Refl impossible
219−implementation Uninhabited ((MethodN n) = (InstanceN n' xs)) where
227+implementation Uninhabited ((MethodN n) = (ImplementationN n' xs)) where
220 uninhabited Refl impossible
228 uninhabited Refl impossible
222implementation Uninhabited ((MethodN n) = (ParentN n' x)) where
230implementation Uninhabited ((MethodN n) = (ParentN n' x)) where
@@ -228,7 +236,7 @@ implementation Uninhabited ((MethodN n) = (CaseN loc n')) where
228implementation Uninhabited ((MethodN n) = (ElimN n')) where
236implementation Uninhabited ((MethodN n) = (ElimN n')) where
229 uninhabited Refl impossible
237 uninhabited Refl impossible
231−implementation Uninhabited ((MethodN n) = (InstanceCtorN n')) where
239+implementation Uninhabited ((MethodN n) = (ImplementationCtorN n')) where
232 uninhabited Refl impossible
240 uninhabited Refl impossible
234implementation Uninhabited ((MethodN n) = (MetaN n' x)) where
242implementation Uninhabited ((MethodN n) = (MetaN n' x)) where
@@ -240,7 +248,7 @@ implementation Uninhabited ((CaseN loc n) = (WhereN x n' y)) where
240implementation Uninhabited ((CaseN loc n) = (WithN x n')) where
248implementation Uninhabited ((CaseN loc n) = (WithN x n')) where
241 uninhabited Refl impossible
249 uninhabited Refl impossible
243−implementation Uninhabited ((CaseN loc n) = (InstanceN n' xs)) where
251+implementation Uninhabited ((CaseN loc n) = (ImplementationN n' xs)) where
244 uninhabited Refl impossible
252 uninhabited Refl impossible
246implementation Uninhabited ((CaseN loc n) = (ParentN n' x)) where
254implementation Uninhabited ((CaseN loc n) = (ParentN n' x)) where
@@ -252,7 +260,7 @@ implementation Uninhabited ((CaseN loc n) = (MethodN n')) where
252implementation Uninhabited ((CaseN loc n) = (ElimN n')) where
260implementation Uninhabited ((CaseN loc n) = (ElimN n')) where
253 uninhabited Refl impossible
261 uninhabited Refl impossible
255−implementation Uninhabited ((CaseN loc n) = (InstanceCtorN n')) where
263+implementation Uninhabited ((CaseN loc n) = (ImplementationCtorN n')) where
256 uninhabited Refl impossible
264 uninhabited Refl impossible
258implementation Uninhabited ((CaseN loc n) = (MetaN n' x)) where
266implementation Uninhabited ((CaseN loc n) = (MetaN n' x)) where
@@ -264,7 +272,7 @@ implementation Uninhabited ((ElimN n) = (WhereN x n' y)) where
264implementation Uninhabited ((ElimN n) = (WithN x n')) where
272implementation Uninhabited ((ElimN n) = (WithN x n')) where
265 uninhabited Refl impossible
273 uninhabited Refl impossible
267−implementation Uninhabited ((ElimN n) = (InstanceN n' xs)) where
275+implementation Uninhabited ((ElimN n) = (ImplementationN n' xs)) where
268 uninhabited Refl impossible
276 uninhabited Refl impossible
270implementation Uninhabited ((ElimN n) = (ParentN n' x)) where
278implementation Uninhabited ((ElimN n) = (ParentN n' x)) where
@@ -276,34 +284,34 @@ implementation Uninhabited ((ElimN n) = (MethodN n')) where
276implementation Uninhabited ((ElimN n) = (CaseN loc n')) where
284implementation Uninhabited ((ElimN n) = (CaseN loc n')) where
277 uninhabited Refl impossible
285 uninhabited Refl impossible
279−implementation Uninhabited ((ElimN n) = (InstanceCtorN n')) where
287+implementation Uninhabited ((ElimN n) = (ImplementationCtorN n')) where
280 uninhabited Refl impossible
288 uninhabited Refl impossible
282implementation Uninhabited ((ElimN n) = (MetaN n' x)) where
290implementation Uninhabited ((ElimN n) = (MetaN n' x)) where
283 uninhabited Refl impossible
291 uninhabited Refl impossible
285−implementation Uninhabited ((InstanceCtorN n) = (WhereN x n' y)) where
293+implementation Uninhabited ((ImplementationCtorN n) = (WhereN x n' y)) where
286 uninhabited Refl impossible
294 uninhabited Refl impossible
288−implementation Uninhabited ((InstanceCtorN n) = (WithN x n')) where
296+implementation Uninhabited ((ImplementationCtorN n) = (WithN x n')) where
289 uninhabited Refl impossible
297 uninhabited Refl impossible
291−implementation Uninhabited ((InstanceCtorN n) = (InstanceN n' xs)) where
299+implementation Uninhabited ((ImplementationCtorN n) = (ImplementationN n' xs)) where
292 uninhabited Refl impossible
300 uninhabited Refl impossible
294−implementation Uninhabited ((InstanceCtorN n) = (ParentN n' x)) where
302+implementation Uninhabited ((ImplementationCtorN n) = (ParentN n' x)) where
295 uninhabited Refl impossible
303 uninhabited Refl impossible
297−implementation Uninhabited ((InstanceCtorN n) = (MethodN n')) where
305+implementation Uninhabited ((ImplementationCtorN n) = (MethodN n')) where
298 uninhabited Refl impossible
306 uninhabited Refl impossible
300−implementation Uninhabited ((InstanceCtorN n) = (CaseN loc n')) where
308+implementation Uninhabited ((ImplementationCtorN n) = (CaseN loc n')) where
301 uninhabited Refl impossible
309 uninhabited Refl impossible
303−implementation Uninhabited ((InstanceCtorN n) = (ElimN n')) where
311+implementation Uninhabited ((ImplementationCtorN n) = (ElimN n')) where
304 uninhabited Refl impossible
312 uninhabited Refl impossible
306−implementation Uninhabited ((InstanceCtorN n) = (MetaN n' x)) where
314+implementation Uninhabited ((ImplementationCtorN n) = (MetaN n' x)) where
307 uninhabited Refl impossible
315 uninhabited Refl impossible
309implementation Uninhabited ((MetaN n n') = (WhereN x y z)) where
317implementation Uninhabited ((MetaN n n') = (WhereN x y z)) where
@@ -312,7 +320,7 @@ implementation Uninhabited ((MetaN n n') = (WhereN x y z)) where
312implementation Uninhabited ((MetaN n n') = (WithN x y)) where
320implementation Uninhabited ((MetaN n n') = (WithN x y)) where
313 uninhabited Refl impossible
321 uninhabited Refl impossible
315−implementation Uninhabited ((MetaN n n') = (InstanceN x xs)) where
323+implementation Uninhabited ((MetaN n n') = (ImplementationN x xs)) where
316 uninhabited Refl impossible
324 uninhabited Refl impossible
318implementation Uninhabited ((MetaN n n') = (ParentN x y)) where
326implementation Uninhabited ((MetaN n n') = (ParentN x y)) where
@@ -327,7 +335,7 @@ implementation Uninhabited ((MetaN n n') = (CaseN loc x)) where
327implementation Uninhabited ((MetaN n n') = (ElimN x)) where
335implementation Uninhabited ((MetaN n n') = (ElimN x)) where
328 uninhabited Refl impossible
336 uninhabited Refl impossible
330−implementation Uninhabited ((MetaN n n') = (InstanceCtorN x)) where
338+implementation Uninhabited ((MetaN n n') = (ImplementationCtorN x)) where
331 uninhabited Refl impossible
339 uninhabited Refl impossible
@@ -398,7 +406,12 @@ mutual
399 instanceNInj : (InstanceN n xs = InstanceN n' ys) -> (n = n', xs = ys)
407 instanceNInj : (InstanceN n xs = InstanceN n' ys) -> (n = n', xs = ys)
400 instanceNInj Refl = (Refl, Refl)
408 instanceNInj Refl = (Refl, Refl)
409+ %deprecate instanceNInj "`instanceNInj` is deprecated, Please use `implementationNInj` instead."
412+ implementationNInj : (ImplementationN n xs = ImplementationN n' ys) -> (n = n', xs = ys)
413+ implementationNInj Refl = (Refl, Refl)
403 parentNInj : (ParentN n x = ParentN n' y) -> (n = n', x = y)
416 parentNInj : (ParentN n x = ParentN n' y) -> (n = n', x = y)
404 parentNInj Refl = (Refl, Refl)
417 parentNInj Refl = (Refl, Refl)
@@ -416,8 +429,8 @@ mutual
416 elimNInj Refl = Refl
429 elimNInj Refl = Refl
419− instanceCtorNInj : (InstanceCtorN n = InstanceCtorN n') -> n = n'
432+ implementationCtorNInj : (ImplementationCtorN n = ImplementationCtorN n') -> n = n'
420− instanceCtorNInj Refl = Refl
433+ implementationCtorNInj Refl = Refl
423 metaNInj : (MetaN n m = MetaN n' m') -> (n = n', m = m')
436 metaNInj : (MetaN n m = MetaN n' m') -> (n = n', m = m')
@@ -437,12 +450,12 @@ mutual
437 decSNEq (WhereN x n n') (WhereN y z w) | No contra =
450 decSNEq (WhereN x n n') (WhereN y z w) | No contra =
438 No $ contra . fst . whereNInj
451 No $ contra . fst . whereNInj
439 decSNEq (WhereN x n n') (WithN y z) = No absurd
452 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
441 decSNEq (WhereN x n n') (ParentN y z) = No absurd
454 decSNEq (WhereN x n n') (ParentN y z) = No absurd
442 decSNEq (WhereN x n n') (MethodN y) = No absurd
455 decSNEq (WhereN x n n') (MethodN y) = No absurd
443 decSNEq (WhereN x n n') (CaseN loc y) = No absurd
456 decSNEq (WhereN x n n') (CaseN loc y) = No absurd
444 decSNEq (WhereN x n n') (ElimN y) = No absurd
457 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
446 decSNEq (WhereN x n n') (MetaN y z) = No absurd
459 decSNEq (WhereN x n n') (MetaN y z) = No absurd
447 decSNEq (WithN x n) (WhereN y n' z) = No absurd
460 decSNEq (WithN x n) (WhereN y n' z) = No absurd
448 decSNEq (WithN x n) (WithN y n') with (decEq x y)
461 decSNEq (WithN x n) (WithN y n') with (decEq x y)
@@ -453,32 +466,32 @@ mutual
453 No $ contra . snd . withNInj
466 No $ contra . snd . withNInj
454 decSNEq (WithN x n) (WithN y n') | No contra =
467 decSNEq (WithN x n) (WithN y n') | No contra =
455 No $ contra . fst . withNInj
468 No $ contra . fst . withNInj
456− decSNEq (WithN x n) (InstanceN n' xs) = No absurd
469+ decSNEq (WithN x n) (ImplementationN n' xs) = No absurd
457 decSNEq (WithN x n) (ParentN n' y) = No absurd
470 decSNEq (WithN x n) (ParentN n' y) = No absurd
458 decSNEq (WithN x n) (MethodN n') = No absurd
471 decSNEq (WithN x n) (MethodN n') = No absurd
459 decSNEq (WithN x n) (CaseN loc n') = No absurd
472 decSNEq (WithN x n) (CaseN loc n') = No absurd
460 decSNEq (WithN x n) (ElimN n') = No absurd
473 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
462 decSNEq (WithN x n) (MetaN n' y) = No absurd
475 decSNEq (WithN x n) (MetaN n' y) = No absurd
463− decSNEq (InstanceN n xs) (WhereN x n' y) = No absurd
476+ decSNEq (ImplementationN n xs) (WhereN x n' y) = No absurd
464− decSNEq (InstanceN n xs) (WithN x n') = No absurd
477+ decSNEq (ImplementationN n xs) (WithN x n') = No absurd
465− decSNEq (InstanceN n xs) (InstanceN n' ys) with (assert_total $ decTTNameEq n n')
478+ decSNEq (ImplementationN n xs) (ImplementationN n' ys) with (assert_total $ decTTNameEq n n')
466− decSNEq (InstanceN n xs) (InstanceN n ys) | Yes Refl with (decEq xs ys)
479+ decSNEq (ImplementationN n xs) (ImplementationN n ys) | Yes Refl with (decEq xs ys)
467− decSNEq (InstanceN n xs) (InstanceN n xs) | Yes Refl | Yes Refl =
480+ decSNEq (ImplementationN n xs) (ImplementationN n xs) | Yes Refl | Yes Refl =
469− decSNEq (InstanceN n xs) (InstanceN n ys) | Yes Refl | No contra =
482+ decSNEq (ImplementationN n xs) (ImplementationN n ys) | Yes Refl | No contra =
470− No $ contra . snd . instanceNInj
483+ No $ contra . snd . implementationNInj
471− decSNEq (InstanceN n xs) (InstanceN n' ys) | No contra =
484+ decSNEq (ImplementationN n xs) (ImplementationN n' ys) | No contra =
472− No $ contra . fst . instanceNInj
485+ No $ contra . fst . implementationNInj
473− decSNEq (InstanceN n xs) (ParentN n' x) = No absurd
486+ decSNEq (ImplementationN n xs) (ParentN n' x) = No absurd
474− decSNEq (InstanceN n xs) (MethodN n') = No absurd
487+ decSNEq (ImplementationN n xs) (MethodN n') = No absurd
475− decSNEq (InstanceN n xs) (CaseN loc n') = No absurd
488+ decSNEq (ImplementationN n xs) (CaseN loc n') = No absurd
476− decSNEq (InstanceN n xs) (ElimN n') = No absurd
489+ decSNEq (ImplementationN n xs) (ElimN n') = No absurd
477− decSNEq (InstanceN n xs) (InstanceCtorN n') = No absurd
490+ decSNEq (ImplementationN n xs) (ImplementationCtorN n') = No absurd
478− decSNEq (InstanceN n xs) (MetaN n' x) = No absurd
491+ decSNEq (ImplementationN n xs) (MetaN n' x) = No absurd
479 decSNEq (ParentN n x) (WhereN y n' z) = No absurd
492 decSNEq (ParentN n x) (WhereN y n' z) = No absurd
480 decSNEq (ParentN n x) (WithN y n') = No absurd
493 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
482 decSNEq (ParentN n x) (ParentN n' y) with (assert_total $ decTTNameEq n n')
495 decSNEq (ParentN n x) (ParentN n' y) with (assert_total $ decTTNameEq n n')
483 decSNEq (ParentN n x) (ParentN n y) | Yes Refl with (decEq x y)
496 decSNEq (ParentN n x) (ParentN n y) | Yes Refl with (decEq x y)
484 decSNEq (ParentN n x) (ParentN n x) | Yes Refl | Yes Refl =
497 decSNEq (ParentN n x) (ParentN n x) | Yes Refl | Yes Refl =
@@ -490,11 +503,11 @@ mutual
490 decSNEq (ParentN n x) (MethodN n') = No absurd
503 decSNEq (ParentN n x) (MethodN n') = No absurd
491 decSNEq (ParentN n x) (CaseN loc n') = No absurd
504 decSNEq (ParentN n x) (CaseN loc n') = No absurd
492 decSNEq (ParentN n x) (ElimN n') = No absurd
505 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
494 decSNEq (ParentN n x) (MetaN n' y) = No absurd
507 decSNEq (ParentN n x) (MetaN n' y) = No absurd
495 decSNEq (MethodN n) (WhereN x n' y) = No absurd
508 decSNEq (MethodN n) (WhereN x n' y) = No absurd
496 decSNEq (MethodN n) (WithN x n') = No absurd
509 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
498 decSNEq (MethodN n) (ParentN n' x) = No absurd
511 decSNEq (MethodN n) (ParentN n' x) = No absurd
499 decSNEq (MethodN n) (MethodN n') with (assert_total $ decTTNameEq n n')
512 decSNEq (MethodN n) (MethodN n') with (assert_total $ decTTNameEq n n')
500 decSNEq (MethodN n) (MethodN n) | Yes Refl =
513 decSNEq (MethodN n) (MethodN n) | Yes Refl =
@@ -503,11 +516,11 @@ mutual
503 No $ contra . methodNInj
516 No $ contra . methodNInj
504 decSNEq (MethodN n) (CaseN loc n') = No absurd
517 decSNEq (MethodN n) (CaseN loc n') = No absurd
505 decSNEq (MethodN n) (ElimN n') = No absurd
518 decSNEq (MethodN n) (ElimN n') = No absurd
506− decSNEq (MethodN n) (InstanceCtorN n') = No absurd
519+ decSNEq (MethodN n) (ImplementationCtorN n') = No absurd
507 decSNEq (MethodN n) (MetaN n' x) = No absurd
520 decSNEq (MethodN n) (MetaN n' x) = No absurd
508 decSNEq (CaseN loc n) (WhereN x n' y) = No absurd
521 decSNEq (CaseN loc n) (WhereN x n' y) = No absurd
509 decSNEq (CaseN loc n) (WithN x n') = No absurd
522 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
511 decSNEq (CaseN loc n) (ParentN n' x) = No absurd
524 decSNEq (CaseN loc n) (ParentN n' x) = No absurd
512 decSNEq (CaseN loc n) (MethodN n') = No absurd
525 decSNEq (CaseN loc n) (MethodN n') = No absurd
513 decSNEq (CaseN loc n) (CaseN loc' n') with (decEq loc loc')
526 decSNEq (CaseN loc n) (CaseN loc' n') with (decEq loc loc')
@@ -519,11 +532,11 @@ mutual
519 decSNEq (CaseN loc n) (CaseN loc' n') | No contra =
532 decSNEq (CaseN loc n) (CaseN loc' n') | No contra =
520 No $ contra . fst . caseNInj
533 No $ contra . fst . caseNInj
521 decSNEq (CaseN loc n) (ElimN n') = No absurd
534 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
523 decSNEq (CaseN loc n) (MetaN n' x) = No absurd
536 decSNEq (CaseN loc n) (MetaN n' x) = No absurd
524 decSNEq (ElimN n) (WhereN x n' y) = No absurd
537 decSNEq (ElimN n) (WhereN x n' y) = No absurd
525 decSNEq (ElimN n) (WithN x n') = No absurd
538 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
527 decSNEq (ElimN n) (ParentN n' x) = No absurd
540 decSNEq (ElimN n) (ParentN n' x) = No absurd
528 decSNEq (ElimN n) (MethodN n') = No absurd
541 decSNEq (ElimN n) (MethodN n') = No absurd
529 decSNEq (ElimN n) (CaseN loc n') = No absurd
542 decSNEq (ElimN n) (CaseN loc n') = No absurd
@@ -532,29 +545,29 @@ mutual
533 decSNEq (ElimN n) (ElimN n') | No contra =
546 decSNEq (ElimN n) (ElimN n') | No contra =
534 No $ contra . elimNInj
547 No $ contra . elimNInj
535− decSNEq (ElimN n) (InstanceCtorN n') = No absurd
548+ decSNEq (ElimN n) (ImplementationCtorN n') = No absurd
536 decSNEq (ElimN n) (MetaN n' x) = No absurd
549 decSNEq (ElimN n) (MetaN n' x) = No absurd
537− decSNEq (InstanceCtorN n) (WhereN x n' y) = No absurd
550+ decSNEq (ImplementationCtorN n) (WhereN x n' y) = No absurd
538− decSNEq (InstanceCtorN n) (WithN x n') = No absurd
551+ decSNEq (ImplementationCtorN n) (WithN x n') = No absurd
539− decSNEq (InstanceCtorN n) (InstanceN n' xs) = No absurd
552+ decSNEq (ImplementationCtorN n) (ImplementationN n' xs) = No absurd
540− decSNEq (InstanceCtorN n) (ParentN n' x) = No absurd
553+ decSNEq (ImplementationCtorN n) (ParentN n' x) = No absurd
541− decSNEq (InstanceCtorN n) (MethodN n') = No absurd
554+ decSNEq (ImplementationCtorN n) (MethodN n') = No absurd
542− decSNEq (InstanceCtorN n) (CaseN loc n') = No absurd
555+ decSNEq (ImplementationCtorN n) (CaseN loc n') = No absurd
543− decSNEq (InstanceCtorN n) (ElimN n') = No absurd
556+ decSNEq (ImplementationCtorN n) (ElimN n') = No absurd
544− decSNEq (InstanceCtorN n) (InstanceCtorN n') with (assert_total $ decTTNameEq n n')
557+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n') with (assert_total $ decTTNameEq n n')
545− decSNEq (InstanceCtorN n) (InstanceCtorN n) | Yes Refl =
558+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n) | Yes Refl =
547− decSNEq (InstanceCtorN n) (InstanceCtorN n') | No contra =
560+ decSNEq (ImplementationCtorN n) (ImplementationCtorN n') | No contra =
548− No $ contra . instanceCtorNInj
561+ No $ contra . implementationCtorNInj
549− decSNEq (InstanceCtorN n) (MetaN n' x) = No absurd
562+ decSNEq (ImplementationCtorN n) (MetaN n' x) = No absurd
550 decSNEq (MetaN n n') (WhereN x y z) = No absurd
563 decSNEq (MetaN n n') (WhereN x y z) = No absurd
551 decSNEq (MetaN n n') (WithN x y) = No absurd
564 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
553 decSNEq (MetaN n n') (ParentN x y) = No absurd
566 decSNEq (MetaN n n') (ParentN x y) = No absurd
554 decSNEq (MetaN n n') (MethodN x) = No absurd
567 decSNEq (MetaN n n') (MethodN x) = No absurd
555 decSNEq (MetaN n n') (CaseN loc x) = No absurd
568 decSNEq (MetaN n n') (CaseN loc x) = No absurd
556 decSNEq (MetaN n n') (ElimN x) = No absurd
569 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
558 decSNEq (MetaN n n') (MetaN x y) with (assert_total $ decTTNameEq n x)
571 decSNEq (MetaN n n') (MetaN x y) with (assert_total $ decTTNameEq n x)
559 decSNEq (MetaN n n') (MetaN n y) | Yes Refl with (assert_total $ decTTNameEq n' y)
572 decSNEq (MetaN n n') (MetaN n y) | Yes Refl with (assert_total $ decTTNameEq n' y)
560 decSNEq (MetaN n n') (MetaN n n') | Yes Refl | Yes Refl =
573 decSNEq (MetaN n n') (MetaN n n') | Yes Refl | Yes Refl =
@@ -798,7 +811,7 @@ data Tactic =
798 ||| Build a proof by applying contructors up to a maximum depth
811 ||| Build a proof by applying contructors up to a maximum depth
799 Search Int |
812 Search Int |
800 ||| Resolve an interface
813 ||| Resolve an interface
801− Instance |
814+ Implementation |
802 ||| Infer the proof target from the context
815 ||| Infer the proof target from the context
804 ||| introduce all variables into the context
817 ||| introduce all variables into the context
@@ -995,12 +1008,12 @@ mutual
995 quotedTy = `(SpecialName)
1008 quotedTy = `(SpecialName)
996 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
1009 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
997 quote (WithN i n) = `(WithN ~(quote i) ~(quote n))
1010 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))
999 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1012 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1000 quote (MethodN n) = `(MethodN ~(quote n))
1013 quote (MethodN n) = `(MethodN ~(quote n))
1001 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1014 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1002 quote (ElimN n) = `(ElimN ~(quote n))
1015 quote (ElimN n) = `(ElimN ~(quote n))
1003− quote (InstanceCtorN n) = `(InstanceCtorN ~(quote n))
1016+ quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
1004 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
1017 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
@@ -1015,12 +1028,12 @@ mutual
1015 quotedTy = `(SpecialName)
1028 quotedTy = `(SpecialName)
1016 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
1029 quote (WhereN i n1 n2) = `(WhereN ~(quote i) ~(quote n1) ~(quote n2))
1017 quote (WithN i n) = `(WithN ~(quote i) ~(quote n))
1030 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))
1019 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1032 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1020 quote (MethodN n) = `(MethodN ~(quote n))
1033 quote (MethodN n) = `(MethodN ~(quote n))
1021 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1034 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1022 quote (ElimN n) = `(ElimN ~(quote n))
1035 quote (ElimN n) = `(ElimN ~(quote n))
1023− quote (InstanceCtorN n) = `(InstanceCtorN ~(quote n))
1036+ quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
1024 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
1037 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
@@ -1272,7 +1285,7 @@ implementation Quotable Tactic TT where
1272 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
1285 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
1273 quote Trivial = `(Trivial)
1286 quote Trivial = `(Trivial)
1274 quote (Search x) = `(Search ~(quote x))
1287 quote (Search x) = `(Search ~(quote x))
1275− quote Instance = `(Instance)
1288+ quote Implementation = `(Implementation)
1276 quote Solve = `(Solve)
1289 quote Solve = `(Solve)
1277 quote Intros = `(Intros)
1290 quote Intros = `(Intros)
1278 quote (Intro n) = `(Intro ~(quote n))
1291 quote (Intro n) = `(Intro ~(quote n))
@@ -1302,7 +1315,7 @@ implementation Quotable Tactic Raw where
1302 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
1315 quote (Seq tac tac') = `(Seq ~(quote tac) ~(quote tac'))
1303 quote Trivial = `(Trivial)
1316 quote Trivial = `(Trivial)
1304 quote (Search x) = `(Search ~(quote x))
1317 quote (Search x) = `(Search ~(quote x))
1305− quote Instance = `(Instance)
1318+ quote Implementation = `(Implementation)
1306 quote Solve = `(Solve)
1319 quote Solve = `(Solve)
1307 quote Intros = `(Intros)
1320 quote Intros = `(Intros)
1308 quote (Intro n) = `(Intro ~(quote n))
1321 quote (Intro n) = `(Intro ~(quote n))