Skip to content

Commit 63061d8

Browse files
authored
add summary script (#78)
- update following Deducteam/lambdapi#1527 - add summary script generating a one-line description of each module form its first line
1 parent 4d9569e commit 63061d8

28 files changed

Lines changed: 85 additions & 53 deletions

‎Bool.lp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Library on booleans. */
1+
// booleans
22

33
require open Stdlib.FOL Stdlib.Eq;
44

‎Comp.lp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/* Comparison datatype
2-
3-
By Quentin Garchery (May 2021). */
1+
// comparison datatype
42

53
require open Stdlib.Bool;
64

‎Conj.lp‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* Library on Meta-Theorems for Conjunctions
2-
3-
-------------------
1+
// varyadic conjunction
42

3+
/*
54
The library proves the following meta-theorems:
65
76
** n-ary Natural Deduction rules:
@@ -122,4 +121,4 @@ begin
122121
have ConjImpCl : π (conj cnf ⇒ clause cnf id)
123122
{refine h0 cnf (indexes_decrement id x cnf h2)};
124123
refine clause_ext cnf x id (ConjImpCl (conj_tail x cnf h3))}}
125-
end;
124+
end;

‎Coprod.lp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Co-Cartesian product (disjoint sum)
1+
// disjoint sum
22

33
require open Stdlib.FOL Stdlib.Eq;
44

‎DepProd.lp‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Dependent product: a dependent pair of an element and an element in Set
1+
// dependent pairs
22

33
require open Stdlib.Eq;
44

@@ -9,11 +9,11 @@ constant symbol dprod [a: Set] : (τ a → Set) → Set;
99

1010
rule τ (@dprod $a $p) ↪ @DProd $a $p;
1111

12-
symbol proj₁ [a] [p] (e: @DProd a p) : τ a;
12+
symbol proj₁ [a p] (e: @DProd a p) : τ a;
1313

1414
rule proj₁ (dpair $x _) ↪ $x;
1515

16-
symbol proj₂ [a] [p] (e: @DProd a p) : τ (p (proj₁ e));
16+
symbol proj₂ [a p] (e: @DProd a p) : τ (p (proj₁ e));
1717

1818
rule proj₂ (dpair _ $u) ↪ $u;
1919

@@ -23,13 +23,11 @@ begin assume a p; induction; reflexivity end;
2323

2424
opaque symbol eq_proj₁ [a] [p] (x y: @DProd a p) :
2525
π (x = y) → π (proj₁ x = proj₁ y) ≔
26-
begin assume a p x y h; refine feq (λ e, proj₁ e) h end;
26+
begin assume a p x y h; refine feq proj₁ h end;
2727

2828
opaque symbol eq_dpair_refl [a] [p] (x: τ a) (u v: τ (p x)) :
2929
π (u = v) → π (@dpair a p x u = dpair x v) ≔
30-
begin
31-
assume a p x u v h; refine feq (λ w, @dpair a p x w) h
32-
end;
30+
begin assume a p x u v h; refine feq (dpair x) h end;
3331

3432
symbol transport [a] (p: τ a → Set) [x y: τ a] : π (x = y) → τ (p x) → τ (p y);
3533
rule transport _ (eq_refl _) $u ↪ $u;

‎Disj.lp‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* Library on Meta-Theorems for Disjunctions
2-
3-
-------------------
1+
// varyadic disjunction
42

3+
/*
54
The library proves the following meta-theorems:
65
76
** n-ary Natural Deduction rules:
@@ -400,4 +399,4 @@ begin
400399
end;
401400

402401
assert l0 l1 l2 l2' ⊢ transform [l2'] (l0 ⸬ l1 ⸬ l2 ⸬ l1 ⸬ □) 2 :
403-
(π l2 → π l2') → π (l0 ∨ l1 ∨ l2 ∨ l1) → π (l0 ∨ l1 ∨ l2' ∨ l1);
402+
(π l2 → π l2') → π (l0 ∨ l1 ∨ l2 ∨ l1) → π (l0 ∨ l1 ∨ l2' ∨ l1);

‎Epsilon.lp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Hilbert choice operator
2+
13
require open Stdlib.FOL;
24

35
symbol ε [a:Set] : (τ a → Prop) → τ a;

‎ExtraRules.lp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This module turns proved equalities to rewrite rules
1+
// additional rewrite rules derived from proved equalities
22

33
// Bool
44

‎FOL.lp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// (multi-sorted) First-order logic
1+
// polymorphic first-order logic
22

33
require open Stdlib.Set Stdlib.Prop;
44

‎HOL.lp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// higher-order logic
2+
13
require open Stdlib.Set;
24

35
constant symbol ⤳ : Set → Set → Set; // \leadsto

0 commit comments

Comments
 (0)