Skip to content

Commit

Permalink
Projection (#175)
Browse files Browse the repository at this point in the history
* minor change

* Data type associated with an ordinal notation is now a coercio
  • Loading branch information
Casteran authored Jan 28, 2024
1 parent c7c44dc commit 8ecbc95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions theories/ordinals/Epsilon0/Canon.v
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,9 @@ Lemma CanonSSn (i:nat) :
Canon (Cons alpha (S n) E0zero) (S i) =
Cons alpha n (Canon (E0_phi0 alpha) (S i)).
Proof.
intros; apply E0_eq_intro;
unfold Canon;repeat (rewrite cnf_rw || rewrite cnf_Cons); auto.
- rewrite canon_SSn_zero; auto with E0.
intros; apply E0_eq_intro.
unfold Canon; repeat (rewrite cnf_rw || rewrite cnf_Cons); auto.
- rewrite canon_SSn_zero; auto with E0.
- unfold lt, E0_phi0; repeat rewrite cnf_rw.
apply canonS_LT ; trivial.
apply nf_phi0;auto with E0.
Expand Down
2 changes: 1 addition & 1 deletion theories/ordinals/Hydra/Omega2_Small.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Section Impossibility_Proof.

(* begin snippet Impossibilitya *)

Variable m : Hydra -> ON_Omega2.t.
Variable m : Hydra -> rep Omega2.
Context
(Hvar: Hvariant Omega2 free m).

Expand Down
4 changes: 4 additions & 0 deletions theories/ordinals/OrdinalNotations/ON_Generic.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Class ON {A:Type} (lt: relation A) (cmp: Compare A) :=
#[global] Existing Instance ON_comp.
Coercion ON_wf : ON >-> well_founded.

Definition rep {A:Type} {lt: relation A} {cmp: Compare A}
(on : ON lt cmp) := A.

#[global] Coercion rep : ON >-> Sortclass.
(* end snippet ONDef *)

(* begin snippet ONDefsa:: no-out *)
Expand Down
1 change: 0 additions & 1 deletion theories/ordinals/OrdinalNotations/ON_Omega2.v
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ Proof.
- abstract lia.
Qed.


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

0 comments on commit 8ecbc95

Please sign in to comment.