Skip to content

Commit 8ecbc95

Browse files
authored
Projection (#175)
* minor change * Data type associated with an ordinal notation is now a coercio
1 parent c7c44dc commit 8ecbc95

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

theories/ordinals/Epsilon0/Canon.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,9 +1032,9 @@ Lemma CanonSSn (i:nat) :
10321032
Canon (Cons alpha (S n) E0zero) (S i) =
10331033
Cons alpha n (Canon (E0_phi0 alpha) (S i)).
10341034
Proof.
1035-
intros; apply E0_eq_intro;
1036-
unfold Canon;repeat (rewrite cnf_rw || rewrite cnf_Cons); auto.
1037-
- rewrite canon_SSn_zero; auto with E0.
1035+
intros; apply E0_eq_intro.
1036+
unfold Canon; repeat (rewrite cnf_rw || rewrite cnf_Cons); auto.
1037+
- rewrite canon_SSn_zero; auto with E0.
10381038
- unfold lt, E0_phi0; repeat rewrite cnf_rw.
10391039
apply canonS_LT ; trivial.
10401040
apply nf_phi0;auto with E0.

theories/ordinals/Hydra/Omega2_Small.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Section Impossibility_Proof.
1919

2020
(* begin snippet Impossibilitya *)
2121

22-
Variable m : Hydra -> ON_Omega2.t.
22+
Variable m : Hydra -> rep Omega2.
2323
Context
2424
(Hvar: Hvariant Omega2 free m).
2525

theories/ordinals/OrdinalNotations/ON_Generic.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Class ON {A:Type} (lt: relation A) (cmp: Compare A) :=
3030
#[global] Existing Instance ON_comp.
3131
Coercion ON_wf : ON >-> well_founded.
3232

33+
Definition rep {A:Type} {lt: relation A} {cmp: Compare A}
34+
(on : ON lt cmp) := A.
35+
36+
#[global] Coercion rep : ON >-> Sortclass.
3337
(* end snippet ONDef *)
3438

3539
(* begin snippet ONDefsa:: no-out *)

theories/ordinals/OrdinalNotations/ON_Omega2.v

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ Proof.
498498
- abstract lia.
499499
Qed.
500500

501-
502501
Lemma ap_cases alpha : ap alpha -> alpha = 1 \/ alpha = omega.
503502
Proof.
504503
destruct (zero_limit_succ_dec alpha) as [[Hzero | Hlim] | Hsucc].

0 commit comments

Comments
 (0)