VOOZH about

URL: https://qiita.com/yoshihiro503/items/0bca75e5ab52e40f01f6

⇱ 第33回 #ProofCafe での練習問題のssreflectを使った解答例。 #Coq - Qiita


👁 Image
1

Go to list of users who liked

0

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@yoshihiro503in👁 Image
株式会社proof ninja

第33回 #ProofCafe での練習問題のssreflectを使った解答例。

1
Posted at

第33回 #ProofCafe での練習問題のssreflectを使った解答例。

Equiv_J.v
RequireImportssreflect.(* **** Exercise: 3 stars (swap_if_branches) *)(** **** 練習問題: ★★★ (swap_if_branches) *)Theoremswap_if_branches:forallbe1e2,cequiv(IFBbTHENe1ELSEe2FI)(IFBBNotbTHENe2ELSEe1FI).Proof.move=>be1e2.split=>H.-inversionH;subst.+byapplyE_IfFalse;[simpl;rewriteH5|].+byapplyE_IfTrue;[simpl;rewriteH5|].-inversionH;subst.+applyE_IfFalse;[|assumption].rewrite(negb_involutive_reverse(bevalstb)).simplinH5.byrewriteH5.+applyE_IfTrue;[|assumption].rewrite(negb_involutive_reverse(bevalstb)).simplinH5.byrewriteH5.Qed.

ProofCafe: http://proofcafe.org/wiki/

1

Go to list of users who liked

0
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1

Go to list of users who liked

0