Logic G