Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion coq/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
files=ch0.v ch1.v ch2.v ch3.v ch4.v ch6.v ch7_1.v ch7_2.v ch7_3.v ch7_4.v ch7_5.v ch8.v
files=ch0.v ch1.v ch2.v ch3.v ch4.v ch5.v ch6.v ch7_1.v ch7_2.v ch7_3.v ch7_4.v ch7_5.v ch8.v

all: check $(files:%.v=%.html) index.html node_modules

Expand Down
23 changes: 14 additions & 9 deletions coq/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# The Mathematical Components book code listings for jsCoq.

Code snippets are intended to be viewed using jsCoq (actual version is
<a href="https://math-comp.github.io/snippets">here</a>), but you also can just
open selected `.v` file in your favorite Galina code editor. To view pages in
your browser locally you need install `coq`, `mathcomp`, then do `npm install`
and `node app.js` to run node applicaion (app.js) and then open link
http://127.0.0.1:8010/ in your browser. A bit more detailed instructions are
provided below.

You can view jscoq snippets <a href="https://math-comp.github.io/snippets">here</a>.
You can view jscoq snippets <a href="https://math-comp.github.io/mcb/snippets/">here</a>
just by open link in browser. Or it is possible to download and open usual .v file in
your favorite Galina editor.

Instructions below are given to view code snippets on localhost (mostly
for testing/developement purposes).

Code snippets are intended to be viewed using jsCoq for usability (and can be found
by the link above). To view pages in your browser locally you need install `coq`,
`mathcomp`, then do `npm install` and `node app.js` to run node applicaion (app.js)
and then open link http://127.0.0.1:8010/ in your browser. A bit more detailed
instructions are provided below.



## Installation & Run

Expand Down
5 changes: 5 additions & 0 deletions coq/ch0.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ rewrite big_nat_recr //= IHn addnC -divnMDl //.
by rewrite mulnS muln1 -addnA -mulSn -mulnS.
Qed.

(* Recommended headers *)
(* From mathcomp Require Import all_ssreflect. *)
(* Set Implicit Arguments. *)
(* Unset Strict Implicit. *)
(* Unset Printing Implicit Defensive. *)
Loading