Skip to content

Commit d89b37c

Browse files
Merge pull request #105 from SkyLabsAI/paolo/missing-opacity
cassert/vector specs: add missing opacity/knowledge
2 parents c63ec2f + e50b9ed commit d89b37c

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

rocq-brick-libstdcpp/proof/cassert/spec.v

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Section with_cpp.
3333

3434
Definition specs :=
3535
assert_fail_spec ** assert_rtn_spec.
36+
#[global] Hint Opaque specs : typeclass_instances sl_opacity.
37+
#[only(knowledge)] derive specs.
3638
End with_cpp.
3739

3840
NES.End std.cassert.

rocq-brick-libstdcpp/proof/vector/spec.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ NES.Begin std.
368368
iter_op_pre_inc const ty alloc_ty **
369369
iter_op_eq const ty alloc_ty **
370370
iter_op_ne const ty alloc_ty.
371+
#[global] Hint Opaque specs : typeclass_instances sl_opacity.
372+
#[only(knowledge)] derive specs.
371373

372374
End iter.
373375
#[global] Existing Instance iterator_has_rep.
@@ -767,6 +769,8 @@ NES.Begin std.
767769
size **
768770
MaybeConst begin_spec **
769771
MaybeConst end_spec.
772+
#[global] Hint Opaque specs : typeclass_instances sl_opacity.
773+
#[only(knowledge)] derive specs.
770774

771775
End specs.
772776

rocq-brick-libstdcpp/test/vector/test_cpp_proof.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ Section with_cpp.
294294
Proof using MOD.
295295
rewrite /std.vector.specs.
296296
rewrite /std.vector.iterator.specs.
297+
rewrite /std.cassert.specs.
297298
work.
298299
Qed.
299300

0 commit comments

Comments
 (0)