Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo refactor #31

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ext/games"]
path = ext/games
url = [email protected]:emarzion/games.git
6 changes: 3 additions & 3 deletions bin/gen/ExtractRomanWheel.v
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Require Import ExtrOCamlInt63.
Extraction Language OCaml.

Require Import Games.Util.OMap.
Require Import Games.Bear.Sort.
Require Import Games.Bear.BearGame.
Require Import Games.Bear.RomanWheel.
Require Import TBGen.Bear.Sort.
Require Import TBGen.Bear.BearGame.
Require Import TBGen.Bear.RomanWheel.
Require Import Games.Game.TB.

Extraction "TBGen.ml" RW_TB.
2 changes: 1 addition & 1 deletion bin/gen/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(coq.extraction
(prelude ExtractRomanWheel)
(extracted_modules TBGen)
(theories Games))
(theories Games TBGen))

(library
(name extracted_code)
Expand Down
8 changes: 5 additions & 3 deletions bin/query/ExtractQuery.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Extraction Language OCaml.
Require Import Games.Util.Show.
Require Import Games.Util.IntHash.
Require Import Games.Util.OMap.
Require Import Games.Bear.Sort.
Require Import Games.Bear.BearGame.
Require Import Games.Bear.RomanWheel.
Require Import TBGen.Bear.Sort.
Require Import TBGen.Bear.BearGame.
Require Import TBGen.Bear.RomanWheel.
Require Import Games.Game.TB.
Require Import Games.Game.OCamlTB.

Expand Down Expand Up @@ -164,6 +164,8 @@ Definition rw_tb_strat (pl : Player.Player)
: Strategy.strategy pl s :=
tb_strat s pl tb.

Set Warnings "-extraction-default-directory".

Separate Extraction
make_RW_State
init_RW_State
Expand Down
2 changes: 1 addition & 1 deletion bin/query/dune
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
String0
TB
)
(theories Games))
(theories Games TBGen))

(library
(name query)
Expand Down
4 changes: 3 additions & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
echo "# !!!" > _CoqProject
echo "# Generated by configure.sh" >> _CoqProject
echo "# !!!" >> _CoqProject
echo "-R _build/default/theory Games" >> _CoqProject
echo "-R _build/default/theory TBGen" >> _CoqProject
echo "-R _build/default/ext/games/theory Games" >> _CoqProject
echo >> _CoqProject
find ext/games -name "*.v" |sort >> _CoqProject
find theory -name "*.v" |sort >> _CoqProject
File renamed without changes.
1 change: 1 addition & 0 deletions ext/games
Submodule games added at afe0a6
5 changes: 3 additions & 2 deletions theory/Bear/BearGame.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Require Import String.
Open Scope string_scope.

Require Coq.Sorting.Sorting.
Require Import Games.Game.Game.

Require Import Games.Game.Game.
Require Import Games.Bear.Graph.
Require Import Games.Bear.Sort.
Require Import TBGen.Bear.Graph.
Require Import TBGen.Bear.Sort.
Require Import Games.Game.TB.
Require Import Games.Game.Player.
Require Import Games.Util.IntHash.
Expand Down
3 changes: 1 addition & 2 deletions theory/Bear/Graph.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

Require Import Lia.
Require Import List.
Import ListNotations.
Require Import Games.Bear.Sort.
Require Import TBGen.Bear.Sort.

Require Import Games.Util.Dec.

Expand Down
4 changes: 2 additions & 2 deletions theory/Bear/RomanWheel.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Require Import ZArith.
Require Import Lia.

Require Import Games.Util.IntHash.
Require Import Games.Bear.Graph.
Require Import Games.Bear.BearGame.
Require Import TBGen.Bear.Graph.
Require Import TBGen.Bear.BearGame.
Require Import Games.Game.TB.

Inductive Spoke :=
Expand Down
77 changes: 0 additions & 77 deletions theory/Game/Draw.v

This file was deleted.

39 changes: 0 additions & 39 deletions theory/Game/Game.v

This file was deleted.

Loading
Loading