Corner cases¶
- date:
Test
To compile:
alectryon --stdin-filename corner_cases.rst --frontend rst \
-o corner_cases.html - < corner_cases.rst
# Coq → HTML; produces ‘corner_cases.html’
alectryon corner_cases.rst -o corner_cases.xe.tex \
--latex-dialect xelatex
# Coq → LaTeX; produces ‘corner_cases.xe.tex’
Goal names¶
True -> True /\ TrueH: True
G1TrueH: TrueTrue[G2]: exact I. Qed.H: True
G2True
Hypothesis bodies¶
let a := let bb := let b := 1 in (b, b) in let tt := let t := nat in (t * t)%type in bb <: tt in fst a = snd alet a := let bb := let b := 1 in (b, b) in let tt := let t := nat in (t * t)%type in bb <: tt in fst a = snd areflexivity. Qed.a:= let bb := let b := 1 in (b, b) in let tt := let t := nat in (t * t)%type in bb <: tt: let t := nat in t * tfst a = snd a
#a:
- let bb := let b := 1 in (b, b) in
let tt := let t := nat in (t * t)%type in bb <: tt
- let t := nat in t * t
Self-reference¶
Definition a := 1.
Blanks at beginning of snippet¶
True
exact I. Qed.True
Blanks around sentences¶
Bubble:
(* xyz *)True /\ TrueTrue /\ TrueTrue /\ True(* xyz *)a:= 11: nat23True /\ Truea:= 1: natTruea:= 1: natTruea:= 1: natTruea:= 1: natTrue(* x yz *) split.a:= 1: natTruea:= 1: natTruesplit. } Qed. (* xyz *)a:= 1: natTrue
References¶
1, 2, 3, named_block.
Exercise directive¶
Unicode in code¶
Definition test := "◆ ◉ ▲ ◧ ◎ ◴ ▶ ■".Nesting and indentation¶
Item
Note
Quote:
Item:
Rocq