I want to create a file bibliography in coq, i have a model of an automaton,
Record automaton :Type:=
mk_auto {
states : Set;
actions :Set;
initial : states;
transitions : states -> actions -> list states
}.
(*States*)
Inductive st :Set:= q0 | q1 | q2.
(*Actions*)
Inductive acts:Set:= a | b | c.
(*Transitions*)
Definition trans (q:st)(x:acts) :list st :=
match q, x with
| q0, a => cons q1 nil
| q1, b => cons q0 nil
| q1, c => cons q2 nil
| _,_ => nil (A:=_)
end.
(* Automate A1 *)
Definition A1 := mk_auto st acts q0 trans.
Print A1.
I want to use the record model in different files.
Record automaton :Type:=
mk_auto {
states : Set;
ctions :Set;
initial : states;
transitions : states -> actions -> list states
}.
Thanks for your response.