deconstructWhiskersHomArgs
Deconstruct a left or right whisker.
deconstructWhiskersHomArgs (e : Lean.Expr) (eLvl : Lean.Level) (left : Bool) : Lean.MetaM (Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr)deconstructWhiskersHomArgs (e : Lean.Expr) (eLvl : Lean.Level) (left : Bool) : Lean.MetaM (Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr × Lean.Expr)
Code
def deconstructWhiskersHomArgs (e : Expr) (eLvl : Level) (left : Bool) :
MetaM (Expr × Expr × Expr × Expr × Expr × Expr × Expr × Expr) := do
let args := e.getAppArgs
let SZ := if left then args[args.size - 4]! else args[args.size - 1]!
let SY := if left then args[args.size - 2]! else args[args.size - 3]!
let SX := if left then args[args.size - 3]! else args[args.size - 4]!
let κ := if left then args[args.size - 1]! else args[args.size - 2]!
let Z ← getTypeFromSFinKer SZ
let Y ← getTypeFromSFinKer SY
let X ← getTypeFromSFinKer SX
let mXUnit ← synthInstance (mkApp (mkConst ``MeasurableSpace [eLvl]) Z)
let kernel_id ← mkAppOptM ``Kernel.id #[Z, mXUnit]
return (κ, kernel_id, SX, SY, SZ, X, Y, Z)Actions: Source · Open Issue
Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23).
Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.
Dependency graph
Audit surface: 1 project declarations, 49 external constants
✓ Proved: no sorry anywhere in its closure
This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.