Skip to content

Commit c606865

Browse files
committed
more clean up
1 parent 4e63950 commit c606865

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

theories/Algorithmic/UntypedAlgorithmicConversion.v

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ Section UConvStr.
267267
End UConvStr.
268268

269269
Section NeutralConversion.
270-
Context `{!TypingSubst (ta := de)} `{!TypeConstructorsInj (ta := de)} `{!TypeReductionComplete (ta := de)}.
270+
Context `{!TypingSubst (ta := de)} `{!TypeConstructorsInj (ta := de)} `{!TypeReductionComplete (ta := de)} `{!ConvComplete (ta := de) (ta' := al)}.
271+
271272

272273
Import AlgorithmicTypingData.
273274

@@ -282,7 +283,7 @@ Section NeutralConversion.
282283
Proof.
283284
intros * ???? [[]%algo_conv_wh Hconv]%dup ? ; tea.
284285
eapply algo_conv_sound in Hconv as [[Hconv]%dup] ; tea.
285-
eapply algo_conv_tm_complete, algo_conv_conv in Hconv ; cycle 1.
286+
eapply tm_conv_compl, algo_conv_conv in Hconv ; cycle 1.
286287
- eapply ctx_refl ; boundary.
287288
- eassumption.
288289
- boundary.
@@ -654,6 +655,7 @@ Section Soundness.
654655
`{!TypingSubst (ta := de)}
655656
`{!TypeConstructorsInj (ta := de)}
656657
`{!TypeReductionComplete (ta := de)}
658+
`{!ConvComplete (ta := de) (ta' := al)}
657659
`{!Normalisation (ta := de)}.
658660

659661
Let PEq (t u : term) :=
@@ -1020,7 +1022,8 @@ Section Completeness.
10201022
Context
10211023
`{!TypingSubst (ta := de)}
10221024
`{!TypeConstructorsInj (ta := de)}
1023-
`{!TypeReductionComplete (ta := de)}.
1025+
`{!TypeReductionComplete (ta := de)}
1026+
`{!ConvComplete (ta := de) (ta' := al)}.
10241027

10251028
Lemma whne_app_inv f g :
10261029
[tApp f⟨↑⟩ (tRel 0) ~ tApp g⟨↑⟩ (tRel 0)] ->

theories/Decidability/UntypedCompleteness.v

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ From PartialFun Require Import Monad PartialFun MonadExn.
99

1010
Set Universe Polymorphism.
1111

12-
Import DeclarativeTypingProperties.
12+
Import DeclarativeTypingProperties AlgorithmicTypingData.
1313

1414
Section ConversionComplete.
1515
Context
1616
`{!TypingSubst (ta := de)}
1717
`{!TypeConstructorsInj (ta := de)}
1818
`{!TypeReductionComplete (ta := de)}
19+
`{!ConvComplete (ta := de) (ta' := al)}
1920
`{!Normalisation (ta := de)}.
20-
Check fixme.
2121
(* We are using normalisation, because we need soundness of untyped conversion,
2222
which is currently obtained by going through typed algo conversion, but the
23-
implication untyped algo -> typed algo relies on normalisation. *)
23+
implication untyped algo -> typed algo relies on normalisation.
24+
If we proved soundness of untyped algorithmic conversion directly, we would
25+
only need completeness. *)
2426

2527
Let PEq (t u : term) :=
2628
(forall Γ, [Γ |-[de] t] × [Γ |-[de] u] -> graph _uconv (tm_state,t,u) ok) ×

0 commit comments

Comments
 (0)