1
1
(** This file defines the interpretation function, from the syntax of our toy type theory into any split type-cat with suitable structure. *)
2
2
3
3
4
- (** * TODO NOTE: This file depends on Coq.Init.Logic.
5
- Removing the following line causes the error:
6
-
7
- File "./TypeTheory/TypeTheory/Initiality/Interpretation.v", line 366, characters 4-5:
8
- Error: [Focus] Wrong bullet -: Current bullet + is not finished.
9
- *)
10
- Require Import Coq.Init.Logic.
11
-
12
4
Require Import UniMath.MoreFoundations.All .
13
5
Require Import UniMath.CategoryTheory.Core.Prelude.
14
6
@@ -362,7 +354,7 @@ Section Partial_Interpretation.
362
354
apply funextfun; intros i. apply maponpaths_2.
363
355
eapply pathscomp0. 2: { apply partial_interpretation_rename_ty. }
364
356
apply maponpaths_2, funextfun.
365
- refine (dB_Sn_rect _ _ _); auto .
357
+ refine (dB_Sn_rect _ _ _); reflexivity .
366
358
- (* term expressions *)
367
359
destruct e as [ m i | m A B b | m A B t a ].
368
360
+ (* [var_expr i] *)
@@ -373,7 +365,7 @@ Section Partial_Interpretation.
373
365
apply funextfun; intros A_interp.
374
366
assert (e_EA : (extend_environment (E ∘ f) A_interp
375
367
= extend_environment E A_interp ∘ fmap_dB_S f)).
376
- { apply funextfun. refine (dB_Sn_rect _ _ _); auto . }
368
+ { apply funextfun. refine (dB_Sn_rect _ _ _); reflexivity . }
377
369
apply maponpaths_12.
378
370
{ eapply pathscomp0. 2: { apply partial_interpretation_rename_ty. }
379
371
apply maponpaths_2, e_EA. }
@@ -386,7 +378,7 @@ Section Partial_Interpretation.
386
378
apply funextfun; intros A_interp.
387
379
assert (e_EA : (extend_environment (E ∘ f) A_interp
388
380
= extend_environment E A_interp ∘ fmap_dB_S f)).
389
- { apply funextfun. refine (dB_Sn_rect _ _ _); auto . }
381
+ { apply funextfun. refine (dB_Sn_rect _ _ _); reflexivity . }
390
382
apply maponpaths_12.
391
383
{ eapply pathscomp0. 2: { apply partial_interpretation_rename_ty. }
392
384
apply maponpaths_2, e_EA. }
@@ -514,7 +506,7 @@ a little more work to state. *)
514
506
apply make_leq_partial'; cbn; intros [f_def b_def].
515
507
use tpair.
516
508
- refine (dB_Sn_rect _ _ _); assumption.
517
- - apply funextfun. refine (dB_Sn_rect _ _ _); auto .
509
+ - apply funextfun. refine (dB_Sn_rect _ _ _); reflexivity .
518
510
Defined .
519
511
520
512
Definition partial_interpretation_tm_as_raw_context_map
0 commit comments