@@ -69,7 +69,6 @@ mutual
69 | ParentN TTName String
69 | ParentN TTName String
70 | MethodN TTName
70 | MethodN TTName
71 | CaseN SourceLocation TTName
71 | CaseN SourceLocation TTName
73 | ImplementationCtorN TTName
72 | ImplementationCtorN TTName
74 | MetaN TTName TTName
73 | MetaN TTName TTName
75 %name SpecialName sn, sn'
74 %name SpecialName sn, sn'
@@ -129,9 +128,6 @@ implementation Uninhabited ((WhereN x n n') = (MethodN y)) where
129implementation Uninhabited ((WhereN x n n') = (CaseN loc y)) where
128implementation Uninhabited ((WhereN x n n') = (CaseN loc y)) where
130 uninhabited Refl impossible
129 uninhabited Refl impossible
132−implementation Uninhabited ((WhereN x n n') = (ElimN y)) where
133− uninhabited Refl impossible
135implementation Uninhabited ((WhereN x n n') = (ImplementationCtorN y)) where
131implementation Uninhabited ((WhereN x n n') = (ImplementationCtorN y)) where
136 uninhabited Refl impossible
132 uninhabited Refl impossible
@@ -153,9 +149,6 @@ implementation Uninhabited ((WithN x n) = (MethodN n')) where
153implementation Uninhabited ((WithN x n) = (CaseN loc n')) where
149implementation Uninhabited ((WithN x n) = (CaseN loc n')) where
154 uninhabited Refl impossible
150 uninhabited Refl impossible
156−implementation Uninhabited ((WithN x n) = (ElimN n')) where
157− uninhabited Refl impossible
159implementation Uninhabited ((WithN x n) = (ImplementationCtorN n')) where
152implementation Uninhabited ((WithN x n) = (ImplementationCtorN n')) where
160 uninhabited Refl impossible
153 uninhabited Refl impossible
@@ -177,9 +170,6 @@ implementation Uninhabited ((ImplementationN n xs) = (MethodN n')) where
177implementation Uninhabited ((ImplementationN n xs) = (CaseN loc n')) where
170implementation Uninhabited ((ImplementationN n xs) = (CaseN loc n')) where
178 uninhabited Refl impossible
171 uninhabited Refl impossible
180−implementation Uninhabited ((ImplementationN n xs) = (ElimN n')) where
181− uninhabited Refl impossible
183implementation Uninhabited ((ImplementationN n xs) = (ImplementationCtorN n')) where
173implementation Uninhabited ((ImplementationN n xs) = (ImplementationCtorN n')) where
184 uninhabited Refl impossible
174 uninhabited Refl impossible
@@ -201,9 +191,6 @@ implementation Uninhabited ((ParentN n x) = (MethodN n')) where
201implementation Uninhabited ((ParentN n x) = (CaseN loc n')) where
191implementation Uninhabited ((ParentN n x) = (CaseN loc n')) where
202 uninhabited Refl impossible
192 uninhabited Refl impossible
204−implementation Uninhabited ((ParentN n x) = (ElimN n')) where
205− uninhabited Refl impossible
207implementation Uninhabited ((ParentN n x) = (ImplementationCtorN n')) where
194implementation Uninhabited ((ParentN n x) = (ImplementationCtorN n')) where
208 uninhabited Refl impossible
195 uninhabited Refl impossible
@@ -225,9 +212,6 @@ implementation Uninhabited ((MethodN n) = (ParentN n' x)) where
225implementation Uninhabited ((MethodN n) = (CaseN loc n')) where
212implementation Uninhabited ((MethodN n) = (CaseN loc n')) where
226 uninhabited Refl impossible
213 uninhabited Refl impossible
228−implementation Uninhabited ((MethodN n) = (ElimN n')) where
229− uninhabited Refl impossible
231implementation Uninhabited ((MethodN n) = (ImplementationCtorN n')) where
215implementation Uninhabited ((MethodN n) = (ImplementationCtorN n')) where
232 uninhabited Refl impossible
216 uninhabited Refl impossible
@@ -249,39 +233,12 @@ implementation Uninhabited ((CaseN loc n) = (ParentN n' x)) where
249implementation Uninhabited ((CaseN loc n) = (MethodN n')) where
233implementation Uninhabited ((CaseN loc n) = (MethodN n')) where
250 uninhabited Refl impossible
234 uninhabited Refl impossible
252−implementation Uninhabited ((CaseN loc n) = (ElimN n')) where
253− uninhabited Refl impossible
255implementation Uninhabited ((CaseN loc n) = (ImplementationCtorN n')) where
236implementation Uninhabited ((CaseN loc n) = (ImplementationCtorN n')) where
256 uninhabited Refl impossible
237 uninhabited Refl impossible
258implementation Uninhabited ((CaseN loc n) = (MetaN n' x)) where
239implementation Uninhabited ((CaseN loc n) = (MetaN n' x)) where
259 uninhabited Refl impossible
240 uninhabited Refl impossible
261−implementation Uninhabited ((ElimN n) = (WhereN x n' y)) where
262− uninhabited Refl impossible
264−implementation Uninhabited ((ElimN n) = (WithN x n')) where
265− uninhabited Refl impossible
267−implementation Uninhabited ((ElimN n) = (ImplementationN n' xs)) where
268− uninhabited Refl impossible
270−implementation Uninhabited ((ElimN n) = (ParentN n' x)) where
271− uninhabited Refl impossible
273−implementation Uninhabited ((ElimN n) = (MethodN n')) where
274− uninhabited Refl impossible
276−implementation Uninhabited ((ElimN n) = (CaseN loc n')) where
277− uninhabited Refl impossible
279−implementation Uninhabited ((ElimN n) = (ImplementationCtorN n')) where
280− uninhabited Refl impossible
282−implementation Uninhabited ((ElimN n) = (MetaN n' x)) where
283− uninhabited Refl impossible
285implementation Uninhabited ((ImplementationCtorN n) = (WhereN x n' y)) where
242implementation Uninhabited ((ImplementationCtorN n) = (WhereN x n' y)) where
286 uninhabited Refl impossible
243 uninhabited Refl impossible
@@ -300,9 +257,6 @@ implementation Uninhabited ((ImplementationCtorN n) = (MethodN n')) where
300implementation Uninhabited ((ImplementationCtorN n) = (CaseN loc n')) where
257implementation Uninhabited ((ImplementationCtorN n) = (CaseN loc n')) where
301 uninhabited Refl impossible
258 uninhabited Refl impossible
303−implementation Uninhabited ((ImplementationCtorN n) = (ElimN n')) where
304− uninhabited Refl impossible
306implementation Uninhabited ((ImplementationCtorN n) = (MetaN n' x)) where
260implementation Uninhabited ((ImplementationCtorN n) = (MetaN n' x)) where
307 uninhabited Refl impossible
261 uninhabited Refl impossible
@@ -324,9 +278,6 @@ implementation Uninhabited ((MetaN n n') = (MethodN x)) where
324implementation Uninhabited ((MetaN n n') = (CaseN loc x)) where
278implementation Uninhabited ((MetaN n n') = (CaseN loc x)) where
325 uninhabited Refl impossible
279 uninhabited Refl impossible
327−implementation Uninhabited ((MetaN n n') = (ElimN x)) where
328− uninhabited Refl impossible
330implementation Uninhabited ((MetaN n n') = (ImplementationCtorN x)) where
281implementation Uninhabited ((MetaN n n') = (ImplementationCtorN x)) where
331 uninhabited Refl impossible
282 uninhabited Refl impossible
@@ -415,10 +366,6 @@ mutual
415 caseNInj : (CaseN loc n = CaseN loc' n') -> (loc = loc', n = n')
366 caseNInj : (CaseN loc n = CaseN loc' n') -> (loc = loc', n = n')
416 caseNInj Refl = (Refl, Refl)
367 caseNInj Refl = (Refl, Refl)
419− elimNInj : (ElimN n = ElimN n') -> n = n'
420− elimNInj Refl = Refl
423 implementationCtorNInj : (ImplementationCtorN n = ImplementationCtorN n') -> n = n'
370 implementationCtorNInj : (ImplementationCtorN n = ImplementationCtorN n') -> n = n'
424 implementationCtorNInj Refl = Refl
371 implementationCtorNInj Refl = Refl
@@ -445,7 +392,6 @@ mutual
445 decSNEq (WhereN x n n') (ParentN y z) = No absurd
392 decSNEq (WhereN x n n') (ParentN y z) = No absurd
446 decSNEq (WhereN x n n') (MethodN y) = No absurd
393 decSNEq (WhereN x n n') (MethodN y) = No absurd
447 decSNEq (WhereN x n n') (CaseN loc y) = No absurd
394 decSNEq (WhereN x n n') (CaseN loc y) = No absurd
448− decSNEq (WhereN x n n') (ElimN y) = No absurd
449 decSNEq (WhereN x n n') (ImplementationCtorN y) = No absurd
395 decSNEq (WhereN x n n') (ImplementationCtorN y) = No absurd
450 decSNEq (WhereN x n n') (MetaN y z) = No absurd
396 decSNEq (WhereN x n n') (MetaN y z) = No absurd
451 decSNEq (WithN x n) (WhereN y n' z) = No absurd
397 decSNEq (WithN x n) (WhereN y n' z) = No absurd
@@ -461,7 +407,6 @@ mutual
461 decSNEq (WithN x n) (ParentN n' y) = No absurd
407 decSNEq (WithN x n) (ParentN n' y) = No absurd
462 decSNEq (WithN x n) (MethodN n') = No absurd
408 decSNEq (WithN x n) (MethodN n') = No absurd
463 decSNEq (WithN x n) (CaseN loc n') = No absurd
409 decSNEq (WithN x n) (CaseN loc n') = No absurd
464− decSNEq (WithN x n) (ElimN n') = No absurd
465 decSNEq (WithN x n) (ImplementationCtorN n') = No absurd
410 decSNEq (WithN x n) (ImplementationCtorN n') = No absurd
466 decSNEq (WithN x n) (MetaN n' y) = No absurd
411 decSNEq (WithN x n) (MetaN n' y) = No absurd
467 decSNEq (ImplementationN n xs) (WhereN x n' y) = No absurd
412 decSNEq (ImplementationN n xs) (WhereN x n' y) = No absurd
@@ -477,7 +422,6 @@ mutual
477 decSNEq (ImplementationN n xs) (ParentN n' x) = No absurd
422 decSNEq (ImplementationN n xs) (ParentN n' x) = No absurd
478 decSNEq (ImplementationN n xs) (MethodN n') = No absurd
423 decSNEq (ImplementationN n xs) (MethodN n') = No absurd
479 decSNEq (ImplementationN n xs) (CaseN loc n') = No absurd
424 decSNEq (ImplementationN n xs) (CaseN loc n') = No absurd
480− decSNEq (ImplementationN n xs) (ElimN n') = No absurd
481 decSNEq (ImplementationN n xs) (ImplementationCtorN n') = No absurd
425 decSNEq (ImplementationN n xs) (ImplementationCtorN n') = No absurd
482 decSNEq (ImplementationN n xs) (MetaN n' x) = No absurd
426 decSNEq (ImplementationN n xs) (MetaN n' x) = No absurd
483 decSNEq (ParentN n x) (WhereN y n' z) = No absurd
427 decSNEq (ParentN n x) (WhereN y n' z) = No absurd
@@ -493,7 +437,6 @@ mutual
493 No $ contra . fst . parentNInj
437 No $ contra . fst . parentNInj
494 decSNEq (ParentN n x) (MethodN n') = No absurd
438 decSNEq (ParentN n x) (MethodN n') = No absurd
495 decSNEq (ParentN n x) (CaseN loc n') = No absurd
439 decSNEq (ParentN n x) (CaseN loc n') = No absurd
496− decSNEq (ParentN n x) (ElimN n') = No absurd
497 decSNEq (ParentN n x) (ImplementationCtorN n') = No absurd
440 decSNEq (ParentN n x) (ImplementationCtorN n') = No absurd
498 decSNEq (ParentN n x) (MetaN n' y) = No absurd
441 decSNEq (ParentN n x) (MetaN n' y) = No absurd
499 decSNEq (MethodN n) (WhereN x n' y) = No absurd
442 decSNEq (MethodN n) (WhereN x n' y) = No absurd
@@ -506,7 +449,6 @@ mutual
506 decSNEq (MethodN n) (MethodN n') | No contra =
449 decSNEq (MethodN n) (MethodN n') | No contra =
507 No $ contra . methodNInj
450 No $ contra . methodNInj
508 decSNEq (MethodN n) (CaseN loc n') = No absurd
451 decSNEq (MethodN n) (CaseN loc n') = No absurd
509− decSNEq (MethodN n) (ElimN n') = No absurd
510 decSNEq (MethodN n) (ImplementationCtorN n') = No absurd
452 decSNEq (MethodN n) (ImplementationCtorN n') = No absurd
511 decSNEq (MethodN n) (MetaN n' x) = No absurd
453 decSNEq (MethodN n) (MetaN n' x) = No absurd
512 decSNEq (CaseN loc n) (WhereN x n' y) = No absurd
454 decSNEq (CaseN loc n) (WhereN x n' y) = No absurd
@@ -522,29 +464,14 @@ mutual
522 No $ contra . snd . caseNInj
464 No $ contra . snd . caseNInj
523 decSNEq (CaseN loc n) (CaseN loc' n') | No contra =
465 decSNEq (CaseN loc n) (CaseN loc' n') | No contra =
524 No $ contra . fst . caseNInj
466 No $ contra . fst . caseNInj
525− decSNEq (CaseN loc n) (ElimN n') = No absurd
526 decSNEq (CaseN loc n) (ImplementationCtorN n') = No absurd
467 decSNEq (CaseN loc n) (ImplementationCtorN n') = No absurd
527 decSNEq (CaseN loc n) (MetaN n' x) = No absurd
468 decSNEq (CaseN loc n) (MetaN n' x) = No absurd
528− decSNEq (ElimN n) (WhereN x n' y) = No absurd
529− decSNEq (ElimN n) (WithN x n') = No absurd
530− decSNEq (ElimN n) (ImplementationN n' xs) = No absurd
531− decSNEq (ElimN n) (ParentN n' x) = No absurd
532− decSNEq (ElimN n) (MethodN n') = No absurd
533− decSNEq (ElimN n) (CaseN loc n') = No absurd
534− decSNEq (ElimN n) (ElimN n') with (assert_total $ decTTNameEq n n')
535− decSNEq (ElimN n) (ElimN n) | Yes Refl =
537− decSNEq (ElimN n) (ElimN n') | No contra =
538− No $ contra . elimNInj
539− decSNEq (ElimN n) (ImplementationCtorN n') = No absurd
540− decSNEq (ElimN n) (MetaN n' x) = No absurd
541 decSNEq (ImplementationCtorN n) (WhereN x n' y) = No absurd
469 decSNEq (ImplementationCtorN n) (WhereN x n' y) = No absurd
542 decSNEq (ImplementationCtorN n) (WithN x n') = No absurd
470 decSNEq (ImplementationCtorN n) (WithN x n') = No absurd
543 decSNEq (ImplementationCtorN n) (ImplementationN n' xs) = No absurd
471 decSNEq (ImplementationCtorN n) (ImplementationN n' xs) = No absurd
544 decSNEq (ImplementationCtorN n) (ParentN n' x) = No absurd
472 decSNEq (ImplementationCtorN n) (ParentN n' x) = No absurd
545 decSNEq (ImplementationCtorN n) (MethodN n') = No absurd
473 decSNEq (ImplementationCtorN n) (MethodN n') = No absurd
546 decSNEq (ImplementationCtorN n) (CaseN loc n') = No absurd
474 decSNEq (ImplementationCtorN n) (CaseN loc n') = No absurd
547− decSNEq (ImplementationCtorN n) (ElimN n') = No absurd
548 decSNEq (ImplementationCtorN n) (ImplementationCtorN n') with (assert_total $ decTTNameEq n n')
475 decSNEq (ImplementationCtorN n) (ImplementationCtorN n') with (assert_total $ decTTNameEq n n')
549 decSNEq (ImplementationCtorN n) (ImplementationCtorN n) | Yes Refl =
476 decSNEq (ImplementationCtorN n) (ImplementationCtorN n) | Yes Refl =
@@ -557,7 +484,6 @@ mutual
557 decSNEq (MetaN n n') (ParentN x y) = No absurd
484 decSNEq (MetaN n n') (ParentN x y) = No absurd
558 decSNEq (MetaN n n') (MethodN x) = No absurd
485 decSNEq (MetaN n n') (MethodN x) = No absurd
559 decSNEq (MetaN n n') (CaseN loc x) = No absurd
486 decSNEq (MetaN n n') (CaseN loc x) = No absurd
560− decSNEq (MetaN n n') (ElimN x) = No absurd
561 decSNEq (MetaN n n') (ImplementationCtorN x) = No absurd
487 decSNEq (MetaN n n') (ImplementationCtorN x) = No absurd
562 decSNEq (MetaN n n') (MetaN x y) with (assert_total $ decTTNameEq n x)
488 decSNEq (MetaN n n') (MetaN x y) with (assert_total $ decTTNameEq n x)
563 decSNEq (MetaN n n') (MetaN n y) | Yes Refl with (assert_total $ decTTNameEq n' y)
489 decSNEq (MetaN n n') (MetaN n y) | Yes Refl with (assert_total $ decTTNameEq n' y)
@@ -1006,7 +932,6 @@ mutual
1006 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
932 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1007 quote (MethodN n) = `(MethodN ~(quote n))
933 quote (MethodN n) = `(MethodN ~(quote n))
1008 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
934 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1009− quote (ElimN n) = `(ElimN ~(quote n))
1010 quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
935 quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
1011 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
936 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
@@ -1026,7 +951,6 @@ mutual
1026 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
951 quote (ParentN n s) = `(ParentN ~(quote n) ~(quote s))
1027 quote (MethodN n) = `(MethodN ~(quote n))
952 quote (MethodN n) = `(MethodN ~(quote n))
1028 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
953 quote (CaseN fc n) = `(CaseN ~(quote fc) ~(quote n))
1029− quote (ElimN n) = `(ElimN ~(quote n))
1030 quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
954 quote (ImplementationCtorN n) = `(ImplementationCtorN ~(quote n))
1031 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))
955 quote (MetaN parent meta) = `(MetaN ~(quote parent) ~(quote meta))