Last active
July 15, 2022 11:53
-
-
Save lengyijun/33a98ab0bf05772d20f4094dae39b972 to your computer and use it in GitHub Desktop.
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 Import | |
Coq.FSets.FMapAVL | |
Coq.FSets.FMapFacts | |
Coq.Structures.OrderedTypeEx | |
PeanoNat. | |
Module Import M := FMapAVL.Make(Nat_as_OT). | |
Print Module M. | |
Check (M.t (list nat)). | |
Lemma hello : M.t (list nat). | |
Proof. | |
exact (M.add 0 (cons 0 nil) (M.empty _)). | |
Qed. | |
Definition state := ( M.t (list nat) * M.t nat * M.t nat )%type. | |
Record StateSSS : Set := mkState | |
{ | |
u8_map : M.t (list nat) ; | |
}. |
另外,nat -> list nat 的map的写法通常是要用 FMapAVL 吗?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我想要一个包含 nat -> list nat 的 Record,但是编译不过
Universe inconsistency. Cannot enforce E.t.u0 <= Set.