This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am bonotake on github. | |
* I am bonotake (https://keybase.io/bonotake) on keybase. | |
* I have a public key ASCraTyLJLGcmVO3SwQD_Z3TIoDtAy4EzDVT4jaOcu3rCgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
# コルーチン1 | |
async def test1(): | |
await asyncio.sleep(3) | |
print('now in test1.') | |
return "test1" | |
# コルーチン2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Alloyで直和を考える | |
cf. http://d.hatena.ne.jp/bonotake/20140414/1397488714 | |
http://d.hatena.ne.jp/m-hiyama/20140414/1397432990 | |
*/ | |
sig A, B, C {} -- univを豊かにするために置いておく | |
enum Tag { Fst, Snd } | |
fun prod1(a, b: univ): Tag -> univ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open util/ordering[Col] as cols | |
open util/ordering[Row] as rows | |
abstract sig Region {} | |
sig Col extends Region { | |
cell: Row -> Cell | |
} | |
sig Row extends Region {} | |
enum Cell { Black, White } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<alloy> | |
<view> | |
<projection> <type name="質問"/> </projection> | |
<defaultnode/> | |
<defaultedge/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract sig カロタン { | |
性別: 男か女か, | |
発言1: Prop, | |
発言2: lone Prop | |
} | |
{ | |
// 男なら常に真実を語る | |
性別 in 男性 => 発言1.真偽 in ホント and (some 発言2 =>発言2.真偽 in ホント) | |
// 女はどっちかホントでどっちかがウソ | |
else some 発言2 => 発言1.真偽 != 発言2.真偽 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Export Category. | |
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Section allegory. | |
Variable C : Category. | |
Variable Op_intersect : forall a b : Ob C, Map2 (Hom a b) (Hom a b) (Hom a b). | |
Variable Op_converse \u00a0: forall a b : Ob C, Map (Hom a b) (Hom b a). |