Equations
- MindFormal.A617PaperConsumers.norBit a b = !(a || b)
Instances For
@[reducible, inline]
Instances For
Equations
- MindFormal.A617PaperConsumers.executeInstruction r g = Function.update r g.2.2 (MindFormal.A617PaperConsumers.norBit (r g.1) (r g.2.1))
Instances For
Equations
- MindFormal.A617PaperConsumers.executeProgram p a b = List.foldl MindFormal.A617PaperConsumers.executeInstruction (fun (i : ℕ) => if i = 0 then a else if i = 1 then b else false) p
Instances For
Instances For
theorem
MindFormal.A617PaperConsumers.boolean_programs
(a b : Bool)
:
executeProgram notProgram a b 2 = !a ∧ executeProgram orProgram a b 3 = (a || b) ∧ executeProgram andProgram a b 4 = (a && b) ∧ executeProgram ifProgram a b 4 = (!a || b) ∧ notProgram.length = 1 ∧ orProgram.length = 2 ∧ andProgram.length = 3 ∧ ifProgram.length = 3
theorem
MindFormal.A617PaperConsumers.consequence_programs :
(∀ (p q : Bool), counterexampleFlag (fun (p x : Bool) => p) (fun (x q : Bool) => q) p q = false) ∧ (∀ (p q : Bool), counterexampleFlag (fun (x q : Bool) => !q) (fun (p x : Bool) => !p) p q = false) ∧ counterexampleFlag (fun (x q : Bool) => q) (fun (p x : Bool) => !p) true true = true ∧ (consequenceBit (fun (p x : Bool) => p) fun (x q : Bool) => q) = true ∧ (consequenceBit (fun (x q : Bool) => !q) fun (p x : Bool) => !p) = true ∧ (consequenceBit (fun (x q : Bool) => q) fun (p x : Bool) => !p) = false ∧ consequenceCost 4 0 = 47 ∧ consequenceCost 4 2 = 55 ∧ consequenceCost 4 1 = 51