@@ -82,7 +82,7 @@ instance [OFE.Discrete A] [OFE.Discrete B] : OFE.Discrete (View F R) where
8282end ofe
8383
8484section cmra
85- variable [DFractional F] [OFE A] [IB : UCMRA B] {R : view_rel A B} [ViewRel R]
85+ variable [UFraction F] [OFE A] [IB : UCMRA B] {R : view_rel A B} [ViewRel R]
8686
8787-- Lemma
8888theorem rel_iff_agree (Hb : b' ≡{n}≡ b) :
@@ -112,15 +112,15 @@ instance auth_ne₂ : OFE.NonExpansive₂ (View.auth : DFrac F → A → View F
112112instance frag_ne : OFE.NonExpansive (View.frag : B → View F R) where
113113 ne _ _ _ H := View.mk.ne.ne .rfl H
114114
115- omit [ViewRel R] [DFractional F] in
115+ omit [ViewRel R] [UFraction F] in
116116theorem view_auth.frac_inj {q1 q2 : DFrac F} {a1 a2 : A} {n} (H : (●V{q1} a1 : View F R) ≡{n}≡ ●V{q2} a2) :
117117 q1 = q2 := H.1 .1
118118
119- omit [ViewRel R] [DFractional F] in
119+ omit [ViewRel R] [UFraction F] in
120120theorem view_auth.ag_inj {q1 q2 : DFrac F} {a1 a2 : A} {n} (H : (●V{q1} a1 : View F R) ≡{n}≡ ●V{q2} a2) :
121121 a1 ≡{n}≡ a2 := toAgree.inj H.1 .2
122122
123- omit [ViewRel R] [DFractional F] in
123+ omit [ViewRel R] [UFraction F] in
124124theorem view_frag.inj {b1 b2 : B} {n} (H : (◯V b1 : View F R) ≡{n}≡ ◯V b2) :
125125 b1 ≡{n}≡ b2 := H.2
126126
@@ -277,7 +277,7 @@ theorem view_auth_discrete {dq a} (Ha : OFE.DiscreteE a) (He : OFE.DiscreteE (UC
277277 apply Agree.toAgree.is_discrete
278278 exact Ha
279279
280- omit [DFractional F] [ViewRel R] in
280+ omit [UFraction F] [ViewRel R] in
281281theorem view_frag_discrete {b : B} (Hb : OFE.DiscreteE b) : (OFE.DiscreteE (◯V b : View F R)) :=
282282 is_discrete OFE.Option.none_is_discrete Hb
283283
@@ -369,7 +369,7 @@ theorem view_auth_dfrac_op_validN :
369369theorem view_auth_op_validN : ✓{n} ((●V a1 : View F R) • ●V a2) ↔ False := by
370370 refine view_auth_dfrac_op_validN.trans ?_
371371 simp [CMRA.op, op, _root_.op, CMRA.Valid]
372- intro Hk; exfalso -- DFractional lemma
372+ intro Hk; exfalso -- UFraction lemma
373373 sorry
374374
375375theorem view_frag_validN : ✓{n} (◯V b : View F R) ↔ ∃ a, R n a b := by rfl
0 commit comments