@@ -256,21 +256,6 @@ unproduct tm =
256 try (unproduct (Var n1))
256 try (unproduct (Var n1))
257 try (unproduct (Var n2))
257 try (unproduct (Var n2))
259−||| If the goal is a tuple or a dependent pair, then split it into
260−||| two goals and return the new goal names.
261−||| It fails if the goal is neither a `Pair` nor a `DPair`.
262−splitPair : Elab (TTName, TTName)
264− let bug = [TextPart "Splitting created wrong number of holes"] in
266− `(Pair ~A ~B) => do [x, y] <- apply `(MkPair {A=~A} {B=~B}) [False, False]
269− `(DPair ~A ~Pr) => do [x, y] <- apply `(MkDPair {a=~A} {P=~Pr}) [False, False]
272− _ => fail [TextPart "Goal is not a pair"]
274||| Try to apply the constructors of the goal data type one by one,
259||| Try to apply the constructors of the goal data type one by one,
275||| and apply the first one that works.
260||| and apply the first one that works.
276||| Similar to `constructor` in Coq.
261||| Similar to `constructor` in Coq.