Skip to content

Commit

Permalink
Custom coq beautifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mk12 committed Dec 25, 2018
1 parent 814aa15 commit 2b66fb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ build.ninja
*.vo
*.aux
coq/html
coq/Makefile.local
coq/*.old
2 changes: 1 addition & 1 deletion coq/Chapter2.v
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ Qed.
Theorem pos_pred {a : N} (H : pos a): ∃ b : N, S b = a.
Proof.
induction a as [|a Ha].
- show (exists b : N, S b = 0).
- show ( b : N, S b = 0).

5 changes: 4 additions & 1 deletion coq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ GALLINA ?= "$(COQBIN)gallina"
COQDOC ?= "$(COQBIN)coqdoc"
COQMKFILE ?= "$(COQBIN)coq_makefile"

# Beatifier program
BEAUTIFIER ?= $(COQC) $(COQDEBUG) $(COQFLAGS) -beautify

# Timing scripts
COQMAKE_ONE_TIME_FILE ?= "$(COQLIB)/tools/make-one-time-file.py"
COQMAKE_BOTH_TIME_FILES ?= "$(COQLIB)/tools/make-both-time-files.py"
Expand Down Expand Up @@ -670,7 +673,7 @@ $(addsuffix .timing.diff,$(VFILES)): %.timing.diff : %.before-timing %.after-tim

$(BEAUTYFILES): %.v.beautified: %.v
$(SHOW)'BEAUTIFY $<'
$(HIDE)$(TIMER) $(COQC) $(COQDEBUG) $(COQFLAGS) -beautify $<
$(HIDE)$(TIMER) $(BEAUTIFIER) $<

$(GFILES): %.g: %.v
$(SHOW)'GALLINA $<'
Expand Down

0 comments on commit 2b66fb0

Please sign in to comment.