2222-- Open cases (no constructor yet; must be discharged in follow-ups
2323-- before `<ᵇ`-totality and well-foundedness can land):
2424--
25- -- * bplus vs bOmega (general case) — currently only the top-marker
26- -- bridge `<ᵇ-+ω` is admitted.
27- -- * bplus vs bpsi (general case) — currently only the top-marker
28- -- bridge `<ᵇ-+ψω` is admitted.
2925-- * Two same-binder sub-cases whose natural shapes run into Agda
3026-- 2.6.3's `--without-K` restriction on reflexive-equation
3127-- elimination and are deferred pending a K-free reformulation:
@@ -83,8 +79,8 @@ data _<ᵇ_ : BT → BT → Set where
8379 -- (compare right summands when lefts agree) is deferred for the
8480 -- same `--without-K` reason as `<ᵇ-ψα` above: its natural shape
8581 -- `bplus x y₂ <ᵇ bplus x z₂` shares the binder `x` on both sides.
86- <ᵇ-+ω : ∀ {x y} → x <ᵇ bOmega ω → bplus x y <ᵇ bOmega ω
87- <ᵇ-+ψω : ∀ {x y α} → x <ᵇ bpsi ω α → bplus x y <ᵇ bpsi ω α
82+ <ᵇ-+Ω : ∀ {x y μ } → x <ᵇ bOmega μ → bplus x y <ᵇ bOmega μ
83+ <ᵇ-+ψ : ∀ {x y ν α} → x <ᵇ bpsi ν α → bplus x y <ᵇ bpsi ν α
8884 <ᵇ-+1 : ∀ {x₁ x₂ y₁ y₂} → x₁ <ᵇ y₁ → bplus x₁ x₂ <ᵇ bplus y₁ y₂
8985
9086infix 4 _<ᵇ_
@@ -121,8 +117,8 @@ infix 4 _<ᵇ_
121117<ᵇ-trans <ᵇ-0-Ω (<ᵇ-Ω+ _) = <ᵇ-0-+
122118-- Left leg: <ᵇ-0-+ (x = bzero, y = bplus _ _)
123119<ᵇ-trans <ᵇ-0-+ (<ᵇ-+1 _) = <ᵇ-0-+
124- <ᵇ-trans <ᵇ-0-+ (<ᵇ-+ω _) = <ᵇ-0-Ω
125- <ᵇ-trans <ᵇ-0-+ (<ᵇ-+ψω _) = <ᵇ-0-ψ
120+ <ᵇ-trans <ᵇ-0-+ (<ᵇ-+Ω _) = <ᵇ-0-Ω
121+ <ᵇ-trans <ᵇ-0-+ (<ᵇ-+ψ _) = <ᵇ-0-ψ
126122-- Left leg: <ᵇ-0-ψ (x = bzero, y = bpsi _ _)
127123<ᵇ-trans <ᵇ-0-ψ (<ᵇ-ψΩ _) = <ᵇ-0-ψ
128124<ᵇ-trans <ᵇ-0-ψ (<ᵇ-ψ+ _) = <ᵇ-0-+
@@ -143,57 +139,71 @@ infix 4 _<ᵇ_
143139<ᵇ-trans (<ᵇ-ψΩ≤ p) (<ᵇ-Ω+ q) = <ᵇ-ψ+ (<ᵇ-trans (<ᵇ-ψΩ≤ p) q)
144140-- Left leg: <ᵇ-+1 (x = bplus _ _, y = bplus _ _)
145141<ᵇ-trans (<ᵇ-+1 p) (<ᵇ-+1 q) = <ᵇ-+1 (<ᵇ-trans p q)
146- <ᵇ-trans (<ᵇ-+1 p) (<ᵇ-+ω q) = <ᵇ-+ω (<ᵇ-trans p q)
147- <ᵇ-trans (<ᵇ-+1 p) (<ᵇ-+ψω q) = <ᵇ-+ψω (<ᵇ-trans p q)
142+ <ᵇ-trans (<ᵇ-+1 p) (<ᵇ-+Ω q) = <ᵇ-+Ω (<ᵇ-trans p q)
143+ <ᵇ-trans (<ᵇ-+1 p) (<ᵇ-+ψ q) = <ᵇ-+ψ (<ᵇ-trans p q)
148144-- Left leg: <ᵇ-Ω+ (x = bOmega _, y = bplus _ _)
149145<ᵇ-trans (<ᵇ-Ω+ p) (<ᵇ-+1 q) = <ᵇ-Ω+ (<ᵇ-trans p q)
150- <ᵇ-trans (<ᵇ-Ω+ p) (<ᵇ-+ω q) = <ᵇ-trans p q
151- <ᵇ-trans (<ᵇ-Ω+ p) (<ᵇ-+ψω q) = <ᵇ-trans p q
146+ <ᵇ-trans (<ᵇ-Ω+ p) (<ᵇ-+Ω q) = <ᵇ-trans p q
147+ <ᵇ-trans (<ᵇ-Ω+ p) (<ᵇ-+ψ q) = <ᵇ-trans p q
152148-- Left leg: <ᵇ-ψ+ (x = bpsi _ _, y = bplus _ _)
153149<ᵇ-trans (<ᵇ-ψ+ p) (<ᵇ-+1 q) = <ᵇ-ψ+ (<ᵇ-trans p q)
154- <ᵇ-trans (<ᵇ-ψ+ p) (<ᵇ-+ω q) = <ᵇ-trans p q
155- <ᵇ-trans (<ᵇ-ψ+ p) (<ᵇ-+ψω q) = <ᵇ-trans p q
156- <ᵇ-trans (<ᵇ-+ω p) (<ᵇ-Ω+ q) = <ᵇ-+1 (<ᵇ-trans p q)
157- <ᵇ-trans (<ᵇ-+ψω p) (<ᵇ-ψ+ q) = <ᵇ-+1 (<ᵇ-trans p q)
158- -- Left leg: <ᵇ-+ψω (x = bplus _ _, y = bpsi ω _)
159- <ᵇ-trans (<ᵇ-+ψω p) (<ᵇ-ψΩ≤ ω≤ω) = <ᵇ-+ω (<ᵇ-trans p (<ᵇ-ψΩ≤ ω≤ω))
150+ <ᵇ-trans (<ᵇ-ψ+ p) (<ᵇ-+Ω q) = <ᵇ-trans p q
151+ <ᵇ-trans (<ᵇ-ψ+ p) (<ᵇ-+ψ q) = <ᵇ-trans p q
152+ -- Left leg: <ᵇ-+Ω (x = bplus _ _, y = bOmega _)
153+ <ᵇ-trans (<ᵇ-+Ω p) (<ᵇ-ΩΩ q) = <ᵇ-+Ω (<ᵇ-trans p (<ᵇ-ΩΩ q))
154+ <ᵇ-trans (<ᵇ-+Ω p) (<ᵇ-Ωψ q) = <ᵇ-+ψ (<ᵇ-trans p (<ᵇ-Ωψ q))
155+ <ᵇ-trans (<ᵇ-+Ω p) (<ᵇ-Ω+ q) = <ᵇ-+1 (<ᵇ-trans p q)
156+ -- Left leg: <ᵇ-+ψ (x = bplus _ _, y = bpsi _ _)
157+ <ᵇ-trans (<ᵇ-+ψ p) (<ᵇ-ψΩ q) = <ᵇ-+ψ (<ᵇ-trans p (<ᵇ-ψΩ q))
158+ <ᵇ-trans (<ᵇ-+ψ p) (<ᵇ-ψΩ≤ q) = <ᵇ-+Ω (<ᵇ-trans p (<ᵇ-ψΩ≤ q))
159+ <ᵇ-trans (<ᵇ-+ψ p) (<ᵇ-ψ+ q) = <ᵇ-+1 (<ᵇ-trans p q)
160160-- Right leg: <ᵇ-ψΩ≤ (y = bpsi _ _, z = bOmega _)
161161<ᵇ-trans <ᵇ-0-ψ (<ᵇ-ψΩ≤ _) = <ᵇ-0-Ω
162162<ᵇ-trans (<ᵇ-Ωψ p) (<ᵇ-ψΩ≤ q) = <ᵇ-ΩΩ (<Ω-≤Ω-trans p q)
163163
164- ----------------------------------------------------------------------------
165- -- WF-2 open-case inversions (Ω vs +)
164+ -- WF-2 mixed-head inversions (Ω vs +)
166165----------------------------------------------------------------------------
167166
168- -- The Ω→+ bridge is admitted (`<ᵇ-Ω+`), while the non-top
169- -- bplus→Ω case remains deferred.
167+ -- Mixed-head bridges now run both ways between `bplus` and `bOmega`.
170168
171169<ᵇ-inv-Ω+ : ∀ {μ x y} → bOmega μ <ᵇ bplus x y → bOmega μ <ᵇ x
172170<ᵇ-inv-Ω+ (<ᵇ-Ω+ Ω<x) = Ω<x
173171
174- <ᵇ-inv-+Ωfin : ∀ {x y n} → bplus x y <ᵇ bOmega (fin n) → ⊥
175- <ᵇ-inv-+Ωfin ()
172+ <ᵇ-inv-+Ω : ∀ {x y μ} → bplus x y <ᵇ bOmega μ → x <ᵇ bOmega μ
173+ <ᵇ-inv-+Ω (<ᵇ-+Ω x<Ω) = x<Ω
174+
175+ <ᵇ-inv-+Ωfin : ∀ {x y n} → bplus x y <ᵇ bOmega (fin n) → x <ᵇ bOmega (fin n)
176+ <ᵇ-inv-+Ωfin = <ᵇ-inv-+Ω
176177
177178-- Inversion for the admitted top-marker bridge.
178179<ᵇ-inv-+Ωω : ∀ {x y} → bplus x y <ᵇ bOmega ω → x <ᵇ bOmega ω
179- <ᵇ-inv-+Ωω ( <ᵇ-+ω x<ω) = x<ω
180+ <ᵇ-inv-+Ωω = <ᵇ-inv-+Ω
180181
181- ----------------------------------------------------------------------------
182- -- WF-2 open-case inversions (ψ vs +)
182+ -- WF-2 mixed-head inversions (ψ vs +)
183183----------------------------------------------------------------------------
184184
185- -- The ψ→+ bridge is admitted (`<ᵇ-ψ+`), while the non-top
186- -- bplus→ψ case remains deferred.
185+ -- Mixed-head bridges now run both ways between `bplus` and `bpsi`.
187186
188187<ᵇ-inv-ψ+ : ∀ {μ α x y} → bpsi μ α <ᵇ bplus x y → bpsi μ α <ᵇ x
189188<ᵇ-inv-ψ+ (<ᵇ-ψ+ ψ<x) = ψ<x
190189
191- <ᵇ-inv-+ψfin : ∀ {x y n α} → bplus x y <ᵇ bpsi (fin n) α → ⊥
192- <ᵇ-inv-+ψfin ()
190+ <ᵇ-inv-+ψ : ∀ {x y ν α} → bplus x y <ᵇ bpsi ν α → x <ᵇ bpsi ν α
191+ <ᵇ-inv-+ψ (<ᵇ-+ψ x<ψ) = x<ψ
192+
193+ <ᵇ-inv-+ψfin : ∀ {x y n α} → bplus x y <ᵇ bpsi (fin n) α → x <ᵇ bpsi (fin n) α
194+ <ᵇ-inv-+ψfin = <ᵇ-inv-+ψ
193195
194196-- Inversion for the admitted top-marker bridge.
195197<ᵇ-inv-+ψω : ∀ {x y α} → bplus x y <ᵇ bpsi ω α → x <ᵇ bpsi ω α
196- <ᵇ-inv-+ψω (<ᵇ-+ψω x<ψω) = x<ψω
198+ <ᵇ-inv-+ψω = <ᵇ-inv-+ψ
199+
200+ -- Backwards-compatible specialised names for the former top-marker-only
201+ -- constructors.
202+ <ᵇ-+ω : ∀ {x y} → x <ᵇ bOmega ω → bplus x y <ᵇ bOmega ω
203+ <ᵇ-+ω = <ᵇ-+Ω
204+
205+ <ᵇ-+ψω : ∀ {x y α} → x <ᵇ bpsi ω α → bplus x y <ᵇ bpsi ω α
206+ <ᵇ-+ψω = <ᵇ-+ψ
197207
198208----------------------------------------------------------------------------
199209-- Strict-below-ψ examples, for downstream ordering checks
0 commit comments