Skip to content

Commit 0a71e98

Browse files
committed
r53
1 parent 7dd08d3 commit 0a71e98

377 files changed

Lines changed: 719 additions & 351 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

next/common/css/term.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.term {
2+
font-weight: bold;
3+
display: inline-flex;
4+
flex-direction: column-reverse;
5+
align-items: center;
6+
vertical-align: bottom;
7+
}
8+
.term-en {
9+
font-size: 0.6em;
10+
line-height: 0.5em;
11+
text-wrap: nowrap;
12+
}

next/common/term.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const docs = document.querySelectorAll(".doc");
2+
const term = /([^]+?)\|(.+?)/gu;
3+
const bold = /(.+?)/gu;
4+
5+
// 添加术语样式
6+
docs.forEach((el) => {
7+
let content = el.innerHTML;
8+
content = content.replace(
9+
term,
10+
`<div class="term">
11+
<div class="term-zh">$1</div>
12+
<div class="term-en">$2</div>
13+
</div>`,
14+
);
15+
content = content.replace(bold, "<strong>$1</strong>");
16+
el.innerHTML = content;
17+
});
18+
19+
// 调整术语大小
20+
const terms = document.getElementsByClassName("term-zh");
21+
for (const term of terms) {
22+
const len = term.innerText.length;
23+
console.log(len);
24+
term.parentElement.style.width = len + "em";
25+
}
26+
27+
// 移除多余的空格
28+
const newline = /(?<=[])\n(?!\n)/gu;
29+
// const space = /\s*(<.+?>\p{Script=Han}.*?<\/.+?>)\s*/gu;
30+
const paras = document.querySelectorAll(".doc");
31+
for (const p of paras) {
32+
p.innerHTML = p.innerHTML.replace(newline, "");
33+
// p.innerHTML = p.innerHTML.replace(space, "$1");
34+
}

next/lf-current/AltAuto.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ <h1 class="libtitle">AltAuto<span class="subtitle">A Streamlined Treatment of Au
24102410
</div>
24112411
<div class="code">
24122412

2413-
<span class="comment">(*&nbsp;2026-02-27&nbsp;12:25&nbsp;*)</span><br/>
2413+
<span class="comment">(*&nbsp;2026-06-19&nbsp;17:02&nbsp;*)</span><br/>
24142414
</div>
24152415
</div>
24162416

next/lf-current/AltAuto.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,4 +1825,4 @@ Definition manual_grade_for_nor_intuition : option (nat*string) := None.
18251825
18261826
- Ltac functions and [match goal] *)
18271827

1828-
(* 2026-02-27 12:25 *)
1828+
(* 2026-06-19 17:02 *)

next/lf-current/AltAutoTest.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,4 @@ idtac "---------- nor_intuition ---------".
269269
idtac "MANUAL".
270270
Abort.
271271

272-
(* 2026-02-27 12:26 *)
272+
(* 2026-06-19 17:02 *)

next/lf-current/Auto.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ <h1 class="libtitle">Auto<span class="subtitle">More Automation</span></h1>
906906
<span class="id" title="keyword">Proof</span>.<br/>
907907
&nbsp;&nbsp;<span class="id" title="tactic">intros</span> <span class="id" title="var">P</span> <span class="id" title="var">Q</span> <span class="id" title="var">HP</span> <span class="id" title="var">HQ</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">HP</span> <span class="id" title="keyword">as</span> [<span class="id" title="var">y</span> <span class="id" title="var">HP'</span>]. <span class="id" title="tactic">eauto</span>.<br/>
908908
<span class="id" title="keyword">Qed</span>.<br/><hr class='doublespaceincode'/>
909-
<span class="comment">(*&nbsp;2026-02-27&nbsp;12:25&nbsp;*)</span><br/>
909+
<span class="comment">(*&nbsp;2026-06-19&nbsp;17:02&nbsp;*)</span><br/>
910910
</div>
911911
</div>
912912

next/lf-current/Auto.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,4 +744,4 @@ Proof.
744744
intros P Q HP HQ. destruct HP as [y HP']. eauto.
745745
Qed.
746746

747-
(* 2026-02-27 12:25 *)
747+
(* 2026-06-19 17:02 *)

next/lf-current/AutoTest.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ idtac "".
6363
idtac "********** Advanced **********".
6464
Abort.
6565

66-
(* 2026-02-27 12:26 *)
66+
(* 2026-06-19 17:02 *)

next/lf-current/Basics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2736,7 +2736,7 @@ <h1 class="libtitle">Basics<span class="subtitle">Functional Programming in Rocq
27362736
</div>
27372737
<div class="code">
27382738

2739-
<span class="comment">(*&nbsp;2026-02-27&nbsp;12:25&nbsp;*)</span><br/>
2739+
<span class="comment">(*&nbsp;2026-06-19&nbsp;17:02&nbsp;*)</span><br/>
27402740
</div>
27412741
</div>
27422742

next/lf-current/Basics.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,4 +2049,4 @@ Example test_bin_incr7 : bin_to_nat (B0 (B0 (B0 (B1 Z)))) = 8.
20492049
output. But since they have to be graded by a human, the test
20502050
script won't be able to tell you much about them. *)
20512051

2052-
(* 2026-02-27 12:25 *)
2052+
(* 2026-06-19 17:02 *)

0 commit comments

Comments
 (0)