-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAnnotatedBool.v
More file actions
38 lines (35 loc) · 953 Bytes
/
AnnotatedBool.v
File metadata and controls
38 lines (35 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Require Export SystemFR.Judgments.
Require Export SystemFR.AnnotatedTactics.
Require Export SystemFR.ErasedBool.
Lemma annotated_reducible_true:
forall Θ Γ,
[[ Θ; Γ ⊨ ttrue : T_bool ]].
Proof.
eauto using open_reducible_true.
Qed.
Lemma annotated_reducible_false:
forall Θ Γ,
[[ Θ; Γ ⊨ tfalse : T_bool ]].
Proof.
intros; eauto using open_reducible_false.
Qed.
Lemma annotated_reducible_ite:
forall Θ Γ b t1 t2 T x,
~(x ∈ fv_context Γ) ->
~(x ∈ fv b) ->
~(x ∈ fv t1) ->
~(x ∈ fv t2) ->
~(x ∈ fv T) ->
~(x ∈ Θ) ->
wf t1 0 ->
wf t2 0 ->
subset (fv t1) (support Γ) ->
subset (fv t2) (support Γ) ->
[[ Θ; Γ ⊨ b : T_bool ]] ->
[[ Θ; (x, T_equiv b ttrue) :: Γ ⊨ t1 : T ]] ->
[[ Θ; (x, T_equiv b tfalse) :: Γ ⊨ t2 : T ]] ->
[[ Θ; Γ ⊨ ite b t1 t2 : T ]].
Proof.
repeat step || apply open_reducible_ite with x;
side_conditions.
Qed.