Skip to content

Instantly share code, notes, and snippets.

View ConDai's full-sized avatar

Daigo Conlan ConDai

View GitHub Profile
@ConDai
ConDai / conatural.v
Created June 25, 2022 07:33
Proof of commutativity of conaturals
CoInductive CoNat :=
| CoZ : CoNat
| CoS : CoNat -> CoNat.
CoInductive bisimilar : CoNat -> CoNat -> Prop :=
| bisimilar_CoZ: bisimilar CoZ CoZ
| bisimilar_CoS: forall n m, bisimilar m n -> bisimilar (CoS m) (CoS n).
Definition evalCoNat (n : CoNat) :=
@ConDai
ConDai / channel.chpl
Created April 2, 2021 04:40
Chapel overloaded operator syntax error
module Channel {
use semaphore;
record chan {
type eltType;
var size: int;
var buffer: [0..size-1] eltType;
var full: semaphore.Semaphore;