File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -513,18 +513,18 @@ well-typed term can never reach a stuck state.
513
513
> multistep : Tm -> Tm -> Type
514
514
> multistep = Multi Step
515
515
516
-
517
516
> soundness : {t, t': Tm} -> {T : Ty} ->
518
517
> Has_type t T ->
519
518
> t -> >* t' ->
520
519
> Not (stuck t')
521
- > soundness {t} {t'} {T = ty} ht p = ? hole
522
-
523
- Proof .
524
- intros t t' T HT P . induction P ; intros `R S `.
525
- destruct (progress x T HT ); auto.
526
- apply IHP . apply (preservation x y T HT H ).
527
- unfold stuck. split; auto. Qed .
520
+ > soundness ht Multi_refl (sl,sr) =
521
+ > case progress ht of
522
+ > Left hl => sr hl
523
+ > Right hr => sl hr
524
+ > soundness ht (Multi_step single multi) stuck =
525
+ > let ht' = preservation ht single
526
+ > indHyp = soundness ht' multi
527
+ > in indHyp stuck
528
528
529
529
<!--
530
530
@@ -639,6 +639,8 @@ Tactic Notation "normalize" :=
639
639
` (eauto 10 ; fail ) | (instantiate; simpl)`);
640
640
apply multi_refl.
641
641
642
+ -- >
643
+
642
644
(* ================================================================= * )
643
645
(** ** Additional Exercises * )
644
646
You can’t perform that action at this time.
0 commit comments