We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ce68b commit 2459465Copy full SHA for 2459465
theories/prelude/Logic.ec
@@ -376,6 +376,16 @@ lemma if_same b (vT : 'a) :
376
(if b then vT else vT) = vT
377
by [].
378
379
+(* -------------------------------------------------------------------- *)
380
+lemma iftrue ['a] (b : bool) (x y : 'a) :
381
+ b => (if b then x else y) = x.
382
+proof. by move=> ->. qed.
383
+
384
+lemma iffalse ['a] (b : bool) (x y : 'a) :
385
+ !b => (if b then x else y) = y.
386
387
388
389
lemma if_neg b (vT vF : 'a) :
390
(if !b then vT else vF) = if b then vF else vT
391
by smt().
0 commit comments