This file contains hidden or 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 Std.Data.HashMap | |
import Std.Data.HashSet | |
import Mathlib | |
open Std | |
instance {k} [BEq k] [Hashable k] : Hashable (HashSet k) where | |
hash := hash β HashSet.toArray |
This file contains hidden or 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
def BoundedNat (min max : Nat) : Type := | |
{n : Nat // min β€ n β§ n β€ max} | |
def BoundedNat.mk {min max : Nat} (n : Nat) (h : min β€ n β§ n β€ max) : BoundedNat min max := | |
β¨n, hβ© | |
def BoundedNat.val {min max : Nat} (n : BoundedNat min max) : Nat := | |
n.1 |
This file contains hidden or 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
[branch] | |
autoSetupRebase = always | |
[merge] | |
defaultToUpstream = true | |
log = true | |
[pull] | |
rebase = true | |
[push] | |
default = upstream | |
autoSetupRemote = true |